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 ? Regards, Amal. On 7/16/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
Hi Amal, You might be able to do everything you want just with a standard osg::Geometry and do all the parametric work in shaders. See the osgparametric example (its very simply shader but might give you a bit of inspiration.) Robert. On 7/15/07, Amal <[EMAIL PROTECTED]> wrote: > > > Basically Iam deriving a class called osgCubic from osgDrawable . This class > will use shaders to render a cubic equation (any genera cubic equation) . So > can I know what all functions should I be implementing in the class. > > Actually Iam trying to implement only the drawImplementation function in > which Iam trying to use the osgShader. Is it a right method to go about > doing it ? > > Amal. > > > ---------- Forwarded message ---------- > From: Paul Martz <[EMAIL PROTECTED]> > Date: Jul 15, 2007 6:11 PM > Subject: RE: [osg-users] Deriving from OSG:Drawable. > To: osg users <osg-users@openscenegraph.net> > > > > > > > > If i derive a class from osg:drawable ( say like osg::Text ) what are the > functions that I should surely overload ?. One is DrawImplementation > function. Are ther any other Functions that i should surely overload . > > You only need override pure virtual methods, and drawImplementation() is > the only pure virtual method in the Drawable class. > > Depending on what you're doing, you might also want to override the > destructor, or computeBound(), but this isn't strictly required and, as I > said, depends on what you're doing. > > > Paul Martz > Skew Matrix Software LLC > http://www.skew-matrix.com > 303 859 9466 > _______________________________________________ > osg-users mailing list > osg-users@openscenegraph.net > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > > _______________________________________________ > osg-users mailing list > osg-users@openscenegraph.net > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/