Please help me.
how texturing in obj files.
Scene s = null;
s = f.load("c:/3ds_object/body.obj");
Transformgroup objScale = new TransformGroup();
objScale.addChild(s.getSceneGroup());
Appearance app = new Appearance();
Texture tex = new TextureLoader("front.jpg", this).getTexture();
app.setTexture(tex);
TextureAttributes texAttr = new TextureAttributes();
texAttr.setTextureMode(TextureAttributes.MODULATE);
app.setTextureAttributes(texAttr);
BranchGroup b1 = s.getSceneGroup();
Shape3D shape1 = (Shape3D) b1.getChild(0);
GeometryArray g1 = (GeometryArray) shape1.getGeometry();
shape1.setGeometry(g1);
shape1.setAppearance(app);
I think must figure out about TEXTURE_COORDS
help me.
===========================================================================
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".