Hello I've got a basic Problem with Texture Mapping, I search in the archives, and in the great book written by D.Selman but i really need help... i would like to apply and repeat a image (128 *128) onto a spheroid shape3D (geom = trianglearray) without distorsion and without effect when i zoom onto the the Shape can I use dynamic Texture mapping? with TexCoordGeneration utility. my code : ///////////////////////////////// float nb_text_x = 1.5f; float nb_text_y = 1.5f; TexCoordGeneration tcg = new TexCoordGeneration( TexCoordGeneration.OBJECT_LINEAR, TexCoordGeneration.TEXTURE_COORDINATE_2, new Vector4f (nb_text_x,0,0,0), new Vector4f (0,nb_text_y,0,0) );
TextureLoader loader = new TextureLoader("F:/tex1.jpg", null); Tetxture texture = loader.getTexture(); appearance.setTexCoordGeneration(tcg); appearance.setTexture(texture); ///////////////////////////////// the result : this appreance work fine onto a Primitive shape like Sphere (without use this flag:GENERATE_TEXTURE_COORDS) the texture is just a little bit wrap on the sides of the shape. but don't work on my spheroid shape my texture is fine on the front but wrapped on rest of the shape, and when i zoom the texture change. maybe i must use a static mapping? but how define my texCoordinate if i want to repeat the texture? any help would be very appreciate to learn how to use texture in java3D Thanks in advance regards Renaud ===== ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com =========================================================================== 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".