Hi, I need to define an object that can be seen as a sphere - at least this is the most convenient analogy I can find right now.
- it is defined by meta-properties, essentially, like by its radius and a center position. It does not contain actual geometry data per se. The actual rendered geometry is completely dynamic. - the object will need to use shaders in all cases. I might improve the implementation later so that it does not use shaders when they're not available, but shaders will be critical for a while. What can I do here? ShapeDrawable operates at the drawable level, and seems inappropriate for me as I want to enforce the use of shaders, which is a Node-level concept. I could derive from Geode, ignore all drawables underneath (not very elegant), but getStateSet/getOrCreateStateSet are not overridable, so I can't transparently add my shaders in there. Would somebody mind giving me a hint or two about the way to go? Surely there is a sample somewhere that does what I'm interested in. Cheers, Fred ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33784#33784 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

