transform the axis

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

transform the axis

houandreas
hello, i create a cylinder, but i want to see the upside not the side view of it. so i want to rotat the Y-axis of it. I know that there is a command like rotY, how can i use it? (i dont want to change the view of other existing objects)
Reply | Threaded
Open this post in threaded view
|

Re: transform the axis

Sven Gothel
Administrator
On 07/23/2015 08:58 PM, houandreas [via jogamp] wrote:
> hello, i create a cylinder, but i want to see the upside not the side view of
> it. so i want to rotat the Y-axis of it. I know that there is a command like
> rotY, how can i use it?

Even if you might landed in the wrong forum,
in case of OpenGL, it depends which profile you use.
  <http://jogamp.org/jogl/doc/Overview-OpenGL-Evolution-And-JOGL.html>

OpenGL ES2 Example of rotating a user maintainer modelview matrix:
  RedSquareES2 Line 176

<http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java;h=a0afef87a945a1cba4ac18aba428291cab0a2167;hb=HEAD#l176>

OpenGL ES1 Example of rotating the OpenGL fixed-function modelview matrix:
  RedSquareES1 Line 209

<http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/demos/es1/RedSquareES1.java;h=60ac6b2331c62760e8f6bdf1fb3ed319206000a8;hb=HEAD#l209>

For further questions, please read our unit tests,
or better read some OpenGL tutorials first.
I would recommend to drop the fixed-function pipeline
altogether and focus on the OpenGL core programmable APIs only,
which some call 'Advanced OpenGL Techniques ..' or the like.

~Sven



signature.asc (828 bytes) Download Attachment