> Date:         Mon, 17 Jan 2000 16:16:29 +0100
> From: Ingo Brunberg <[EMAIL PROTECTED]>
>
> As I am developing on linux at home and on IRIX at the university I have
> to use J3D 1.1.1 until blackdown or SGI release newer versions. As far as
> I can see, there is no problem with the colors. They look right. The
> resulting picture indicates that there are indeed problems with the
> normals.

Unfortunately compressed geometry support in 1.1.1 was fairly incomplete and
had a few bugs.

Since you're using the 1.1.2 compressor you are probably hitting a bug in
the 1.1.1 release concerning the interpretation of front-facing polygons in
the compressed geometry buffer.  This can look like all the normals have
been reversed since you're actually seeing the inside surfaces of all your
objects.

Try working around it by calling setCullFace(CULL_FRONT) in the
PolygonAttributes component of the Appearance associated with Shape3D
containing the compressed geometry.  If you're mixing in non-compressed
geometry in the same scene you may need to use CULL_NONE instead.

> I don't want to dive too deep into the internals of the compression, but I
> think my IndexedTriangleArrays are converted to StripArrays, because I
> sometimes got errors about unclosed meshes. So the question is if geometry
> compression is applicable to an IdexedTriangleArray if you want to
> preserve the normals.

If a conversion to TriangleStripArray is occuring then it sounds like you're
using the Stripifier utility.  You may need to adjust the crease angle
parameter in order to control how adjacent facets interpolate normals.

What is the exact text of the error you're getting?

-- Mark Hood

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