Never mind,  I got it....  You det the "false" to "true" in the
PolygonAttributes....

Any way to make the inside a different color without defining a different
polygon?

-----Original Message-----
From: Bob Gray [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 23, 1999 1:37 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] CULL_NONE?


I have a polyhderon centered at the origin.

I defined the PolygonAttributes of the appearance to be

A.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_FILL,

                                             PolygonAttributes.CULL_NONE,
0.01f, false));

I then set the front cull distance to be between the view platform and
the polyhedron.

As I zoom in on the polyhedron, the front cull plane will start to
intersect the polyhedron and cut away at it, revealing the inside.  Its
a nice effect.

But, the inside is all gray.  It doesn't have the same color (or shades of
the same color) as the outside.

I thought by setting the PolygonAttributes to be PolygonAttributes.CULL_NONE
that both sides of the polygons making up the polyhedron would have color.
It
doesn't work....

So, how should I define the polyhedron so both inside and outside have the
same color?

I thought about doing some kind of norm vector inversion, but this would
result
in the outside of the polyhedron loosing its color, wouldn't it?

And I thought about defining 2 Polyhedra; one with its normals pointing out
and one
with its normals pointing in.  But that's an ugly thing to do!

So how should I do it?

Bob Gray

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

Reply via email to