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: Quantumcat

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    393

    Finding the centre of a rotated object

    I want to find the centre of my objects so that they will sit on the ground and look realistic - I translate them up by half their height, and the ground is spread along the x-z axes with y = 0.

    I...
  2. Replies
    1
    Views
    914

    Rotations after swapping axes

    I have a model parsed from a Collada file, and it was arranged weirdly so I have to rotate it -90 degrees on the x-axis so it is on the ground facing the front.

    I have figured out that this means...
  3. Replies
    6
    Views
    3,797

    Never mind!! I figured it out. I am supposed to...

    Never mind!! I figured it out. I am supposed to use a vec4, since the rotations are 4 by 4 matrices and you give the position vector a 1 at the end :-)
  4. Replies
    2
    Views
    834

    I think if you try to do it yourself and run into...

    I think if you try to do it yourself and run into problems, you can post a specific question and people will help you with it.
  5. Replies
    6
    Views
    3,797

    Thanks everyone. I downloaded glm and included...

    Thanks everyone. I downloaded glm and included it. In my Rotate function, after I get the matrix and use it, it says I am not allowed to use the operator * on the matrix and vector. Google comes up...
  6. Replies
    6
    Views
    3,797

    OpenGL rotation function?

    I have some objects with vectors of positions. I have been successful getting them to sit on the floor by calculating their centre, and translating them up enough so they sit on the floor object...
  7. Thanks for your fast reply tonyo!! That looks way...

    Thanks for your fast reply tonyo!! That looks way better than what I had. I also just figured out I have to disable the attrib arrays for textures so it didn't crash on glDrawArrays. I now have a...
  8. Beginner: Implementing both colours and textures in fragment shader (for picking)

    Hi all, this is my first post.

    I am learning about shaders in a very piecemeal fashion so don't be surprised if I seem to not understand really obvious things.

    I have to implement picking in a...
Results 1 to 8 of 8