...if you're using shading, also use setBackFaceNormalFlip(true) of Class
PolygonAttributes. Lightning will be enabled on both sides of the triangles,
that means, orientation will be ignored.
Gernot Veith
[EMAIL PROTECTED]
http://www.janet.de
> -----Original Message-----
> From: Dennis J Bouvier [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 28, 1999 4:56 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Strange black holes in rendered object
>
>
> If the situation is as David has described, then the "problem" lies
> in how the triangle strip array has been created. Java 3D, Open GL,
> and other 3D graphics rendering systems cull polygonal surfaces
> by default. It seems as though the "holes" are individual triangles
> of the strip with the vertices defined in the opposite order as the
> rest of the strip.
>
> The easy way to determine if this is the problem is to turn
> of backface
> culling. The culling is set in the PolygonAttributes NodeComponent.
> The following four lines of code create a PolygonAttributes object and
> sets the culling to CULL_NONE, and so forth.
>
> PolygonAttributes polyAppear = new PolygonAttributes();
> polyAppear.setCullFace(PolygonAttributes.CULL_NONE);
> Appearance twistAppear = new Appearance();
> twistAppear.setPolygonAttributes(polyAppear);
>
> This code is taken from Chapter 2 of the Java 3D Tutorial. In the
> last section of the tutorial, the determination of polygonal faces
> is explained along with complete code example programs.
>
> If CULL_NONE make the holes disappear, then the solution is to
> change the way in which the vertices are defined in the triangle
> strip array. Consult chapter 2 for more information.
>
> If CULL_NONE does not make the holes disappear then there is a
> different problem.
>
> cheers,
> Dennis
>
> David HALLE wrote:
> >
> > Hi,
> > I had this bug too. If you put your viewplatform under
> > the surface of your TriangleStripArray, you should see
> > the face the your holes and holes in place of the face
> > you were seeing. You may change the polygonattributes
> > of the appearance of your Shape(and create it if you
> > don't have one yet).
> > May be not the right solution, but I can't see
> > anything else.
> > good luck,
> >
> > ===
> > David.
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.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".
>
> --
> -----
> Dennis J Bouvier
>
> Find the Java 3D Tutorial "Getting Started with the Java 3D API" at
> http://sun.com/desktop/java3d/collateral
>
> ==============================================================
> =============
> 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".