Files
OpenSceneGraph/src/osgPlugins
Robert Osfield 6fc00a2613 From Mathia Walker: bug fix to LOD ranges in TXP plugin to avoid cracks:
"I took a closer look at the conditional code in
SeamFinder::seamReplacement().

Because _info.minRange is a double and lod->getMinRange(0) is a float,
the difference will be calculated with double precision. If
_info.minRange is cast as a float it is exactly the same value as
lod->getMinRange(0) and the difference is exactly zero.

So if you change


 if((fabs(_info.minRange-lod->getMinRange(0))<0.001)&&(fabs(_info.lod0Range-lod->getMaxRange(0))<0.001))

to


 if((fabs((float)_info.minRange-lod->getMinRange(0))<0.001)&&(fabs((float)_info.lod0Range-lod->getMaxRange(0))<0.001))

it works a lot better."
2005-06-06 10:18:33 +00:00
..
2005-04-30 13:54:21 +00:00
2005-01-27 15:54:10 +00:00
2005-05-04 11:38:34 +00:00
2004-11-29 03:05:27 +00:00
2005-05-04 11:38:34 +00:00
2005-04-08 09:36:42 +00:00
2005-05-20 21:12:57 +00:00
2005-05-20 21:12:57 +00:00