You have to use the flag GENERATE_NORMALS_INWARD when you create your
sphere.
Le Tue, 14 Oct 2003 09:51:09 +0100, Paul Brown <[EMAIL PROTECTED]> a
écrit:
I want to be able to map a texture to the uppermost hemisphere of the
inside of a sphere. It's actually a picture of the sky and I'm using a
sphere rather than putting it straight on to the background (so that
it's not fixed when I move around as is the case when using the
background).
Being lazy, I don't want to generate the texture coordinates and normals
myself - especially when they're already available for a primitive shape
like a sphere. But the simple approach will mean that the texture map
will be applied to the whole sphere and not just the upper hemisphere.
Can anyone please tell me how to map the texture to the upper hemisphere
only. There must be a way. This must be a common problem.
As a workaround, I guess I could double the size of my image but I would
prefer a more elegant solution.
Thanks,
-Paul
===========================================================================
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".
--
Virtual Worlds Productions
Software Development Group
http://www.virtualworlds.de
===========================================================================
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".