Re: [osg-users] Merging geometry data

2013-04-02 Thread Robert Osfield
Hi Kirill, This version of your scene graph is clearly GPU limited, so batching everything into a single geometry certainly avoids CPU bottlenecks, but... it probably not ideal as it's far from a balanced scene graph, and the batching is now far too coarse grained. Ideally you should have your

Re: [osg-users] Merging geometry data

2012-09-17 Thread Irbit Kirill
Hello dear Robert, I have GTX280, Xeon 3GHz, windows XP sp3. Application uses osgEarth. If we load KML file with many similar objects we get problem, that I described. I'd like to try solve the problem using plain OSG, then port solution to osgEarth. Now in osgEarth scene I have 2890 models and

Re: [osg-users] Merging geometry data

2012-09-17 Thread Robert Osfield
Hi Kirill, On 17 September 2012 16:18, Irbit Kirill formus...@mail.ru wrote: I have GTX280, Xeon 3GHz, windows XP sp3. Application uses osgEarth. If we load KML file with many similar objects we get problem, that I described. I'd like to try solve the problem using plain OSG, then port

Re: [osg-users] Merging geometry data

2012-09-14 Thread Tassilo Glander
Hi Kirill, the Optimizer class has some code to aggregate geometry to reduce the number of separate drawcalls. You can try if it works in your case by running your *.osg file with the osgconv application and look at the output file with osgViewer. Also play with the optimizer options that you

Re: [osg-users] Merging geometry data

2012-09-14 Thread Irbit Kirill
Hi Tassilo, Thank you for your time! I've used class optimizer - unfortunately there is no result. As we can see https://github.com/xarray/osgRecipes/blob/master/cookbook/chapter8/ch08_01/merge_geom.cpp - 4 vertices and 9 objects is enough for 30 FPS on my computer. My model has 36

Re: [osg-users] Merging geometry data

2012-09-14 Thread Tassilo Glander
Hi Kirill, can you post source code and maybe the *.osgfile? Is it a static scene (300 positions do not change)? If yes, merging should work and accelerate the rendering sufficiently. Did you try optimizing with ALL_OPTIMIZATIONS (replicates geometry subnodes and applies transformations)?

Re: [osg-users] Merging geometry data

2012-09-14 Thread Irbit Kirill
Hi, Yes, at the moment I need static objects. Yes, I’ve tried ALL_OPTIMIZATIONS I can merge simple geometry. But in other case i have a problem. I’ll try to load some data later. Thank you! -- Read this topic online here:

Re: [osg-users] Merging geometry data

2012-09-14 Thread Robert Osfield
Hi Kirill, I would recommend taking a step back from doing specific attempts at optimization and work out from high level what you are trying to achieve and the performance you require and the hardware/OS/OpenGL version combinations that you must target. So could you please tell us what you

[osg-users] Merging geometry data

2012-09-13 Thread Irbit Kirill
Hi, I have a model in *.osg file. I need to place it in ~300 different positions in scene. If we use separate geometry or instancing we get poor performance. There is topic Merging geometry data in OpenSceneGraph 3 Cookbook. Some samples: