Skip to Main Content

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.
*/
:(
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on Dec 3 2001
Added on Nov 1 2001
2 comments
53 views