Fredrik Andersson wrote: > I'm trying to set an texture on to a Shape3D but the picture always > appear upside down. Like a painting hanging upside down, (not faceing > the wall, hope you understand). > > I have tried to change the textureCordinates but nothing happens, this > is the code:
One of the most common reasons for this is because of the way that textures load. The coordinate system for 3D textures is usually upside down to the 2D image. Put simply, 3D textures have the Y axis pointing up the page, where 2D images have the Y axis down the page. The ImageComponent2D class constructor has a yUp parameter. Try setting that to false. -- Justin Couch http://www.vlc.com.au/~justin/ Freelance Java Consultant http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== 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".
