[osg-users] how to use OpenGL code in osg
su hu
tttsuhu at gmail.com
Fri May 2 07:12:57 PDT 2008
Hi, bob
Thanks a lot.
Kind Regards,
Tiger Su
2008/5/2, Bob Kuehne <rpk at blue-newt.com>:
>
> hi su - we cover this (and more!) in the intermediate training course
> we teach. however, it's a pretty simple answer - the
> drawImplementation is only executed once, because it's converted to a
> display list the first time drawn. so, disable display lists on that
> drawable, and you'll be set!
>
> bob
>
> On May 2, 2008, at 5:13 AM, su hu wrote:
>
> > Hi all,
> >
> > I have some opengl codes and want to use these codes in osg program.
> >
> > I do it as follow:
> >
> > 1. Add a geode to root scene and define a drawable (derived from
> > osg::Drawable).
> > 2. The drawable is added as child of the geode. OpenGL code is added
> > in DrawCallback of the drawable(in drawImplementation).
> >
> > But it seems that the DrawCallback function is called by osg only
> > once. When I add other node to root scene, the drawable will
> > disappear.
> >
> > Could you please tell me how to add opengl code to osg program?A
> > simple sample will be appreciated. Thanks a lot.
> >
> > Regards,
> >
> > t s
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080502/09a65e32/attachment.htm
More information about the osg-users
mailing list