ArchUsr64 / SDL_Wavefront_Viewer

Software OBJ wavefront rasteriser using SDL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDL_Wavefront_Viewer

A basic program to display obj wireframe on the screen with no hardware acceleration
image

NOTE: Only for models with triangle faces

Controls are as follows:

Arrow keys or w, a, s, d for moving the model on the screen
Page Up and Page Down for changing the size of the model
Shift and Space to move the model close or farther from the camera
Tab to toggle the rotation axis of the model

Directions to use:

Rename the wavefront as untitled.obj and move it to the same directory where you cloned this repository(the repository has a teapot shaped wavefront by default, make sure to delete that if you want to use a custom one).
On a linux system with SDL and GCC installed, run the command g++ -lSDL2 main.cpp -o executable && ./executable inside the directory where you cloned the repository. For other operating systems, compile and run the program with SDL installed.

About

Software OBJ wavefront rasteriser using SDL

License:MIT License


Languages

Language:C++ 100.0%