[osg-users] 回复:Re: remove updatecallback stably and reliably

Robert Osfield robert.osfield at gmail.com
Sun Dec 27 07:19:31 PST 2020


How are the symbols represented in the scene graph and on screen?  How many
different types of symbols do you have?

What are the dynamic aspects to the simulated objects, as you mention
AnimationPathCallback I presume you are animating a transform.  Is this
just xyz translations?

I don't yet understand enough about the specific usage case but in
principle I'd suggest looking at geometry instancing as a possible
technique for leveraging the GPU more and minimizing the CPU overhead.  It
may be possible to just position your objects using an osg::UniformArray
and an appropriate shader to unpack this and create the required modelview
matrix to position/colour each instance of a symbol.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20201227/e035905b/attachment-0001.html>


More information about the osg-users mailing list