This doesn't sound like a bug in the OpenFlight loader to me. If the .flt file
says the max light point size is zero, then the loader should create light
points with a max size of zero.
If this causes a crash during rendering, then the light point rendering code
should be fixed.
-Paul
On 9/7/2012 1:44 PM, Ulises Rainoldi wrote:
Hi Robert and Ulrich,
The problem happens with these particular database files I'm using, is that
probably have wrong or incomplete data regarding the lightpoints.
Since a software i'm using is able to load them and display the 3d models with
their lightpoints flashing, but my osg-soft was crashing, I figured out that
solution.
The crash happens when the plugin has Points to draw, and their maxPixelSize is
zero. The algorithm that draw points assumes maxPixelSize is greater than
zero, so I decided to add the check when loading the structure, avoiding
setting it to zero... letting the default value.
This is not the best solution indeed: the lightpoints drawn with the default value are
displayed bigger than in the original 3dviewer software... so a maxPixelSize of zero in
the database should be interpreted as the "minimum" size that can be seen??
It may be good idea also to check the setter ... I will take a look
Thank you for your comments!
Cheers,
Ulises
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49861#49861
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org