Hello ! My name is Vladimir, and I'm a very newbie to OSG. I'm developing a shader-based water effect for FlightGear flight simulator, and now fighting with a little problem. Since in FlightGear we don't have a difference from Ground and Water (in fact it's one big Terrain Node), I have to use NodeVisitor pattern in main loop to determine the kind of a a Node we're rendering now. So I wrote NodeVisitor that returns a NodeList of nodes that matching a certain name. But I'm afraid such approach is far not the best (and definitely not so fast, because in depth there's a strcomp() somewhere).
I'd like to ask - how acceptable can be such approach, and if is there some differerent way to determine the kind of Node by some other property, other than Name ? -- Vladimir Karmishin ASTRA Development Inc.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

