Re: [osg-users] How to texture map Box/Sphere/Cone/Capsule/Cylinder

2017-08-08 Thread Paul Leopard
Ok thanks for the response Regards, P things are more like they are now than they have ever been before -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=71385#71385 ___ osg-us

Re: [osg-users] How to texture map Box/Sphere/Cone/Capsule/Cylinder

2017-08-08 Thread Robert Osfield
Hi Paul, Only in git master and recent 3.5.x dev series does ShapeDrawable subclass from osg::Geometry. For older releases (3.4.0 and before) ShapeDrawable computes the coordinates on the fly so there isn't any coords you can get and modify. As a general note, ShapeDrawable is a convenience clas

[osg-users] How to texture map Box/Sphere/Cone/Capsule/Cylinder

2017-08-07 Thread Paul Leopard
Trying to map a simple, uniform texture onto an osg::Shape instance and not finding a way to get a hold on the underlying osg::Geometry so I can call setTexCoordArray(...) on it ... How would I do so? example code : osg::ref_ptr rShape = new osg::Sphere( center, radius ); osg::ref_ptr rDrawabl