Commit Graph

206 Commits

Author SHA1 Message Date
Ray 061e828524 REVIEWED: example: gltf models loading -WIP- 2022-07-01 14:02:30 +02:00
Ray 3879decb9f REVIEWED: example: shaders_mesh_instancing
Simplified example
2022-06-21 21:06:03 +02:00
Ray c1b01c0d5d Added new comment to examples 2022-06-21 19:53:18 +02:00
Ray 96292bc859 Update models_skybox.c 2022-06-12 01:00:13 +02:00
Ray b8f67c6285 WARNING: BREAKING: REDESIGNED: Filepath loading API
REDESIGNED: `LoadDirectoryFiles()`
ADDED: `LoadDirectoryFilesEx()`
REDESIGNED: `LoadDroppedFiles()`
ADDED: `IsPathFile()`

This BIG BREAKING change simplifies the functions and gives more control to the user:
 - A new `struct FilePathList` has been added to avoid exposing complex pointers.
 - User is responsible of memory loading/unloading
 - Filepaths loading support recursive directories and file extension filters
2022-06-11 23:24:13 +02:00
Ray e6bc401c93 WARNING: RENAMED: GetDroppedFiles() to LoadDroppedFiles()
RENAMED: `ClearDroppedFiles()` to `UnloadDroppedFiles()`
2022-06-06 20:39:37 +02:00
Ray 90fc7c0376 WARNING: BREAKING: REMOVED: GetRayCollisionModel() #2405 2022-03-30 20:11:22 +02:00
raysan5 ef5be632fe REVIEWED: ExportMesh() #2220 2021-12-17 20:55:38 +01:00
Peter0x44 2bb4d36c43 Add missing file extensions for drag-and-drop support (#2090) 2021-10-30 23:43:07 +02:00
Jeffery Myers daeccd03ac Fix VC warnings for examples (#2085) 2021-10-25 10:21:16 +02:00
raysan5 6ce38e599a Remove big asset 2021-10-22 21:24:26 +02:00
raysan5 2e151408bb REVIEWED: models_yaw_pitch_roll 2021-10-19 14:58:04 +02:00
raysan5 fec0ce34c5 Remove trailing spaces 2021-10-19 14:57:12 +02:00
Ray 7763ccd8ad Resync .obj models! gitignore was ignoring them! 2021-10-18 23:17:37 +02:00
raysan5 628e6e52f3 Update examples screenshots 2021-10-17 21:39:52 +02:00
raysan5 cf12992b6a Remove trailing spaces 2021-10-17 21:00:20 +02:00
raysan5 2a6bd973bd Review some comments 2021-10-14 15:38:50 +02:00
raysan5 ef858b0dbb Review examples 2021-10-14 13:37:22 +02:00
raysan5 51b147cd32 Update models_loading_vox.c 2021-10-13 21:08:58 +02:00
raysan5 f9d4601057 Create LICENSE 2021-10-12 21:26:41 +02:00
raysan5 f1659d78d3 Reviewed models examples paths 2021-10-12 21:01:49 +02:00
raysan5 d92531b81d Rename examples for consistency 2021-10-12 20:23:59 +02:00
raysan5 670eab8b17 Review comments 2021-10-12 20:23:46 +02:00
raysan5 599d6e810f REVIEWED: models resources structure 2021-10-12 12:47:50 +02:00
raysan5 75b5cc0084 REMOVED: EXAMPLE: models_gltf_animation 2021-10-12 12:47:10 +02:00
raysan5 9a568654be REMOVED: EXAMPLE: models_material_pbr 2021-10-12 12:46:41 +02:00
Ray bb2763cc1f Update models_rlgl_solar_system.c 2021-10-07 16:08:39 +02:00
Ray f869229b7f Minor format tweaks 2021-10-03 12:09:59 +02:00
Chris 9882796df0 Rename BRDG typo to BDRF (#2028) 2021-10-02 14:07:42 +02:00
procfxgen a422d2fc8b Vox loaded (#1981)
* 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-10 15:24:01 +02:00
procfxgen dfc465ca6d new models_magicavoxel_loading example (#1940)
* 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-04 19:55:09 +02:00
Ray 3d33c559e7 REVIEWED: Examples compilation 2021-08-26 00:14:34 +02:00
raysan5 7013e60926 Update models_rlgl_solar_system.c 2021-07-31 18:44:07 +02:00
raysan5 aeb1a0da84 REVERTED: Removed the need for rlMatrix
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-30 12:54:54 +02:00
raysan5 db4cfc9fbd Reviewed resources licenses 2021-07-16 16:10:35 +02:00
Hristo Stamenov 71700254b4 Major revamp gltf (#1849)
* 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-26 13:22:00 +02:00
Ray e0720a0a55 WARNING: REVIEWED: Default shader uniform names
When a shader is loaded, by default, several locations are tried to be set automatically.
2021-06-25 13:35:43 +02:00
Ray 7203acdef9 Minor format tweaks 2021-06-23 09:59:11 +02:00
Ray 7e68e733f5 Update models_material_pbr.c 2021-06-03 21:04:23 +02:00
Ray 0565fb9fb6 Update models_mesh_picking.c 2021-06-03 20:58:04 +02:00
Ray 121c689b78 Review code formatting 2021-06-03 20:25:28 +02:00
Crydsch edeaff4bd4 Better collisions (#1803)
* 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 <chris.obo@gmx.net>
2021-06-03 20:15:27 +02:00
Ray d39d26f275 Update models_loading.c 2021-05-31 18:36:03 +02:00
Ray 1c5de9721a WARNING: BREAKING: RENAMED: RayHitInfo to RayCollision #1781
- RENAMED: RayHitInfo to RayCollision
- RENAMED/REDESIGNED: Multiple Ray collision functions to be more consistent and return RayCollision data -WIP-
2021-05-31 11:41:56 +02:00
Hristo Stamenov 470574517a Implement vertex color attribute for GLTF and IQM (#1790)
Added a simple cube with vertex colors for testing both.
2021-05-26 20:23:13 +02:00
Ray 1c7c8c682c REVIEWED: models_skybox #1792 #1778 2021-05-26 20:21:37 +02:00
Ray b36422083e Remove headers from shaders 2021-05-22 16:09:34 +02:00
Ray e401d5c48e WARNING: RENAMED: MeshBoundingBox() -> GetMeshBoundingBox()
Renamed for consistency with other function in raylib.
2021-05-20 19:24:28 +02:00
Lambert Wang 2545f62565 Added support for additional mouse buttons (#1753)
* Added support for additional mouse buttons

* Renamed mouse button enum

Co-authored-by: Lambert Wang <lambert.ww@gmail.com>
2021-05-08 18:26:24 +02:00
Jeffery Myers b663724293 Generate a mesh in client code. (#1735) 2021-04-26 17:30:07 +02:00