A repository where I'm playing with Zig, raylib and OpenGL.
Install Zig (tested with Zig 0.12.0)
$ git clone "https://github.com/ngrilly/zig3d.git"
$ cd zig3d
$ zig build run
- Add raylib as a dependency:
zig fetch --save=raylib https://github.com/raysan5/raylib/archive/9d628d1d499f8ad9c0e6fbed69914cecb611d6cd.tar.gz
- Add the following in build.zig:
const raylib_dep = b.dependency("raylib", .{}); exe.linkLibrary(raylib_dep.artifact("raylib"));
- Import it in main.zig:
const raylib = @cImport({ @cInclude("raylib.h"); });
How does the above compare to using an external Go module?
LOD: Level Of Detail VBO: Vertex Buffer Object
- https://www.youtube.com/watch?v=3lBYVSplAuo
- https://gafferongames.com/post/physics_in_3d/
- https://www.toptal.com/game/video-game-physics-part-i-an-introduction-to-rigid-body-dynamics
- https://gamemath.com/
- How to transition from space to planet surface: https://gamedev.stackexchange.com/questions/108667/how-to-load-a-spherical-planet-and-its-regions
- Meshing in voxel engines:
- Fly using newtonian physics
- Check lighting is right
- Structure the code
- Sound (engine, collisions, etc.)
- Collisions
- Engine sound: https://freesound.org/people/Nexotron/sounds/371282/