Hi Mathias,

2011/6/22 Mathias Fröhlich <[email protected]>:
> Ok, I have yesterday tested fvwm with the viewer changes. This works so far.

Thanks for the testing.  Looks like the viewer changes for fullscreen
toggling are good to go.

>> One modification to the OSG that I have considered for a while is to
>> make a Drawable
>> a Node.  This has a number of knock on effects though so something
>> I'll need to consider
>> rather carefully.
> Hmm, That would reduce the Geode to just being a Group.

Probably/possibly.  One of the challenge with making a Drawable a Node is
that retraining backwards compatibility so to achieve this we'd still
have to carry
around classes that aren't that neccessary anyone.   I'm not sure how
far we'd be
able to retain compatibility or how much this compatibility might compromise
the cleanness of the design.  It's one of those tasks that one really
has to roll
ones sleves up and do the changes and see what happens.

> At first it would probably help when the NodeVisitor is able to visit
> Drawables using the usual accept mehtods or something like that. Then we
> could probably just use the Geodes traverse method to walk the drawables.
> One dfficulty in this approach is the Bilboard implementation that does little
> more then just a traversal of all Drawables.

I don't see any problems with handling subclasses from Geode, it'd be
bit like how
LOD subclasses from Group - it add a per child property that the the
traverse method
handles in a special way.  A NodeCallback that overrides the traverse
then would have
to handle the special functionality of a Billboard.  In the case of a
Billboard we'd
probably want to have a special handling of cases when chidlren are
Drawable rather
than Node's, as Drawables you can just manage the modelview matrix
directly and don't
need to worry about the view frustum transformation, while normal Nodes you have
to push/pop the view frustum as we do right now for the normal Transform nodes.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to