Hi Andrey,

On 6 January 2012 11:21, Andrey Ibe <[email protected]> wrote:
> Hello, Robert and thank  you for the swift reply.
>
> The scene is quite simple, it's actually just a room with a mirror, table and 
> a couple of spherical objects.
> There are 126 drawables (all are fast drawables), 16k vertices and 5.3k 
> triangles.
> I have just tried building the app with -O3 -DNDEBUG instead of  -g3 -ggdb 
> with the same app running time result.

Nothing sounds outwards suspicious.

> Can there be something wrong with my compiler / OSG libraries ? i am using 
> OSG 3.x and GCC 4.5.0 (mingw on windows). i do not know where to look for the 
> problem, that is my problem :)

>From the sound of it it doesn't sound like a compile issue.

Could you provide a screenshot of the scene in wireframe mode?  I do
wonder if most of your objects are very simply so intersected them
won't be speeded up by the use of KdTree.  The KdTree's are built per
Drawable and will only really help performance for the highly
tessellated geometries.

For a specialist application that does ray tracing it might be best to
implement a intersector, one that batches the ray intersections into
groups of rays and does the intersection traversal down the scene
graph uses this batches.  It also might be appropriate to write a
custom KdTree generator that builds a single tree from all the
triangles in the whole scene graph rather per Drawable and the
intersection done directly on this.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to