[osg-users] How to draw everything (and disable frustum culling)
Alexandre Vaillancourt
alexandre.vaillancourt.list at gmail.com
Thu Dec 17 10:13:59 PST 2015
Hi All!
In relation to my post http://forum.openscenegraph.org/viewtopic.php?t=15389,
I'd like to try something: disable OSG's frustum culling of geometries and
send the whole scene graph to the GPU.
An issue I'm struggling with now is that when the viewer is in a certain
location in the simulation, _a lot_ of objects need to be displayed, and
when the viewer looks in the opposite direction, not a lot of stuff has to
be displayed. When comparing these two situations, the cull and draw phases
time vary quite a lot, and the GPU seems to be waiting for some work to do.
This variation in frame time prevents us from setting a "target" frame rate
that could be achieved in most situations during the execution of the
simulation.
By disabling the culling computation and simply sending everything to the
GPU, I feel we'd achieve a "constant" frame rate. (I would expect a
constant low cull time, a constant higher draw time, and variable GPU time,
which would not be visible.)
I'm aware that this might not be the most appropriate solution, but I'd
still like to give it a try.
Thanks!
--
Alexandre Vaillancourt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151217/43499e7e/attachment-0002.htm>
More information about the osg-users
mailing list