Only the first texture loaded appears.  I have swapped the args/textures
(GIF's), and still only the first ('plane' in the code below) appears
mapped on my object. The 2nd ('plane2', always shows up as a null/grey
color.

pseudo code:
------------------------------
Appearance app  = new Appearance();
Appearance app2 = new Appearance();
Texture tex1 = new TextureLoader(args[0], this).getTexture();
Texture tex2 = new TextureLoader(args[1], this).getTexture();

app.setTexture (tex1);
app2.setTexture(tex2);

QuadArray plane   = new QuadArray( 4, QuadArray.COORDINATES |
QuadArray.TEXTURE_COORDINATE_3);

QuadArray plane2  = new QuadArray( 4, QuadArray.COORDINATES     |
QuadArray.TEXTURE_COORDINATE_3);

<snip>** define quad array coordinates**<snip>

plane.setCoordinates  (0, coord);
plane2.setCoordinates (0, coordp);
plane.setTextureCoordinates  (0, coord);
plane2.setTextureCoordinates (0, coordp);

Shape3D newShape   = new Shape3D(plane,   app );
Shape3D newShape2  = new Shape3D(plane2,  app2);

<snip>  add to scene graph, etc.... <snip>
----------------------------
plane shows up fine always, plane2 never! Even when swapping plane and
plane2 in the code.

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to