Re: [osg-users] shape, shape drawable and geode modification

2009-09-15 Thread Miguel Lokida
Thanks a lot. That works ! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17371#17371 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-use

Re: [osg-users] shape, shape drawable and geode modification

2009-09-14 Thread Robert Osfield
Hi Miguel, By default the OSG creates display lists for drawables, including the ShapeDrawable, and this won't automatically update unless you tell the drawable it needs to recompile the display list which you can do via drawable->dirtyDisplayList(). If you plan to modify the shape regularily the

[osg-users] shape, shape drawable and geode modification

2009-09-14 Thread Miguel Lokida
Hi, Here 's my problem. I have a cylinder shape that I have added to my scenegraph. here a sample code: I have declared instances in the headers. And I can display the cylinder. Code: rp_cylinder = new osg::Cylinder(); rp_cylinder->setHeight(1.0f); rp_cylinder->setRadius(100.0f); rp_cylinder-