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 checked Robert's suggestion and converted to .osg to check if GL_BLEND
function was enabled or not and it looks like it is... here follow a piece
of the converted .osg file.
Geode {
name "material10"
nodeMask 0xffffffff
cullingActive TRUE
StateSet {
DataVariance STATIC
rendering_hint DEFAULT_BIN
renderBinMode INHERIT
GL_CULL_FACE OFF
GL_BLEND ON
Material {
ColorMode OFF
ambientColor 0 0 0 1
diffuseColor 0.8 0.8 0.8 1
specularColor 0.33 0.33 0.33 1
emissionColor 0 0 0 1
shininess 20
}
BlendFunc {
source CONSTANT_ALPHA
destination ONE_MINUS_CONSTANT_ALPHA
}
BlendColor {
constantColor 1 1 1 1
}
textureUnit 0 {
GL_TEXTURE_2D ON
Texture2D {
file "images/texture9.png"
wrap_s REPEAT
wrap_t REPEAT
wrap_r CLAMP
min_filter NEAREST_MIPMAP_LINEAR
mag_filter LINEAR
maxAnisotropy 1
borderColor 0 0 0 0
borderWidth 0
useHardwareMipMapGeneration TRUE
unRefImageDataAfterApply TRUE
internalFormatMode USE_IMAGE_DATA_FORMAT
resizeNonPowerOfTwo TRUE
}
}
}
[...gemoterty data follow here...]
Is there something wrong with this file?
Someone talked about a problem in Sketchup with png files, actually the
models I'm dealing with come from Sketchup...is there really a problem with
Sketchup? Someone talked about a 'GoogleMode' in the collada plugin but it
looks like it is an option used for writing collada files not for reading.
Thank you for any advice or direction.
Alessandro
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org