> X-Sender: [EMAIL PROTECTED]
> Mime-Version: 1.0
> Date: Fri, 29 Oct 1999 13:56:09 +0200
> From: clemenTs schr�der <[EMAIL PROTECTED]>
> Subject: [JAVA3D] disable backface culling in .obj models?
> To: [EMAIL PROTECTED]
>
> Hi there,
> i've got wavefront .obj file loaded into a scene. there are some shapes
> where the front and the back must be visible. to solve this problem i want
> to disable backface culling. how can i do this?
> so long and ...
> clemenTs
>
You need to create a PolygonAttributes object, turn off culling and add it
to your Appearance object. Something like:
PolygonAttributes pgonAttrs = new PolygonAttributes();
pa.setCullFace(pgonAttrs.CULL_NONE);
appearance.setPolygonAttributes(pgonAttrs);
Dan Petersen
Java 3D Team
Sun Microsystems
** Look for the new newsgroup: comp.lang.java.3d **
===========================================================================
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".