You need to switch back face culling off. (By default back faces are
culled).
/* 'Culling' a face makes the face invisible.
CULL_BACK - switch back face off
CULL_FRONT - switch front face off
CULL_NONE - switch no face off
*/
Appearance app = new Appearance();
PolygonAttributes attributes=new PolygonAttributes();
attributes.setCullFace(attributes.CULL_NONE);
app.setPolygonAttributes(attributes);
testModel.setAppearance(app);
etc....
Regards,
Andy Phelps
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Antoine
Bignebat
Sent: 07 June 1999 12:52
To: [EMAIL PROTECTED]
Subject: [java3d] GeometryInfo rendering
Hi,
I'm a beginner in Java3D and I want to display my school in 3D.
I've a file with a first part with all the points of the building, and a
second part with all the polygon array defining the vertex with the
previous points.
All works well... but...
The problem is that I saw the triangles by only one side and I want to see
them on both sides (I've just set a material to the shape).
I would like to know if there is a flag that allows the rendering of both
sides of the triangles.
Or something similar...
Thanks a lot.
Antoine
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/