Hi
> what means this error in the mapping for Texture2D ???
>
> java.lang.IllegalArgumentException - if width or height are NOT power of 2 OR
>invalid format/mipmapMode is specified.
Well that's easy. OpenGL and DirectX I think expect a Texture which has a
size of 2^n by 2^n for example 64 x 64, 128 x 128, 256 x 256 512 x 512.
Do have a different texture size in your case 100x100 you have to use a
texture which is 128x128 in size and handle the rest with the texture
coordinates so you maximum is not 1.0 but 0.78125 I also not sure how
Java3D handles OpenGL texture coordinates as 0 is not actualy zero but 1/2
as pixel/texel are always calculated from the middle and not the start of
a pixel.
EOF,
J.D.
--
Realtime Raytracer in JAVA
(http://www.antiflash.net/raytrace)
===========================================================================
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".