[osg-users] Change color of node read from dxf file

Robert Osfield robert.osfield at gmail.com
Wed Nov 21 23:42:10 PST 2018


On Wed, 21 Nov 2018 at 20:58, Chris Hanson <xenon at alphapixel.com> wrote:

> I guess I missed that one. I don't even know what it means to add a Node
> as a child of a Drawable so I can't comment on why this works the way it
> does.
>

Geode is really just a Group of Drawable, now that Drawable is a Node, it's
essentially just a Group of Nodes... which means that you can happily just
use Group instead of Geode  Geode will be kept around for backwards
compatibility.

Having Drawable a Node and usable directly in the scene graph as any normal
child Node simplifies the scene graph structurally and should simplify
learning the OSG as you can just assign a Drawable to a Viewer via
setSceneData(), or just add a Drawable to a Group, no need to learn about a
"special" Geode that was never "special" in the first place.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20181122/41dab7c6/attachment.html>


More information about the osg-users mailing list