The VRML/X3D loader will not correctly display textures with an Alpha
channel. I've got a workaround for folks currently. I'll fix it later(can
you say deadlines!).
If you wish to use a texture with an alpha channel then apply a Material
node to the object with a transparency setting of > 0, 0.01 will do. This
will mark the TransparencyAttributes mode to FASTEST which will make the
object render correctly. Fixing the problem will involve detecting that a
texture has an alpha channel(passing info back from the texure loader) and
then setting the TransparencyAttributes for the object.
Example VRML:
Shape {
appearance Appearance {
material Material {
diffuseColor 0.517647 0.607843 0.639216
ambientIntensity 0.281046
specularColor 0.4 0.395294 0.395294
shininess 0.753
transparency 0.01
}
texture ImageTexture {
url "./textures/feed_tubes.png"
}
}
-Alan
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".