Re: [osg-users] How to improve frame rate when loading multiple buildings ??

2017-02-23 Thread Sebastian Messerschmidt
Am 23.02.2017 um 12:21 schrieb Johny Canes: SMesserschmidt wrote: [...] Maybe you're structuring your graph to flat and to much time is spent to determine visibility/draw-calls. Is the culling really a perf. hit? E.g. op has neatly provided a group for each building versus not, if he looks

Re: [osg-users] How to improve frame rate when loading multiple buildings ??

2017-02-23 Thread Johny Canes
SMesserschmidt wrote: > [...] Maybe you're structuring your graph to flat and to much time is spent > to determine visibility/draw-calls. Is the culling really a perf. hit? E.g. op has neatly provided a group for each building versus not, if he looks at it from a distance like in the photo, wo

Re: [osg-users] How to improve frame rate when loading multiple buildings ??

2017-02-23 Thread Robert Osfield
Hi Vinoth, The first step with optimization is to figure out the bottlenecks, only once you know these can you decide what the most effective change will be to improve performance. You only provide guidance on overall framerate not being sufficient so there isn't any way for us at this stage to be

Re: [osg-users] How to improve frame rate when loading multiple buildings ??

2017-02-23 Thread Sebastian Messerschmidt
Hi Vinoth, Hi Community, I am creating buildings using osg::Geometry from shapefile data. I am draping textures on each side of the building... Its rendering fine, but frame rate it too low. Its because it has too many buildings to be rendered. Is there a way to hide buildings from vi

Re: [osg-users] How to improve frame rate when loading multiple buildings ??

2017-02-23 Thread Voerman, L.
Hi Vinoth, First question: are you running a debug build? For all your osgdem work you seemed to be running a debug build - those are very slow. we need more stats to begin on an answer to what could be optimized: maybe every building has it's own stateset? make a screenshot with the graphs and cam

Re: [osg-users] How to improve frame rate when loading multiple buildings ??

2017-02-22 Thread David Heitbrink
I would try to look at instancing. The OSG Forest is a good example. Instancing is were you tell the GPU to draw an object X number of times, and in the vertex shader you get a built in var gl_InstanceID, that tells you which item it is drawling (i.e. if you are drawling 100 versions, this wil

Re: [osg-users] How to improve frame rate when loading multiple buildings ??

2017-02-22 Thread Johny Canes
Maybe the optimizer can do a few things here. Also, you could maybe explicitly turn on backface culling with Code: ss->setMode(GL_CULL_FACE, osg::StateAttribute::ON); Robert may have some great advice to give here. I'm actually curious as to how to optimize things as well, because just dumpi