Hi Erland,

Follow the various subclasses of osg::Drawable to see what is required, I'd
consider subclassing osg::Drawable an advanced topic so be prepared to
invest time in reviewing this various implementations and how they related
to the include/osg/Drawable.

As for display listing - if you do need this then call
setUseDisplayList(false) in your constructor, or better still if display
lists are never suitable call setSupportsDisplayList(false);

Robert.

On Mon, Apr 14, 2008 at 12:43 PM, <[EMAIL PROTECTED]> wrote:

>  i have some custom classes which inherits from osg::Drawable, and is
> inserted into an osg::Geode but nothing renders.
>
>
>
> I have implemented the drawImplementation(osg::RenderInfo & renderInfo)
> method to do some custom OpenGL rendering calls. I found that useDisplayList
> is initially true which caused drawImplementation to be called and creating
> a display list, but i need it to be false since i update some glTranslate
> params. When i set the Drawable's _*useDisplay List to false, the
> drawImplementation is not called at all. I also overrided the computeBound()
> method of the Drawable's to create a max bounding box(min==FLT*_MIN) (
> when is *computeBound() *method called btw? before culling if not allready
> set?) i call it in the constructor just to be sure its set. I notice Geode
> also has a _bounding box, but i guess this is calculated from the Drawable's
> bounding box.
>
>
>
> Do you have any advice on how what i am doing wrong? ( i know i should
> probably use the scenegraph a lot different but im only prototyping at this
> point..)
>
>
>
> Thanks in advance.
>
>
>
> Erlend.
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to