Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - dimy93

Pages: [1]
1
Support / Full screen and projection matrices
« on: June 22, 2013, 01:17:26 am »
I am trying to display an unit cube so that it fits in a specific way in the phone's screen. At the moment I need to display it so that its  side is equal to the smaller of the sides of the screen. Later I may also need to add margins to the picture. Thus, I am searching for a way to get the screen coordinates of the cube. I know that the right way to do that is to use the projection matrix. But the projection matrix of the camera class is puzzling to me. It definitely doesn't match the normal opengl projection matrix(even converted to opengl matrix using the toOpegl method in the Matrix class). So I was wondering if you guys know how the matrix is derived or even better - how to use it to convert a vertex to screen coordinates. Thx in andvance

Pages: [1]