[osg-users] Fast move a lot of nodes to another group

Yura Ivanov dev3d at protonmail.com
Sat Apr 15 09:24:15 PDT 2017


Hi,

I created stateset with bool uniform to indicate that node is selected and mat uniform with current mouse transform. To select nodes, I set this uniforms to nodes and all transformation preforms in shader. On mouse release, all transform applies to nodes by calling setMatrix and mat uniform sets to identity. Everything works fast and after all I don’t have extra nodes and statesets. Maybe my approach in this task is wrong, but many editors, for example 3dsMax, can work with big number of objects. And bad structure of scene in this case is user problem. 
Thank you very much, especially for optimize.

Cheers,
Yura

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70767#70767








More information about the osg-users mailing list