Ben Logan said: > Hi, > This might sound stupid, but I need help texturing a box! > I want 2 different textures, one on the front and one on the back, In > order to simulate a wall, in a house. > Whats the best way to achieve this, one image file containing inside + > outside textures, > Or two separate files? How do I implement this, I cant find anything in > my Java3D book... > It mentions wrapping, but not the kind that Im talking about! > > Thanks in advance for any help
Hi If you want to wrap the texture then you will need to create your own texture coordinates and apply them to the cube, you could then have the two bits of the texture in one texture file and just map the right bits, what are your plans for the sides and top/bottom of said wall, will they ever be visible?. The other option using two textures will need two shapes, this is because you need a shape3D for every different texture you use. You can combine geometry that uses the same texture in to a single shape3d, but this is not very good over a large visual area as (as I understand it) java3d sends whole shape3Ds to the card, so you will always send the whole shape. My java3d ac3d loader (when the optimise flag is set) will bunch all the shape3d's together that use the same texture, but only for the model. You might want to conside say all your outside wall faces being in one shape3d if they share a texture. HTH Jeremy -- Homepage: http://www.computerbooth.com/ Codepage: http://www.newdawnsoftware.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".