Re: [osg-users] PNG and Collada

2008-11-17 Thread Roger James
I have looked at bit harder at the code now and I now realise that I only partially fixed Sketchup's broken Collada stuff. Sketchup is putting the texture image sampler reference into the Collada diffuse parameter and sets the transparent parameter to a fixed opaque white colour. The plugin

Re: [osg-users] PNG and Collada

2008-11-17 Thread Roger James
I have just looked at the latest Collada spec (1.5.1) and they have changed the default for the opaque attribute of the transparent from A_ONE (1 is opaque) to A_ZERO (0 is opaque). This would will fix some of the Sketchup inconsistencies as and when Skertchup gets round to specifying version

Re: [osg-users] PNG and Collada

2008-11-16 Thread alessandro terenzi
As a temporary workaround, I'm trying to fix my .dae models by modifying their scenegraphs in the following way: I created a node visitor that looks for Geodes whose blending in turned ON, then for such geodes I change the the blending function in the way I wrote in my previous mail and also

[osg-users] PNG and Collada

2008-11-15 Thread alessandro terenzi
I'm experiencing some problem with collada models and transparency texture maps. I saw that in May someone had the same problem but finally I couldn't find a solution. I tried with osg2.2.0 and 2.6.0 and it looks like that transparency doesn't work with collada models and png texture maps. I

Re: [osg-users] PNG and Collada

2008-11-15 Thread Jean-Sébastien Guay
Hi Alessandro, If you change this: rendering_hint DEFAULT_BIN to this: rendering_hint TRANSPARENT_BIN and then load the file in osgviewer, does that work? The two things you need to get proper transparency is enabling GL_BLEND and giving the TRANSPARENT_BIN rendering

Re: [osg-users] PNG and Collada

2008-11-15 Thread Roger James
Alessandro, I put the GoogleMode flag into the dae writer in December 2007 after examing the dae files ouput by Sketchup at that time. Here is the comment from the SVN log. 8. User can supply an experimental GoogleMode option on output. The plugin will try to emulate the way Sketchup

Re: [osg-users] PNG and Collada

2008-11-15 Thread Smeenk, R.J.M. (Roland)
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of alessandro terenzi Sent: zaterdag 15 november 2008 12:09 To: OpenSceneGraph Users Subject: [osg-users] PNG and Collada I'm experiencing some problem with collada models and transparency

Re: [osg-users] PNG and Collada

2008-11-15 Thread alessandro terenzi
I tried to set TRANSPARENT_BIN rendering hint but this didn't solve the problem. But I noticed another difference instead. First I tried this: - created a box in 3dsmax with a png texture applied in the diffuse slot - exported using osgexp (keeping the original texture file, ie png) - osgconv