summaryrefslogtreecommitdiffhomepage
path: root/src/models.c
AgeCommit message (Collapse)Author
2021-09-22WARNING: MODULES RENAMING!!!Ray
raylib modules have been slightly renamed to add some identity and note that they are independent modules that can be used as standalone separate parts of raylib if required. The renamed modules are: - `core` -> `rcore` - `shapes` -> `rshapes` - `textures` -> `rtextures` - `text` -> `rtext` - `models` -> `rmodels` - `camera` -> `rcamera` - `gestures` -> `rgestures` - `core` -> `rcore` All the build systems has been adapted to this change.
2021-09-21Minor reviewsRay
2021-09-21Add `up` argument to `DrawBillboardPro` (#1941)Uneven Prankster
* Add `up` argument to `DrawBillboardPro` * Replace tab with proper spaces
2021-09-10REVIEWED: Vox loaderRay
2021-09-10Vox loaded (#1981)procfxgen
* new models_magicavoxel_loading example * Portable header-only file "magicavoxel_loader.h" for MagicaVoxel loader example. * models_magicavoxel_loading example added to CMakeLists.txt and Makefile * fix models_magicavoxel_loading example for linux. * * vox_loader into "src/external/vox_loader.h" * vox file support for "models.c" * updated example "models/models_magicavoxel_loading.c" * * Fix Vox_FreeArrays (removed memory leak) * * removed magicavoxel_loader.h * * Revert vs2019 solution * * vox_loader.h -> Support custom memory allocators * vox_loader.h -> Reverse Y<>Z for left to right handed system * models/models_magicavoxel_loading.c -> fix model center * * vox_loader.h -> Removed Raylib dependencies * * Changed Vox_LoadFileName to Vox_LoadFromMemory
2021-09-09Fixed loading obj models with no materials (#1984)Tristan Schulz
2021-09-05[models] LoadGLTF fixed missing transformations and nonroot skinning problem ↵Tristan Schulz
(#1964) * Fixed gltf missing transforms on load mend * extracted Matrix calculation in to static method and added skinning check * fixed formatting
2021-09-05REVIEWED: Vox loading, mostly formatingraysan5
2021-09-04new models_magicavoxel_loading example (#1940)procfxgen
* new models_magicavoxel_loading example * Portable header-only file "magicavoxel_loader.h" for MagicaVoxel loader example. * models_magicavoxel_loading example added to CMakeLists.txt and Makefile * fix models_magicavoxel_loading example for linux. * * vox_loader into "src/external/vox_loader.h" * vox file support for "models.c" * updated example "models/models_magicavoxel_loading.c" * * Fix Vox_FreeArrays (removed memory leak) * * removed magicavoxel_loader.h * * Revert vs2019 solution
2021-09-01REVIEWED: <name>Count for consistencyRay
Following english rules, it should be singular name before Count.
2021-09-01[models] Fixed counting loop for face amount per material (#1967)Tristan Schulz
2021-08-28Minor format tweaksraysan5
2021-08-27REVIEWED: Decouple `DrawMesh()` and `DrawMeshInstanced()` #1958Ray
2021-08-16Remove trailing spacesRay
2021-08-12[Models] Fix for issue #1809 (#1917)630Studios
* GenMeshTangents Fix * GenMeshTangents Fix - Comment Update * GenMeshTangents Fix - Comment Update final * Code Style Changes * Code Style Changes Final * Code Style Changes Final 2 * GenMeshTangents better handling for issue #1876 * GenMeshTangents better handling for issue #1876 * GenMeshTangents: Better fix for issue #1876 * vboId location fix * rlUpdateVertexBuffer - bufferId is an unsigned int * Fix for issue#1809 - Obj with more materials then mesh caused crash * Fix for issue#1809 - Formatting Update
2021-08-08REVIEWED: Avoid conflict with boolraysan5
2021-08-08REVIEWED: Some warnings...raysan5
2021-08-08ADDED: GenMeshCone() #1903raysan5
2021-07-31REVIEWED: rlgl defines for consistencyraysan5
2021-07-30REVERTED: Removed the need for `rlMatrix`raysan5
Now rlgl uses the `Matrix` type, just make sure it has been previously defined somewhere... I don't like this approach but it's probably the easier one for the users... still looking for a better solution... maybe using something like `#define MATRIX_TYPE`, so it can be checked in other modules.
2021-07-29WARNING: BREAKING CHANGE: rlgl complete decoupling from raylib -WIP-raysan5
rlgl has been redesigned to avoid any dependency to `raylib` or `raymath`, all functions using some of those libs have been reviewed. - REMOVED: `Texture2D`, `Shader` structs dependency - REMOVED: `Vector3`, `Matrix` structs dependency - REMOVED: raymath functions dependency, all required math is implemented in rlgl - ADDED: `rlMatrix` custom rlgl type - ADDED: `utils.c`: `rlMatrixFromMatrix()` and `rlMatrixToMatrix()` for a safe conversion between raylib<->rlgl matrix types - ADDED: `rl` prefix to all `rlgl` structs - Other small tweaks here and there
2021-07-28ADDED: GetModelBoundingBox()raysan5
Reorganized models functionality, it still needs some review...
2021-07-28REVERTED: Mesh indices issue #1891raysan5
2021-07-27REVIEWED: rlDrawVertexArrayElements() #1891raysan5
2021-07-23Review formating to follow raylib style conventionsRay
2021-07-17[Models] Better Fix for GenMeshTangents issue #1876 (#1878)630Studios
* GenMeshTangents Fix * GenMeshTangents Fix - Comment Update * GenMeshTangents Fix - Comment Update final * Code Style Changes * Code Style Changes Final * Code Style Changes Final 2 * GenMeshTangents better handling for issue #1876 * GenMeshTangents better handling for issue #1876 * GenMeshTangents: Better fix for issue #1876 * vboId location fix
2021-07-16GenMeshTangents Fix (#1877)630Studios
* GenMeshTangents Fix * GenMeshTangents Fix - Comment Update * GenMeshTangents Fix - Comment Update final * Code Style Changes * Code Style Changes Final
2021-07-16REVIEWED: Wrong normal matrix calculation #1870raysan5
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