Skip to content

About

Minimal rendering in python for shapes defined implicitely through signed distance functions

Topics

Resources

Stars

13 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Signed Distance Function Object pure python renderer

This repo was mostly done as an exercise to understand Signed-Distance-Function-based rendering.

It provides basic utilities to render silhouettes and normals of objects represented by their Signed Distance Function.

demo.py shows an example on a sphere.

No parallelization is operated, and (this is no surprise! :) ) the computation is slow! (~5seconds for the minimal sphere-rendering example)

Very simple ray-marching is used (for more details see ray-marching-signed-distance-functions)

Renderings

(Obtained by running demo.py)

Sphere silhouette rendering

silhouette sphere

Sphere normals rendering

silhouette sphere

(Normal coordinates are x,y,z are scaled to be in [0, 1], and respectively mapped to the R, G and B channels.

About

Minimal rendering in python for shapes defined implicitely through signed distance functions

Topics

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages