• 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
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.


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

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