Problems with Transparency and Texure
843799Nov 1 2001 — edited Nov 5 2001///Transparency
TransparencyAttributes ta=
new TransparencyAttributes();
ta.setTransparency(0.5f);
/* 0.5f means nothing I tried different floats from [0.0f, 0.1f]
*/
app.setTransparencyAttributes(ta);
Box box=
new Box(i, i, i, Box.GENERATE_NORMALS, app);
//Not works :(
// Texture
TextureLoader tl=new TextureLoader(this.bgImage, this);
Texture texture=tl.getTexture();
app.setTexture(texture);
TextureAttributes texAttr = new TextureAttributes();
texAttr.setTextureMode(TextureAttributes.REPLACE);
texAttr.setTextureTransform(t3d);
app.setTextureAttributes(texAttr);
Box box=
new Box(i, i, i, Box.GENERATE_NORMALS, app);
/* Not works but this texture succesfully applyes on background so it is ok.
*/
:(