Re: [osg-users] [osgPlugins] Collada Plugin problem with SketchUp exported models...

2010-09-23 Thread Florian Kolbe
Hi,

   the current Code 2.9.9 uses daeReader::findInvertTransparency to determine 
transparency inversion. I am currently facing issues with missing transparancy 
on some of the objects I am exporting from SketchUp. Though I dought this is 
the issue, I was wondering if daeReader::findInvertTransparency is still the 
right approach. Or maybe strictTransparency should override invertTransparency?

Now (2.9.9) the code in daeReader::processTransparencySettings reads:


Code:
_invertTransparency = findInvertTransparency(database);



But maybe it should read?:


Code:
if (_strictTransparency) {
  _invertTransparency = false; // already the default, but hey...
} else {
  _invertTransparency = findInvertTransparency(database);
}



Hope this helps!

Cheers,
Florian

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPlugins] Collada Plugin problem with SketchUp exported models...

2010-09-23 Thread Florian Kolbe
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