standard opengl z axis reversed in hopengl ?

View: New views
2 Messages — Rating Filter:   Alert me  

standard opengl z axis reversed in hopengl ?

by minh thu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,

I thought the z axis increases towards the user. but

  translate (Vector3 (-0.2) (-0.2) (-0.2::GLfloat))

translates a bit towards the left, down and *the user*.

Is it the standard opengl behavior ?

thank you,
vo minh thu
_______________________________________________
HOpenGL mailing list
HOpenGL@...
http://www.haskell.org/mailman/listinfo/hopengl

Re: standard opengl z axis reversed in hopengl ?

by Sven Panne :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Mittwoch, 8. März 2006 14:29 schrieb minh thu:
> I thought the z axis increases towards the user. but
>
>   translate (Vector3 (-0.2) (-0.2) (-0.2::GLfloat))
>
> translates a bit towards the left, down and *the user*.
>
> Is it the standard opengl behavior ?

HOpenGL does nothing special here, what you experience is standard OpenGL
behaviour. Having a look at chapter 3 of the famous Red Book might help you
to see what's going on, especially the section "Viewing and Modeling
Transformations":

   http://www.rush3d.com/reference/opengl-redbook-1.1/chapter03.html

Cheers,
   S.
_______________________________________________
HOpenGL mailing list
HOpenGL@...
http://www.haskell.org/mailman/listinfo/hopengl
LightInTheBox - Buy quality products at wholesale price