Skip to content

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

Notifications You must be signed in to change notification settings

hassony2/pyrender_sdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages