pumpkin_zch2u wrote:
I am using Ogre+Polyvox to get realtime carving effects. currently the detail needs to be adjusted. So I want to use AmbientOcclusionCalculator to get AO effect with cg Shader. But when I look up to the manual. I totally miss it. So can anyone get me a demo code to have Ambient Occlusion effects to the volume mesh?
PS: I am using Ogre manualObject to generate the final mesh.
I'll let David give you a detailed answer but I'll point you to some previous discussions in case you haven't seen them (I guess you probably have):
I assume you've managed to run the AmbientOcclusionCalculator and are just wondering how to apply its effects to your rendered mesh?
pumpkin_zch2u wrote:
Another Problem, I want to smooth the final result of the mesh. So I use smoothRegion function, but have no effects.Only I get is little cubes in the carved area, How to solve it? PolyVox version is PolyVox-GIT-2295971. does it because CubicSurfaceExtractor has built in mesh decimator?
Sorry for so many questions!
If you want a smooth mesh I believe you'll have to use
SurfaceExtractor rather than CubicSurfaceExtractor. CubicSurfaceExtractor is designed for 'MineCraft-type' scenes whereas SurfaceExtractor is more appropriate for classic smooth terrain.