- Create build directory somewhere
mkdir /path/to/build
- Go to the build directory
cd /path/to/build
- Run cmake
cmake /path/to/RTRender
- Run make
make
-
-s <sample>
draws a hard-coded geometric sample named<sample>
1. `spiral` 2. `golden_spiral` 3. `triangles`
-
-o <object>
opens.obj
file named<object>
-
-m <mode>
chooses a way to render the<object>
1. `wire` - draws wireframe of the model
2. `rasterize` - rasterizes the model (uses z-buffer)
3. `texture` - rasterizes model with texture `.tga` file (if the model name is `model.obj` textures must be named `model_diffuse.tga`)
4. `zbuf` - renders z-buffer of the model
5. `rand` - paints model in random colors
6. `dont_remove` - rasterizes the model (no z-buffer)
-h
shows usage info