To add to what Daniel Selman wrote:

I think the 2D way is a way cool approach to the problem.
Another solution might be to create your own sphere code
There are lots of places to pick up how to generate your own sphere with
triangles
and such.
Then, what you could do is map triangles to what countries.
These triangles go into their own triangle arrays.
Each of these countries now have their own geometry/shape and can also have
their own
appearance objects.  You can then apply texture for certain countries, and when
you try doing
picking, you can then even select certain shapes and change the appearance of
that shape to then make it glow(look selected)

Now, depending on how many countries you want to put in, this could be
computationally expensive.

Another approach, is to manipulate your image map of the world during run-time
You keep one buffered image, and then a changeable image.
if you select a country, you copy your buffered image to the changeable image,
and recolor the country in question. Maybe multiply each of the rgb values by
1.2 or something. This would then make it brighter.  Then, just reapply the
texture onto the sphere.  I am not sure how fast this could be, but it might be
an option.

So, there are some more options for you
Scott


Scott Decker
Research Scientist
Pacific Northwest National Labs
[EMAIL PROTECTED]
please feed the squirrels

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