Skip to content

happymeex/npr-graphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Non-photorealistic renderer

This repo contains source code for a CPU-based ray tracer that produces images in watercolor and cel-shaded styles.

ball-cell ball-watercolor

teapot-cell teapot-watercolor

Setup

Download the following and put them in the external/ directory:

  • Files lodepng.h and lodepng.cpp from here,
  • The glm/ folder from the GLM repository,
  • The file PerlinNoise.hpp from here.

Usage

Run make to generate an executable and ./bin/main to run it. This renders four example scenes whose output PNGs can be found in out/. You can find the code and API usage in src/examples.cpp.

Acknowledgments

This code was written by Maxwell Jiang and Daniel Hu for MIT's 6.4400 Computer Graphics course. The watercolor algorithms are based on those described in Santiago Montesdeoca's thesis.

About

Non-photorealistic renderer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors