On 7/16/07, Amal <[EMAIL PROTECTED]> wrote:
Hi Robert,
 I saw the osgTerrain::TerrainNode  and I saw that It Uses a geometry
Technique and the Geometry Technique in turn had TerrainGeometry thich has
the drawImplementation function. I will also try to derive the Cubics class
from the osgNode or osgGroup only and hide the implementation.

Actually I will like to see a example in the drawimplementation of the
osg::Drawable just calls a shader code and does nothing else . Is there any
example for that ?

In general you don't want to mix state calls like shaders inside
Drawables as the OSG is designed to do all state handling within
osg::StateSet's and vertex array + primitive drawing calls kept within
Drawables.  The reason for this separation is to enable efficient
state sorting and lazy state updating, break this and you break the
ability to scale your applications performance.   So... you won't see
shaders mixed directly into Drawables as its not a good practice.

W.r.t subclass osg::Drawable just search the source code and osgteapot example.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to