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)
(Obtained by running demo.py
)
(Normal coordinates are x,y,z are scaled to be in [0, 1], and respectively mapped to the R, G and B channels.