Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: fredikk

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    2,342

    Roaoul, thanks very much man! The problem was...

    Roaoul, thanks very much man! The problem was exactly what you mentioned. The cube was first rotated and then scaled (in every frame). So the call that works is

    effect.transform.modelviewMatrix =...
  2. Replies
    5
    Views
    2,342

    Well, I thought that defining the aspect ratio in...

    Well, I thought that defining the aspect ratio in


    effect.transform.projectionMatrix = GLKMatrix4MakePerspective(GLKMathDegreesToRadians(45.0f), 3./4., 3, -5);

    to 3/4 should set the view port...
  3. Replies
    5
    Views
    2,342

    Cube squeezed while rotating, using GLKit

    So I am trying to draw and rotate a cube using GLKit on an iPad. My problem is that as the cube rotates it seems as the aspect ratio changes with it, squeezing it as it rotates. To be more precise,...
Results 1 to 3 of 3