feat(object,render): add ambient occlusion effect#1174
Conversation
- Implemented `enable_ambient_occlusion` function in RendererUtility.py - Added `add_ambient_occlusion` method in MeshObjectUtility.py - Enhanced scene and material handling for ambient occlusion effects
cornerfarmer
left a comment
There was a problem hiding this comment.
Can you give an example where ao is helpful?
AO can help to increase contrast between objects or object parts which can increase readability of geometric detail (e.g. see the mouth and ears or the left eye).
The effect can be more or less subtle depending on the lighting conditions, materials and geometry. |
|
Thanks, makes sense! So this is more for visualizations than for photo-realistic rendering. |
|
Yes, exactly. So I'm actually not 100% sure if it's a good fit for this project. |
|
Do you think it makes sense to add this @cornerfarmer? If yes, I'll make the suggested changes. If not I'll close this. |
|
Yes, I think it still makes sense to add this. Even though its maybe not too relevent, it does not hurt to have this feature. |
- Standardize function argument formatting across files - Add Material.add_ambient_occlusion method - Use new Material method in MeshObjectUtility for AO




enable_ambient_occlusionfunction which enables AO for the entire sceneadd_ambient_occlusionmethod toMeshObjectclass which adds AO to this object (and possibly surrounding ones)