Oops. The whole point of DecalGroup is to disable depth buffering for
*coplanar* objects. Problem is that spheres are not planar to begin
with. That's a tough one. ;) In order to use DecalGroup you would have
to put each face of the sphere into it's own group, and split the lines
along those faces.
How about making the lines part of the texture? Probably not what you
want because it would be cool for the lines to show up regardless of
whether the sphere is lit on every side.
Another thing (which would probably be expensive) is to draw the outline
of each country as polygon in WIREFRAME mode. Then the ones on the back
side would be culled out because they face away from the viewer. The
expensive part is having to triangulate each country. Plus I don't know
that Java3D supports drawing just the outline of a triangulated shaped
(and not the internal triangle edges).
You usually have to get creative when you want to draw two things at the
some location, which is what you are doing. ;)
Anybody else have other ideas?
As I write this, I'm wondering if you can specify a normal for each line
segment? If so, you could use that to let Java3D know when each line
segment is facing away.
-Lee
-----Original Message-----
From: Sackmunky [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 9:41 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Decal Group
Question:
I am placing the texturedSphere and the lines on top in a Decal Group. I
have set the capabilites of the texture to DECAL. The only problem is
that I can see the back of the globe. Is there anyway that I can tell
JAva3D just to show the lines that are visible to the viewer?
Thanks
Zak
Attached is a picture of the scene.
===========================================================================
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".