Skip to content

hellux/3d-projection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D-projection

Experiment to render 3D objects onto a 2D surface. Previewer and renderer written in C. Previewer uses the SDL2 library to draw the projection in real time. Renderer uses the libpng library to produce an output image. Both programs use the libconfig library for handling config files.

Previewer

Usage: preview [options..]

Options:
    -c <config_path>    specify input config file [default: render.cfg]
    -o <output_path>    specify output config file [default: render.cfg]
    -h                  show this help screen

Controls:
    W, A, S, D          accelerate camera forward, left, backward or right
    <space>, <lctrl>    accelerate camera upward or downward
    R, F                decrease or increase field of view
    X                   stop camera
    <tab>               toggle between rendering vertices and surfaces
    <enter>             save current settings to output config file
    F11                 toggle between windowed and fullscreen mode

Renderer

Usage: render [options..]

Options:
    -c <config_path>    specify config file [default: render.cfg]
    -o <output_path>    specify output image file [default: render.png]
    -h                  show this help screen

About

3D software renderer experiment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published