[osg-users] Deep cloning an active root scene node

Robert Lockyer robert.lockyer at avalonholographics.com
Fri Mar 1 04:55:30 PST 2019


Thanks Robert, that's good advise for a more efficient approach in the long
term. I just figure it might be a simple proof of concept to just blindly
clone the whole graph. Sounds like there's no fundamental reason I can't do
that, so probably just some silly thing I'm getting wrong.

Robert Lockyer
Software Developer

Office: 1-709-701-0281
Email: robert.lockyer at avalonholographics.com


On Fri, Mar 1, 2019 at 8:36 AM Robert Osfield <robert.osfield at gmail.com>
wrote:

> Hi Rob,
>
> There is a limit to how well you'll be able to get things to scale given
> the hardware limits you have to work around.  If you don't want the main
> rendering loop to wait for the rendering of all these extra views then
> you'll need to use a separate viewer(or compositeviewer) with it's own
> threading.  You'll need to manage your own frame loops in the secondary
> viewer.
>
> The only reason to copy data is if it the data is being modified by the
> different threads, I wouldn't recommend avoiding any modifications of the
> scene graph so you can simply share it all without copying.  If there are
> modifications you currently need I would suggest looking at ways to move
> this work elsewhere - often you can move to the GPU and just pass a Uniform
> per View to select the settings that are approriate so the shaders can do
> the right thing.
>
> Cheers,
> Robert.
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>

-- 
_This email and any attachments are confidential and may be privileged. Any 
unauthorized use, disclosure, copying or distribution of the information 
received is prohibited. If you are not the intended recipient please 
contact the sender immediately by return email confirming that you have and 
will delete all communications related to the email and any attachments 
sent to you in error._
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190301/6887abcf/attachment.html>


More information about the osg-users mailing list