Re: [osg-users] How to change shape?

2008-05-09 Thread Ulrich Hertlein
Robert Osfield wrote: 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). Would it make sense to dirty the ShapeDrawable automatically when the shape is

Re: [osg-users] How to change shape?

2008-05-09 Thread Robert Osfield
On Fri, May 9, 2008 at 1:12 PM, Ulrich Hertlein [EMAIL PROTECTED] wrote: Robert Osfield wrote: 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). Would it

[osg-users] How to change shape?

2008-05-07 Thread Jeongseok Lee
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

Re: [osg-users] How to change shape?

2008-05-07 Thread Robert Osfield
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,

Re: [osg-users] How to change shape?

2008-05-07 Thread Jeongseok Lee
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