Hi there,

this is more a bug (uglyness) report rather than a request!
We had some stability issues with java3d on our ibm laptops and found
out that a native code exception occured when drawing
spheres. The spheres are generated using the com.sun.j3d.util package.
We had problems with some spheres, but not with all.

We were (for a moment) unable to track the behavior down to something
special.

Yesterday I wrote some small method that generate POV-Ray files from
certain geometry arrays. For testing I used the sun Sphere.
PovRay didn't accept all the produced triangles (with textures) and I
had a closer look.

Sun produces a TriangleStripArray for the sphere, that includes
degenerated triangles (degenerated to a line A-B-A) that finally is
responsible for the exception on the ibm.

Thus, i wrote my own sphere generator that produces a TriangleStripArray
and two TriangleFan arrays for the bottom and top of the
sphere.

This is more or less a stability issue for the sun guys. I remember i
had the same problems with lines in a LineArray that had the length
zero.
The degenerated objects are not filtered adequately by some OpenGL
implementations and seem to cause internal overflows.

Cheers,
Karsten

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