Rajesh,

I can't see a problem with what you have done, but the following two lines
may be interacting with each other:

       pa.setCullFace(pa.CULL_NONE);
       pa.setBackFaceNormalFlip(true);

I'd remove setBackFaceNormalFlip(true) and try it. Perhaps internally
pa.setCullFace(pa.CULL_NONE) sets a flag that pa.setBackFaceNormalFlip(true)
subsequently overwrites (as they are kind of mutually exclusive).

Sincerely,

Daniel Selman

[EMAIL PROTECTED]
http://www.tornadolabs.com




-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Rajesh Jain
Sent: 11 October 1999 09:57
To: [EMAIL PROTECTED]
Subject: Appearance Node/Back Face culling not possible


Hi,

I am not able to DISABLE Back Face culling.
This is the peice of code, it doesn't seem to work at all.

       Shape3D shape = new Shape3D();
       shape.setGeometry(gi.getGeometryArray());
       Appearance appr = new Appearance();
       PolygonAttributes pa = new PolygonAttributes();
       pa.setCullFace(pa.CULL_NONE);
       pa.setBackFaceNormalFlip(true);
       appr.setPolygonAttributes(pa);
       shape.setAppearance(appr);


Thanx .
--
                        Rajesh Jain ([EMAIL PROTECTED])
                        Parametric Technology Corp
                        http://www.ptc.com

===========================================================================
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".

===========================================================================
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".

Reply via email to