Skip to content

blendmaster/npr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Non-photorealistic Rendering

A pretty vanilla implementation of NPR in openGL 3.3, done for CSCI 544 Advanced Computer Graphics Spring 2014, at the Colorado School of Mines, Project 5.

Based on this paper:

http://www.cs.northwestern.edu/~ago820/SIG98/gooch98.pdf

Models that work with the viewer code can be found here:

Screenshots

Using the sobel filter on the depth texture:

happy-depth

moto

Earlier screenshots used the sobel filter on the color pixels instead of the depth map, for slightly worse results.

bunny

happy

hand

As a side effect of how outlines are drawn (sobel filter in texture space, but after scaling), turning down the resolution from the first pass results in some neat looking images (with nearest neighbor sampling).

hand64

eagle256

Running

Compile with:

make

Then run the viewer:

./viewer <model file>

About

non-photorealstic rendering, in opengl 3.3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published