Eric Hawthorne wrote:
> So what you're telling me is that a triangle strip
> has to be created like this:
>
> | / | / | / | / |
> | / | / | / | / |
>
> and not like this ?
>
> | / | \ | / | \ |
> | / | \ | / | \ |
Yes, but the order of vertices still make a difference.
0 2 4 6 8
| / | / | / | / |
| / | / | / | / |
1 3 5 7 9
The above figure is correct. The one below has a winding problem:
0,1,2 is facing 'down'; along with another problem: 2,3,4
0 1 4 6 8
| / | / | / | / |
| / | / | / | / |
2 3 5 7 9
Note how this can't make the triangle 3,4,5
0 2 5
| / | \ | / | \ |
| / | \ | / | \ |
1 3 4
> Does the API documentation on TriangleStripArray specify this? I don't recall
> that it does. It should if it is a requirement.
I don't recall if it is in the API Spec or not.
>
> Just out of curiosity, is it possible to override the triangle-vertex-order
> assumption of which is the back-face by supplying normals?
NO
>
> Dennis J Bouvier wrote:
>
> > 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.
--
-----
Dennis J Bouvier
[EMAIL PROTECTED]
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".