Web design rates - float[] tcoords = { 1, 0, 1, 1,
float[] tcoords = { 1, 0, 1, 1, 0, 1, 0, 0 }; //define the normal vector for the new left face Vector3f normalVector = new Vector3f(-1.0f, 0.0f, 0.0f); //assign the colors to the QuadArray geometry.setColors( 0, colors, 0, 4 ); //assign the normal vector for each vertex in the QuadArray for( int n = 0; n <4; n++ ) geometry.setNormal( n, normalVector ); //assign the texture coordinates for each vertex in the QuadArray geometry.setTextureCoordinates( 0, tcoords, 0, 4 ); //finally, assign the vertices themselves into the QuadArray geometry.setCoordinates( 0, verts ); All rendering was performed with NOTE PolygonAttributes.CULL_NONE; so all the faces of the Box were rendered. 9.12.1 A warning about transparency Consider carefully what you are trying to achieve if you choose to use transparency as an Appearance attribute in your scene. It is very difficult to know exactly what will be rendered by Java 3D in either NICEST or SCREEN_DOOR mode, and without some form of application-specific sorting algorithm, which must be carried out potentially on every frame, problems will probably occur. The issues with transparency really do not reside at the Java3D level, but Java 3D has not done a good job of insulating the Java 3D developer from the underlying issues in the OpenGL/DirectX implementation. I am hopeful that Sun can address many of these issues in Java 3D 1.3. 143
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.