A very simple 3D mesh renderer written in C.
Table of Contents
S3V is very simple 3D Viewer written in C. It supports single mesh Wavefront .obj files.
This section should list any major components used in this project.
All the code should be included in this repo, under the dependencies
folder.
Compiling S3V requires gcc
and cmake
.
- Install the basic tools
- Arch Linux
# pacman -S gcc cmake
-
Clone the repo
$ git clone https://github.com/nflsilva/s3v.git
-
Navigate into s3v directory and build the application
$ cd s3v $ mkdir build $ cd build $ cmake .. $ make
Simply run
$ ./s3v
and then, select File->Open Model
and select a .obj
file.
Use the right-mouse button
to rotate the model.
This renderer needs way more features. These are some of the planned ones in no particular order:
- Support multiple mesh models;
- Support materials and textures;
- Support negative index Wavefont files;
- Support multiple platforms;
- Support model animations;
- Support for on the fly shader loading;
- Improve file loading performance.