Hi
I need of helps!
How do I put texture in Cube and Sphere objects ?
This code dont works:
Sphere sp = new Sphere();
sp.setCapability(Primitive.GENERATE_TEXTURE_COORDS);
Appearance app = tetra.getAppearance();
TextureLoader tex = new TextureLoader("tijolo.jpg", this);
app.setTexture(tex.getTexture());
TextureAttributes texAttr = new TextureAttributes();
texAttr.setTextureMode(TextureAttributes.MODULATE);
app.setTextureAttributes(texAttr);
app.setMaterial(new Material(black, white, brack, white, 1.0f));
objTrans3.addChild(tetra);
And for ColorCube? How I do put texture?
Send-me examples and/or helps.
Wait yours e-mails.
[]s
Haroldo
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
===========================================================================
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".