# Search:

Type: Posts; User: Quantumcat

1. ## Thread: Finding the centre of a rotated object

by Quantumcat
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. ## Thread: Rotations after swapping axes

by Quantumcat
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. ## Thread: OpenGL rotation function?

by Quantumcat
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. ## Thread: Need Help In Modifiying My Code OPENGL

by Quantumcat
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. ## Thread: OpenGL rotation function?

by Quantumcat
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. ## Thread: OpenGL rotation function?

by Quantumcat
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. ## Thread: Beginner: Implementing both colours and textures in fragment shader (for picking)

by Quantumcat
Replies
2
Views
1,086

### 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. ## Thread: Beginner: Implementing both colours and textures in fragment shader (for picking)

by Quantumcat
Replies
2
Views
1,086

### 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