PDA

View Full Version : Graphics optimization


vOliver
10-10-2010, 05:56 PM
I'm trying to optimize a scene so that we can get even framerates on the HMD. I was wondering what options are available in vizard. If this was OpenGL I would turn on backface culling, use display lists for all my models etc. Are those options turned on be default? Any help would be appreciated.

I think my shaders might also be slowing things down considerably even though they are just diffuse shaders. I tried turning my shaders off and a lot of textures seem to be rendering to completely black now when viewed at the wrong angle. Is that a common problem? IE with my simple shader using
fragColor = texture2D(tex, texCoord.st)
i get fine looking textures and with vizard default some show up completely black. Maybe this has something to do with lighting settings?

Thanks for any help :)

Jeff
10-18-2010, 04:40 PM
Backface culling should be turned on by default. If it has been disabled you can enable using <node3D>.enable(viz.CULL_FACE).

If you are using 3ds Max one way you can optimize the scene is by using OSG occluder nodes.

You might also try the <node3D>.optimize command to see if that helps.