Hi Robert, I'm so surprised, because I received mail from you. :-) Thanks for your help. I solved the problem with your solution. Thanks!
I think OSG is so cool graphic library! I am having developed some graphic library for 3d robot simulator, about for 1years. OSG is very good for this. ^^ I hope that I am good at using OSG, sooner or later. Jeongseok. -----Original Message----- From: Robert Osfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2008 9:31 PM To: OpenSceneGraph Users Subject: Re: [osg-users] How to change shape? Hi Jeongseok, By default the OSG uses display lists to speed up rendering, but the downside is that rendering once built into the display lists won't be updated automatically. To get ShapeDrawable to update the display list simple do drawable->dirtyDisplayList(false). Robert. On Wed, May 7, 2008 at 1:23 PM, Jeongseok Lee <[EMAIL PROTECTED]> wrote: > > > > > Here is my code for explain. > > > > Geode* NewGeode1 = Geode; > > ShapeDrawable* pShapeDrawable = ShapeDrawable; > > Geode->addDrawable(pShapeDrawable); > > // 1. Box : This works well > > pxgLink->m_rpShapeDrawable->setShape(new Box(Vec3(0.0, 0.0, 0.0), width, > depth, height)); > > > > // 2. Sphere : This doesn't work! The shape do not be changed from BOX to > SPHERE > > pxgLink->m_rpShapeDrawable->setShape(new Sphere(Vec3(0.0, 0.0, 0.0), > radius)); > > > > What should I do? > > > > ================================================================ > > Jeongseok Lee > > MS Candidate > > Robotics Laboratory > > School of Mechanical & Aerospace Engineering > > Seoul National University > > Tel : +82-2-880-7149 > > Cell : +82-10-8958-3791 > > E-mail : [EMAIL PROTECTED] > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org