Yes,
Exactly what I was looking for. I just did not know that the Box class
provided these functions. Seems much easier than creating six quads and
arranging them appropriately. Thank you very much Alessandro, I really
appreciate the point in the right direction.
David Hibshman
-----Original Message-----
From: Alessandro Borges [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 7:37 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] How to: texture question
Hi Dave !
A easy way is call a face shape and set a appearance.
Box box = new Box();
box.getShape(Box.TOP).setAppearance(appearTop);
box.getShape(Box.FRONT).setApperance(appearFront);
....
getShape use the following constants to select the desired Box "face":
Box.FRONT,
Box.BACK,
Box.BOTTON,
Box.TOP,
Box.LEFT,
Box.RIGHT,
You can have the source code of Java3d-utils just unzipping the
java3d-utils-src.jar locate at your JRE folder. Jar can be opened with
WinZip.
Alessandro
----- Original Message -----
From: "Dave H on Hibish.com (E-mail)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 21, 2002 9:32 PM
Subject: [JAVA3D] How to: texture question
> Hi all,
> I am a newbie to 3D and Java3D. I have been working through the
tutorial
> and numerous books that are out in hopes of piecing together the knowledge
I
> am asking for now. I am basically trying to create a picture cube. I
want
> simply to create a cube and map a different image on each side of that
cube.
> I can cerate the cube easy enough and I can apply one texture to the whole
> cube or to any one face of the cube, but when it comes to loading multiple
> textures and mapping them to differing faces, I am getting lost.
> I was looking through the multi-texturing samples and although
this example
> was not given it seemed that it would be involved in someway. I can load
> multiple textures into the appearance with the multitextureunit array, but
I
> don't know how to then map each member of that array onto each side of the
> cube. I don't even know if that is the right way to go, it's just the
> latest thing I've tried. If someone could point me in the right direction
> to learn how to do this it would really be appreciated.
>
> thanks much,
> David Hibshman
>
>
===========================================================================
> 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".
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002
===========================================================================
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".