Do transparent textures work in java3d ? To demonstrate I have included two pictures of a low res cylinder with transparent textures (correct, wrong). Now matter what combination of Texture Attributes I use the blue back seems to dominate. Here is the jython code
def buildAppearance(self):
app = Appearance();
ta = TransparencyAttributes()
ta.setTransparencyMode(ta.NICEST) app.setTransparencyAttributes(ta)
tex = TextureLoader('mask5.png', JFrame()).getTexture();
app.setTexture(tex);
texAttr = TextureAttributes();
texAttr.setTextureMode(TextureAttributes.REPLACE);
app.setTextureAttributes(texAttr);
pa = PolygonAttributes()
pa.setCullFace(PolygonAttributes.CULL_NONE)
pa.setBackFaceNormalFlip(1)
app.setPolygonAttributes(pa)
return app
I have spent quite some time trying to solve this on my own so any help greatly appreciated,
Chris
<<inline: correct.png>>
<<inline: wrong.png>>
