C3D is a OpenGL 3D Game Engine, written in C, as a learning exercise.
YouTube videos showcasing features
- C
- SDL2
- SDL2_image
- OpenGL
- linmath.h for linear math.
- Assimp
- Uses Assimp for model loading
- bad AABB collision detection
- Can display AABB wireframe
- Point lights, ambient light
- Can load, compile and attach GLSL shaders
- Helper functions for setting up OpenGL and SDL2 windows
- FPS-style camera
- Bullets
Q. Do you know that your code is not very pretty?
A. Yes.
Q. How do I use it?
A. Why would you do that?
git clone https://github.com/lcthums/C3D
cd C3D
cp examples/basic.c ./main.c
make
./game.out
You will need OpenGL 3.3+, sdl2 and sdl2_image. There might be examples in the examples directory.
- not abandon the project after the first week
- shut memory leaks
- weapon.h
- more lighting stuff
- decent OBJLoader (Assimp!)
- UI
- terrain generator (not finished)
- A.I.
- shadows
- finish a game with it