Skip to content

whateverforever/trimesh-ao

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trimesh Ambient Occlusion

Attempts to implement ambient occlusion in trimesh.

ao.py

First attempt: Use precomputed normal directions by sampling a sphere. Index into those using a KDTree, to find all hemisphere directions for a given normal. Raytrace from all vertices to all hemisphere directions, count up and convert to color. Store as vertex colors.

screenshot showing trimesh and ambient occlusion on a sample mesh

About

Attempts to implement ambient occlusion in trimesh

Topics

Resources

Stars

Watchers

Forks

Languages