Mverse
While learning about computer graphics (specifically OpenGL API) I decided to develop a program able to render a world, this goals remains undone but at least the project ended on a decent object file visualizer which relies only on GLFW and OpenGL libraries.
Dependencies
- glfw3
- OpenGL > 3.3
- glew
Installation
$ cd mverse
$ sudo make install
Before running Mverse set the following environment variables (on your
.bashrc
):
export MVERSE_VERTEX=/usr/share/mverse/dummy.vsh
export MVERSE_FRAGMENT=/usr/share/mverse/dummy.fsh
Usage
$ mverse [-v vertexshader] [-f fragmentshader] objfile
Keyboard
- W Move Forward
- S Move Backward
- A Move to the left
- D Move to the right
- K increase movement speed
- J decrease movement speed
- 1 Render triangles
- 2 Render lines
- 3 Render points
- ↑ increase the object size
- ↓ decrease the object size
Examples
Download cessna object file and this material file in the same folder (for examples models), and run the following:
$ mverse models/cessna.obj
it will render:
See Also
Here you will find the materials where I learnt