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