This is a simple code demonstrating how to use TensorViz for rendering objects with hatching in place of the standard gourad shading.
This was based on the paper Praun, Emil, et al. "Real-time hatching." Proceedings of the 28th annual conference on Computer graphics and interactive techniques. 2001.
The script tv-try
launches a docker image containg all dependencies of TensorViz.
shadow-mapping$ ./tv-try demo.py <input-object>
Or use the rule docker-demo-buddha
from the Makefile.
shadow-mapping$ make docker-demo-buddha
Install TensorViz into your environment following the instructions on its repository.
Run the rule demo-buddha-highres
, to download the Buddha from the
Standord 3D Scanning
Repository and run the
demo.
$ make demo-budha-highres