[osg-users] Protection against NaNs and Inf in display geometry

Chris Baker colby at chimail.net
Thu Jun 23 07:02:58 PDT 2016


Hi,

I've seen some discussion about handling inf/nan in display geometries which produce errors like:

Code:
CullVisitor::apply(Geode&) detected NaN, depth=nan, center=(inf inf -inf)



I'm in the process of writing a general display application that will receive data other the network from other processes running on other machines and so I really don't have any control over the data coming in to be displayed.

I'm really looking for a possible technique to protect against garbage data coming in, maybe using a node-visitor (cull?) to remove/cull out bad geometry if an attempt is made to draw it.

The real problem I'm trying to avoid is that the entire scene (even elements which do not have nans/infs) is not drawn, and so one single point with garbage will disable the the display of any and all other scene elements (i.e. black screen).

Thanks in advance![/code]

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








More information about the osg-users mailing list