Hi Todd,

What modeling software is your artist using that allows placement of
occlusion query nodes?

Sorry, that's not what I meant. We have configuration files alongside the models, where you can specify different things like alternate shaders, textures to load into other texture units (which will then be used by the shaders), whether to generate tangent space coordinates for normal mapping, etc. I just added a flag in that configuration file that says if an OcclusionQueryNode should be added.

The thing is that you can specify this per-node in the model, but you don't want to put one OQN per node if they're individually pretty small, it would be preferable to place one OQN higher up in the graph, for a group of close-by objects. That's the education I was talking about... ;-)

I'd like to be able to say we have an in-house modeling software that allows us to do all these things, but unfortunately it's config files.

The osgocclusionquery example has a visitor that will only insert OQNs when the vertex count of children exceeds a threshold (5000 by default) but I wanted the control to place it where I want, because if I have a graph with 2 children, one with 5010 vertices and one with 4000, then with the visitor I would get an OQN above the first child but not the second, whereas I want an OQN above both (above their parent).

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to