Skip to content

Latest commit

 

History

History
26 lines (13 loc) · 970 Bytes

README.md

File metadata and controls

26 lines (13 loc) · 970 Bytes

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.