• Post Reply Bookmark Topic Watch Topic
  • New Topic

Rotating Image Along Y axis in JOGL so that it is horizontal (Visible side faces upward)  RSS feed

 
Rizwan Rizi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to JOGL and have tried to display an image in JOGL from an example.

http://wiki.tankaar.com/index.php?title=Displaying_an_Image_in_JOGL_%28Part_1%29

However , this example displays the image in 2D, with the right side facing the user(i-e leaf is visible to user), **I wanted to change the code so that i can rotate the image along Y-axis, so that leaf is facing upwards and is not visible to user,(Outline of Image is Visible to user) and if i rotate it 30 degrees,

(gl.glRotated(30, 0, 1, 0);)

some part of image should be visible to user.** ,Below is the changing that i have done in the code, but it does not show the image, can any one tell me what am i doing wrong here.. Any Help will be GREATLY Appreciated, Thanks

Leaf.jpg
[Thumbnail for Leaf.jpg]
Leaf Image
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!