About multi texture take a look at TextureUnitState, TextureAttributes, TextureUnitState.setTextureAttribute(TextureAttributes textureAttributes) and Appearance.setTextureUnitState(TextureUnitState[] stateArray),
you can mix several textures using above classes and methods. But there is a hardware limitation on using texture unit state (TU). Old cards (GeForce 2, GF 4MX) can handle up 2 T.U., while GF-4 Ti, FX 5200, etc can handle up to 4 TUs, and ultimate vcards can handle 8 or more TUs (ATi 9800, GF6600, etc). Check your hardware textureUnitStateMax capability running QueryProperties demo. You can mix textures using one of the several modes available in TextureAttributes (modulate, blend, combine, etc). Texture images with Alpha Channel (or transparency mask), as PNG, are very interesting for multitexture. But you need a good image editor to create and edit alpha channel, as GIMP (free), Jasc Paint Shop Pro, PhotoShop, etc. Have fun ! Alessandro --- Ben Moxon <[EMAIL PROTECTED]> wrote: > Whatever you do the texture needs to be square and have a side of binary > length ( 32, 64, 128 etc ) in order to be passed to the hardware. If you want > to use multiple images you will probably want to use normal Java2D techniques > to combine them into a single square image file and then use that as a > texture. You can make sure they line up correctly by using > TextureCoordinates. > > It's not the only way to do it but it is a relatively easy and efficient one. > > -ben > > > -----Original Message----- > From: Discussion list for Java 3D API > [mailto:[EMAIL PROTECTED] Behalf Of H. Ding > Sent: 10 March 2005 05:12 > To: JAVA3D-INTEREST@JAVA.SUN.COM > Subject: Re: [JAVA3D] more than two images in one face of a cube and > every face with different images > > > Hi Alessandro, > > I read the one as you mentioned. > > But what I want is to combine several images to one image, so I can paste > all the images to one face of the 3D box. > > Can I use the > public ImageComponent3D(int format, > java.awt.image.BufferedImage[] images) > > set method to combine several images to the object, then use getImage() to > get the combined one image ?? > > Best, > > > You can change the image texture from time to time, as seen on > > TextureByReference demo, but one after one. > > Check TextureByReference demo. I guess it works as you wish. > > > > Alessandro > _______________________________________________________ Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora. http://br.acesso.yahoo.com/ - Internet rápida e grátis =========================================================================== 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".