Skip to content

Conversation

timlittle
Copy link
Contributor

Description

Adds a basic voxel example, showing:

  • 3D voxel world rendering (8x8x8 cube grid)
  • Ray casting from camera for mouse interaction
  • First-person camera controls

Changelog

  • Added examples/models/models_basic_voxel.c - Main example code
  • Added examples/models/models_basic_voxel.png - Screenshot
  • Updated Makefile, README.md, and examples_list.txt via the rexm tool

Tested it compiles successfully on macOS.


NOTE:
The rexm command was segfaulting when trying to run it after built. I had to specify REXM_EXAMPLES_BASE_PATH to get it working:

export REXM_EXAMPLES_BASE_PATH="/Users/tim/projects/raylib/examples" && ./rexm add ../../examples/models/models_basic_voxel.c

@raysan5
Copy link
Owner

raysan5 commented Sep 28, 2025

@timlittle thanks! nice example!

Please, can you remove the example binary from the PR. Also, please, could you remove the others examples modified (I have to review rexm to avoid them). Thanks!

@raysan5 raysan5 changed the title Add models_basic_voxel example ADDED: example: models_basic_voxel Sep 28, 2025
@timlittle
Copy link
Contributor Author

@raysan5 Updated

@raysan5 raysan5 merged commit c551fb7 into raysan5:master Sep 28, 2025
@raysan5
Copy link
Owner

raysan5 commented Sep 28, 2025

@timlittle thanks for the example and the review!

psxdev pushed a commit to raylib4Consoles/raylib that referenced this pull request Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants