Re: [osg-users] osg::Drawable vs osg::Geometry

2018-10-21 Thread Julien Valentin
Hi If you can fit in osg::Geometry semantic your data and just want to override drawimplementation, guidelines prescribe to setup a DrawCallback. using osg::Geometry have also the advantage for your data to be interpreted for various task in osg (computebound,primitivefunctors, osgutil

Re: [osg-users] osg::Drawable vs osg::Geometry

2018-10-21 Thread Chris Hanson
Suggesting the best approach would require you give us a little more detail about what kind of custom object it is. Can you describe better what you're trying to do, and less about how you are trying to do it? On Sun, Oct 21, 2018 at 4:44 PM Noè Murr wrote: > Hi, > > I need to draw a custom

[osg-users] osg::Drawable vs osg::Geometry

2018-10-21 Thread Noè Murr
Hi, I need to draw a custom object in osg. To do that I have to choose between derive from class osg::Drawable and deriving from osg::Geometry. Which is the more efficient way to create a custom drawable object and why? Thank you! p.s. I'm new to osg, so I'm trying to understand the best