Hi,

I have a related question, it seems that if you wanted to show the 'back face' of some 
polygons, you have too options, reverse
the winding of your polygon definitions (which may involve recreating/indexing you 
geometry) or you could use
PolygonAttributes.CULL_FRONT.

My question is, is there any performance hit when you specify CULL_FRONT instead of 
the default CULL_BACK. Related to this, do
you get a major performance hit by specifying CULL_NONE?

Cheers,

Brad

Roland Sarrazin wrote:
>
> Hello,
>
> To answer my own question, here is the solution.
>
> I wasn't aware enough about Java3D's and its underlying layer OpenGL's techniques. 
>Apparently, to do backface (or frontface) culling, OpenGL does not rely on the 
>normals you provide him, but on what IT considers to be back and front. That is, it 
>considers the way you order the vertices you give him and deduces the direction 
>according to clockwise and counterclockwise order.
>
> So I could solve my problem.
>
> Thanks anyway.
>
> ===========================================================================
> 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".


----------------------------------------------------------------------------
This Email may contain confidential and/or privileged information and is
intended solely for the addressee(s) named. If you have received this
information in error, or are advised that you have been posted this Email by
accident, please notify the sender by return Email, do not redistribute it,
delete the Email and keep no copies.
----------------------------------------------------------------------------

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