Skip to content

A very simple 3D mesh renderer using OpenGL, written in C.

License

Notifications You must be signed in to change notification settings

nflsilva/simple-3d-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-3d-viewer

A very simple 3D mesh renderer written in C.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage

About The Project

S3V is very simple 3D Viewer written in C. It supports single mesh Wavefront .obj files.

Built With

This section should list any major components used in this project. All the code should be included in this repo, under the dependencies folder.

Getting Started

Prerequisites

Compiling S3V requires gcc and cmake.

  1. Install the basic tools
  • Arch Linux
    # pacman -S gcc cmake

Compiling

  1. Clone the repo

    $ git clone https://github.com/nflsilva/s3v.git
  2. Navigate into s3v directory and build the application

    $ cd s3v
    $ mkdir build
    $ cd build
    $ cmake ..
    $ make

Usage

Simply run

$ ./s3v

and then, select File->Open Model and select a .obj file. Use the right-mouse button to rotate the model.


What's next

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.

About

A very simple 3D mesh renderer using OpenGL, written in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published