Hi, first of all: I am new to OSG! I like to programm a diplay for scientific purposes. I want to display lots (lets say 500 - 10.000.000) Boxes. At each time cycle (100ms) ist can be 500 - 10.000.000 Boxes. All examples I read so far contained a allocation of memeory for all of those Boxes in the init. Problem: The amount of boxes varies a lot between two time cycles and the boxes from two different time cycles are not connected (there is no ID or somewhat that matches two boxes of two different time slots). Thats why I do not want to change existing boxes in the osg. I rather want to biuld a new graph each time.
But: If I would do so - I had to allocate up to 10.000.000 Boxes each time. That is not performant. Is there a way to allocate memory / instiate 10.000.000 boxes at the beginning of the programm without to connect them to the osg. And then - to connect just those Boxes that should be displayed? And then to clean the osg without destroying the box instances? If anyone has an answer to such a problem - please state som code especially of how to instantiate (new) the boxes and how to clean the osg. And one more question: In all your examples - how do you ensure that the memory of the with new allocated drawables will be freed? Thank you! Cheers, Michael ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17168#17168 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

