summaryrefslogtreecommitdiffhomepage
path: root/src/models.c
AgeCommit message (Collapse)Author
2021-07-13Updated models.c (#1871)GoldenThumbs
- fixed issue where vertex positions being passed in place of vertex normals.
2021-07-07Added a noteRay
2021-06-30Remove trailing spacesraysan5
2021-06-26Minor tweaksraysan5
2021-06-26REVIEWED: Latest PR to follow raylib code conventionsRay
2021-06-26Major revamp gltf (#1849)Hristo Stamenov
* Added my own model and license to Raylib exclusively created by me and provided for use in the examples (and other projects if anyone decides to) * Use animation vertices on initial load if possible. * Added girl model to model example * Revamped GLTF model loading as it was wrong by default. Also updated some comments. GLTF models were loaded only by mesh but they should be loaded recursively by hierarchical nodes because tehre are some static node transformations that are to be applied to the vertices. It also resulted in more meshes being included in some models. It is the correct way of loading GLTF and what is suggested in the official examples. Currenlty limiting to only one scene but more can be included later. * Refactored the new names and structure of extracted functions. * Safer and easier read value. * Made reading easier for accessor->bufferView->buffer in GLTF. Now there is no need to check for supported types or anything. * Correct inclusion of limits.h in the cases of MSVC based compilers vs the world * Removed weird example file
2021-06-17Fixed: Binding vertex position twice (#1835)Sirvoid
2021-06-17Renamed SUPPORT_MOUSE_CURSOR_NATIVE -> SUPPORT_MOUSE_CURSOR_POINTRay
2021-06-17RENAMED: MeshTangents() -> GenMeshTangents()Ray
RENAMED: MeshBinormals() -> GenMeshBinormals()
2021-06-13Remove trail spacesRay
2021-06-10Review code formattingRay
2021-06-10Review some commentsRay
2021-06-08Remove tabsRay
2021-06-05Minor format tweaksraysan5
2021-06-03Review code formattingRay
2021-06-03Better collisions (#1803)Crydsch
* review collisions ray-box and ray-sphere * Applied raysan's refactor Improved GetRayCollisionBox * Replace GetRayCollisionGround with GetCollisionQuad * Update example core_3d_picking * Update example models_loading * Fixed issues after merge * remove debug stuff Co-authored-by: Cry dsch <[email protected]>
2021-05-31WARNING: BREAKING: RENAMED: RayHitInfo to RayCollision #1781Ray
- RENAMED: RayHitInfo to RayCollision - RENAMED/REDESIGNED: Multiple Ray collision functions to be more consistent and return RayCollision data -WIP-
2021-05-30Some code tweaksRay
2021-05-29Review code formatRay
2021-05-26Implement vertex color attribute for GLTF and IQM (#1790)Hristo Stamenov
Added a simple cube with vertex colors for testing both.
2021-05-22Some code tweaks for consistencyRay
2021-05-20Use output->boneCount instead of nodes_countRay
2021-05-20WARNING: RENAMED: MeshBoundingBox() -> GetMeshBoundingBox()Ray
Renamed for consistency with other function in raylib.
2021-05-15Fixed over-allocation of buffer (#1772)Guillaume DEVOILLE
output->framePoses[frame] is over-allocated. framePoses is a 2D array: - first dimension: frames (allocated l. 4717) - second dimension: nodes (allocated l. 4731) Second dimension should be allocated of nodes_count transformations only.
2021-05-14Merge branch 'master' of https://github.com/raysan5/raylibRay
2021-05-14Review some VS warnings and messagesRay
2021-05-13Fixed GLTF boneWeights uint32 loading (#1768)Guillaume DEVOILLE
boneWeights uint32 were loaded in normals instead of boneWeights.
2021-05-11Reviewed latest PRRay
REMOVED: DrawBillboardEx()
2021-05-11Redesigned billboards - added rotation/pro functions (#1759)nobytesgiven
* Redesigned billboards - added rotation/pro functions * updated parameters Co-authored-by: nobytesgiven <[email protected]>
2021-04-26REMOVED: GenMeshDefault()Ray
2021-04-20Update models.cRay
2021-04-20ADDED: UpdateMeshBuffer()Ray
2021-04-19use bone weights for animation (#1728)nathants
2021-04-18Remove trailing spacesRay
2021-04-13Reviewed DrawLine3D() limits #1721Ray
2021-04-13REVIEWED: DrawLine3D() #1721Ray
Increased batch limit check to compensate internal buffers alignment for lines drawing
2021-04-09Enable DRM platform cross compilation support (#1717)Jon
* Log a warning if chdir failed, use agnostic CHDIR instead of chdir * Only include libdrm directory explicitly when not cross compiling
2021-04-05REVIEWED: Model scale #1700raysan5
2021-04-02ADDED: GenMeshDefault() #1556raysan5
2021-04-01Remove trailing spacesraysan5
2021-03-31ADDED: Support model normal matrix location #1691raysan5
2021-03-31REVIEWED: DrawMeshInstanced() matrix computationsraysan5
Simplified some parts and reviewed for a correct computation of matrices, considering stereo render view/projection per eye transformations
2021-03-31RENAMED: example: shaders_mesh_instancingraysan5
shaders_rlgl_mesh_instanced -> shaders_mesh_instancing
2021-03-31Review code formattingraysan5
2021-03-28Review matrix multiplicationraysan5
2021-03-28REVIEWED: rlgl: Stereo render is working againraysan5
As a bonus, stereo render is compatible with mesh instancing now!
2021-03-27GetCollisionRayMesh makes use of triangle count (#1688)Carlos Hernandez Barbera
Co-authored-by: Carlos Hernandez Barbera <[email protected]>
2021-03-26REVIEWED: DrawMeshInstanced()Ray
2021-03-25REVIEWED: OpenGL 1.1 working againRay
2021-03-25WARNING: BREAKING: rlgl redesign -WIP-Ray
rlgl module has been completely redesigned to move Mesh/Material structures to [models] module. Still some work to do, broken elements: - [models] OpenGL 1.1 mesh rendering: DrawMesh() - [models] Mesh Instancing: DrawMeshInstanced() - [models] Stereo rendering: DrawMesh() - [models] GL_FLOAT, GL_UNSIGNED_INT exposed - [models] GenMeshCustom() - [rlgl] GenTexture*() functions removal?