Hello! Thanks for your reply! But do you mean (if you check my MTLB) that each surface should be a own Shape3D and that the hole thing should be put together with a TransformGroup?
My hope is that (if you check my MTLB) that a could add a Texture to one certain surface of my geometry and an other Texture on an other surface but in the same geometry. Best regards Fredrik -----Ursprungligt meddelande----- Från: Alessandro Borges [mailto:[EMAIL PROTECTED] Skickat: den 14 januari 2004 12:40 Till: [EMAIL PROTECTED] Ämne: Re: [JAVA3D] How to put texture on a non rectangular surface? (Test source avilable) Hi, Each shape3D can have have it's own appearance and it's own texture. The geometry data can have have, or not, texture coordinates. Texture cordinates can be 2D, 3D or 4D. Texture mapping is the assignment of a vertex texture coordinates to a pixel in a texture image. Java3D has several kinds of automatic texture coordinates creation, but the texture mapping you need is a specific thing and must be done by hand or with a tool designed for it. You do it by hand, but for complex shapes, as autos, aiplanes, etc its better use a specialized tool to create it, texture map it, then import into Java3D, as a LWS, OBJ, VRML or 3DS. There are a lot info about it in the net. Try the nvidia and ATI web site, in the developer section. Alessandro --- Fredrik Andersson <[EMAIL PROTECTED]> escreveu: > Hello! > > I'm trying to make a model of a EastGerman Tank > (MTLB). So far I have made > the body, this example builds on Sun > GeomInfoApp.java. > > Now I wan't to add differnet texture on each surface > (not only rectangles) > of the tank, but I can't understand how. > > My class extends from BranchGroup and has a > TransformGroup as child. That > transformGroup has a Shape3D as child with the > geometry. > > I really hope that it is possible to add different > textures to differents > surfaces with other shapes than rectangeles and > squers. > > So if any one could help me with this, it would be > great. > > Thanks > Fredrik ______________________________________________________________________ Conheça a nova central de informações anti-spam do Yahoo! Mail: http://www.yahoo.com.br/antispam =========================================================================== 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".