summaryrefslogtreecommitdiffhomepage
path: root/examples/models
AgeCommit message (Collapse)Author
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-25WARNING: REVIEWED: Default shader uniform namesRay
When a shader is loaded, by default, several locations are tried to be set automatically.
2021-06-23Minor format tweaksRay
2021-06-03Update models_material_pbr.cRay
2021-06-03Update models_mesh_picking.cRay
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-31Update models_loading.cRay
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-26Implement vertex color attribute for GLTF and IQM (#1790)Hristo Stamenov
Added a simple cube with vertex colors for testing both.
2021-05-26REVIEWED: models_skybox #1792 #1778Ray
2021-05-22Remove headers from shadersRay
2021-05-20WARNING: RENAMED: MeshBoundingBox() -> GetMeshBoundingBox()Ray
Renamed for consistency with other function in raylib.
2021-05-08Added support for additional mouse buttons (#1753)Lambert Wang
* Added support for additional mouse buttons * Renamed mouse button enum Co-authored-by: Lambert Wang <[email protected]>
2021-04-26Generate a mesh in client code. (#1735)Jeffery Myers
2021-04-22Remove trail spacesRay
2021-04-22Added screenshotsRay
2021-04-02Reviewed skybox and pbr examplesraysan5
2021-04-02Reviewed examplesraysan5
2021-04-02REDESIGN: Move GenTexture*() functions to PBR example #721raysan5
Removed functions from rlgl module.
2021-03-28REVIEWED: models_gltf_model #1684raysan5
2021-03-26Update models_yaw_pitch_roll.cRay
2021-03-23Added security check for render batch #1670Ray
2021-03-23[Examples] Warning fixes (pt 1) (#1668)Jeffery Myers
* Fix some warnings in examples. * cleanups from review Co-authored-by: Jeffery Myers <[email protected]>
2021-03-20Delete Avocado.glbRay
2021-03-19Updated example assetsRay
2021-03-19RENAMED: camera.type -> camera.projectionRay
2021-03-19WARNING: BREAKING: RENAMED: camera.type to camera.projectionRay
2021-03-17Update models_skybox.cRay
2021-03-14Improve gltf support (#1647)Hristo Stamenov
* Implement a load values from accessor function. Added some more value types for the different GLTF attributes. Fixed crash when loading animated triangle. * Split GLTF model loading into separate functions for readability. * Fixed the already working models that I broke when introducing GLTFReadValue. Improved the example for gltf models to be able to switch between a few models. * Removed license from screen. It is pu inside a license file anyway. * Small improvements on the naming of functions Removed (*model). and replaced it with model->
2021-03-14WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistencyRay
Some enums values have been renamed to be more consistent and also provide a more detailed description: - ShaderLocationIndex: LOC_VERTEX_POSITION -> SHADER_SHADER_LOC_VERTEX_POSITION - ShaderUniformDataType: UNIFORM_VEC2 -> SHADER_UNIFORM_VEC2 - MaterialMapType: MAP_ALBEDO -> MATERIAL_MAP_ALBEDO - PixelFormat: UNCOMPRESSED_GRAYSCALE -> PIXELFORMAT_UNCOMPRESSED_GRAYSCALE
2021-03-09Gltf model and animations exploring problems (#1635)Hristo Stamenov
* Added bone binding to whole mesh and not only set vertices. + Also added missed setting of the animation count. + Removed double ; on one line * Added more of the gltf sample models https://github.com/KhronosGroup/glTF-Sample-Models We need to make it working for all of them. * Binding to initial bind pose added. * Fix cube disappearing bug because lerpPercent could be Inf. * Fixed for rigged figure also
2021-03-04REVIEWED: Examples to new enum valuesRay
2021-02-28Fixes gl state after HDR texture functions. (#1621)Jeffery Myers
Updates skybox demo to show how to do both HDR and non HDR skyboxes Co-authored-by: Jeffery Myers <[email protected]>
2021-02-21Update models_material_pbr.c #1571Ray
2021-02-02Update loading of gltf animation. (#1561)hristo
This is to account for GLTF info being more like instructions on how to build your animation instead of verbose description of each pose.
2021-01-31Update models_first_person_maze.craysan5
2021-01-28Gltf animation support (#1551)hristo
* Added example for gltf animation and split some functions for loading model animations into IQM and GLTF similar to how models are being loaded. * Removed wrongly duplicated function * Bone loading for gltf model (not working at this point) * Loading info about vertex to joint connection but animation is still not working * Skeleton and pose is correctly loaded. Need to communicate about interpolation in GLTF * The model almost looks like a real person on animation. * Fixed model loading with bones. Also updated license info on the model. * Cleaned up some code and updated examples. * Fix identation issues * Fix identation issues * Fix identation issues
2021-01-25Replace tabs by 4 spacesraysan5
2020-12-30added missing constants (#1493)Artur Mustafin
Co-authored-by: funcelot <[email protected]>
2020-12-29Review rlights helper module #1489raysan5
2020-12-24Minor tweakraysan5
2020-12-24Updated several files while porting examples to webraysan5
2020-12-19Set version for raylib 3.5Ray
2020-10-28Simplified example and resources sizesRay
2020-10-10Review undesired changesraysan5
2020-10-10Updated miniaudio #1402raysan5
2020-09-23REVIEW: example: models_cubicmap_pbr #1384raysan5
It does not work properly yet but it compiles correctly
2020-09-23Update models_skybox.craysan5
2020-09-21REVIEWED: GenTextureCubemap()raysan5
Added some tracelog messages