Re: [osg-users] how to use OpenGL code in osg

2008-05-02 Thread su hu
Hi, bob Thanks a lot. Kind Regards, Tiger Su 2008/5/2, Bob Kuehne <[EMAIL PROTECTED]>: > > 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 > disp

Re: [osg-users] how to use OpenGL code in osg

2008-05-02 Thread Bob Kuehne
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!

[osg-users] how to use OpenGL code in osg

2008-05-02 Thread su hu
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 drawImplementat