Mark -

Thanks for the response...could you elaborate a bit on the two-pass
rendering?  I've never dealt with anything like that before.

Thanks again,
Nick




> Date:         Mon, 24 Jan 2005 15:32:43 -0600
> From: Nick Stark <[EMAIL PROTECTED]>
>
> I am using a ModelClip object to clip away a portion of the 3D object.
> However, when this happens, you see the edges of what has been clipped
and
> you can see inside of the object at this point.  Is there a way to close
off
> this object at the clippling plane surface so that you cannot see inside
of
> the object?

The standard 3D graphics trick for this is to use separate distinct
appearance attributes for the inside, backward-facing polygons;
specifically, a constant-color interior material that doesn't respond to
lighting.  Then, when the outer surface is cut away, all you see for the
interior are these constant-color surfaces, so the cut appears to close
off the clipped surface.

Of course the closed "cap" for the clipped surface isn't real and
doesn't respond to the lighting model.  If you need that you'll have to
compute the intersection.

Java 3D doesn't support separate attributes for backfacing polygons, so
you'll need to perform the rendering in two passes, via OrderedGroup or
immediate mode:  first the front-facing polygons, then the back-facing
ones, while switching the attributes between passes.

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

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