Skip to content

view .3ds files based on z-buffering but without OpenGL

Notifications You must be signed in to change notification settings

DingShizhe/View-3ds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

View-3ds

view .3ds files based on z-buffering but without OpenGL

Function

Read vertex and faces information of models from a .3ds file, render them based on z-buffering-alg. then generate grey-scale map with format .ppm or .png. The grey-scale contains depth information.

$ g++ main.cpp
$ ./a.out ./3ds_files/test00.3ds -o ./outputs/test00.png
$ display ./outputs/test00.png

Dependency

Render Example

Render based on Phong-Illumination-Model

Add code #define PHONG in file main.hpp.

About

view .3ds files based on z-buffering but without OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published