Hi,
I have been using openscenegraph(osg) for a while and now switching to opensg.
I have a question about opensg in general. Why is it necessary to use
beginEditCP() and endEditCP macros, e.g.
beginEditCP(root, Node::CoreFieldMask);
root->setCore(sun);
endEditCP(root, Node::CoreFieldMask);
There is no such thing in osg. I supposed those are mutex locking mechanisms.
If so, why not put them with the correct mask in setCore() function, so that
the user don't have to deal with them.
Thanks
Tom
________________________________
From: Dirk Reiners <[email protected]>
To: [email protected]
Sent: Thursday, April 30, 2009 8:07:41 AM
Subject: Re: [Opensg-users] SSM - calcViewRay assumes window.ports[0]
Hi Marcus,
Marcus Lindblom wrote:
> Hi,
>
> The SSM seems to assume it always has viewport index 0. This isn't
> always correct, as one can add other viewports.
>
> i.e:
>
> Line SimpleSceneManager::calcViewRay(Int16 x, Int16 y)
> {
> Line l;
> _camera->calcViewRay(l, x, y, *_win->getPort(0));
> return l;
> }
>
> Is there a reason for this (other than to keep it simple) or would it
> make sense to change the SSM so that it mostly concerns itself with it's
> own viewport and assumes less of the surrounding objects?
>
> I could probably cook something up if ppl think it's worthwhile.
no reason, except for being simple. If you can fix it that would be
appreciated.
I think just passing in the index for the viewport that's supposed to be used
with 0 as a default should be fine.
Yours
Dirk
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users