Its a very old "problem" I've had for years with Java3d.

As far as I can tell, if you want transparency to work "correctly" for, say,
a sphere defined by (pick a number) 180 triangles, then you need 180
*different* Shape3d's, one for each triangle.  Define each of the 180
triangle's with its face center at (0,0,0).  Then add a TransformGroups for
each of the 180 Shape3D's to move the triangle to the correct position (on
the surface of the sphere you are building).

That defines the sphere around (0,0,0).  Add a TransformGroup to move the
entire sphere into position in the scene.

Then transparency seems to work when intersecting other geometry.

Cheers,
Bob Gray

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Joachim Bratteli
Sent: Friday, November 29, 2002 12:10 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Sorting of transparent textured objects [Re:
[JAVA3D]]


Friday, November 29, 2002, 11:12:28 AM, Nikolai V. Chr. wrote:
> Joachim Bratteli wrote:
>> Should my objects be splitted into many smaller
>>shapes so that they do not intersect/intertwine,
> Yes.

Oh my. I hope this doesn't mean that all my transparent shapes must
have one Shape3D for each transparent polygon. It would have been fine
if the sorting would have been based on polygons insted of shapes.

--
 Joachim Bratteli - [EMAIL PROTECTED]
System Programmer - IFE / OECD Halden Reactor Project
 Halden VR Centre - http://www.ife.no/vr/

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