Hi,
OK, this works for me, I could do a submission at some point.
My knowledge is:
1. invert for Google SketchUp <= 7.0
2. don't invert for Google SketchUp >= 7.1
3. findInvertTransparency does not always yield correct results
Something along the lines (code for determining version not included):
Code:
// _strictTransparency overrides determining _invertTransparency
if (_strictTransparency)
{
_invertTransparency = false; // already the default,
but hey...
} else
{
// determine by authoring tool if known, otherwise use
findInvertTransparency
if (_authoringTool == GOOGLE_SKETCHUP)
{
// Google SketchUp < 7.1 is known to require
inversion
if ((_authoringToolVersionMajor <= 7) &&
(_authoringToolVersionMinor < 1))
{
_invertTransparency = true;
} else
{
// Google SketchUp >= 7.1 is known to
be fixed (7.1.6860 to be exact)
_invertTransparency = false;
}
} else
{
_invertTransparency = findInvertTransparency(database);
}
}
Let me know what you think.
Cheers,
Florian
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31979#31979
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org