[osg-users] CullVisitor::apply(Geode&) detected NaN,

Julien Valentin julienvalentin51 at gmail.com
Fri Sep 1 09:32:25 PDT 2017


Hi Rômulo
If it can help,
I believe to remember to have spotted potential 0 division in osgGA
locate unguarded  /sin() or /cos in osgGA
and add guard case like 
Code:
if (sin()<10e-4)OSG_WARN<< "0 division detected";


see if your problem come from here and post your result here
cheers

romulogcerqueira wrote:
> Hi,
> 
> I have the following message when I run my OSG application:
> 
> 
> Code:
> 
> CullVisitor::apply(Geode&) detected NaN,
> depth=nan, center=(1.79588 1.50488 1.42179),
> matrix={
> nan nan -nan -nan 
> nan nan -nan -nan 
> nan nan -nan -nan 
> nan nan -nan -nan 
> }
> 
> 
> 
> 
> 
> What this kind of warning/error means?
> ... 
> 
> Thank you!
> 
> Cheers,
> Rômulo


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71595#71595







More information about the osg-users mailing list