Fredrik,

In a way you can do this, you can make a compound texture and carefully
select the texture coordinates (i.e. a single texture that is actually
several textures put together).

Generally it's easier to make your model in a 3D design program (like 3D
Studio Max) and do your texturing there (then just import the model into
Java 3D).

- John Wright
Starfire Research

Fredrik Andersson wrote:

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".


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