Hello!
I solved it, the problem was the way I set the setCoordinate. I set them
wrong and I found the right way in the TexturedPlane-class downloaded
with Java3D
Thanks for all your help!!
Best Regards
Fredrik
-----Ursprungligt meddelande-----
Fr�n: Fredrik Andersson
Skickat: den 3 oktober 2001 13:45
Till: [EMAIL PROTECTED]
�mne: [JAVA3D] Still upsidedown
Hello!
Thanks for all help!
But I can't get this right.
This is so strange cause I have 2 different images like:
1.
-------
| I |
| I--|
| |
-------
2.
-------
| I |
|--I |
| |
-------
Image 1 appears OK but image 2 appaers upsidedown like:
-------
| |
| I--|
| I |
-------
The code for this is the same (sameobject) and looks like:
The TextureCoordinates:
Point2f point2f = new Point2f(0.0f, 0.0f);
quadArray.setTextureCoordinate(0, point2f);
point2f.set(1.0f, 0.0f);
quadArray.setTextureCoordinate(1, point2f);
point2f.set(1.0f, 1.0f);
quadArray.setTextureCoordinate(2, point2f);
point2f.set(0.0f, 1.0f);
quadArray.setTextureCoordinate(3, point2f);
And the ImageComponent2D:
imageComponent2D.setYUp(false);
So if someone understand what I'm doing wrong please let me know!
Best regards
Fredrik Andersson
=========================
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".