Dark Bit Factory & Gravity

PROGRAMMING => C / C++ /C# => Topic started by: combatking0 on July 25, 2012

Title: [C#][OpenTK] 3D Rotation
Post by: combatking0 on July 25, 2012
I've been looking at the OpenTK documentation for rotating a 3D model, but I'm having difficulty in understanding it.

Whenever GL.Rotate is called in the examples, it appears to apply to the whole environment, rather than an individual point in the object I'm drawing.

This could cause problems when I want to draw 2 seperate 3D objects, rotating independantly.

Or should I apply the rotation, draw the first object, then apply another rotation, and draw the second object?

I'll give it a try.
Title: Re: [C#][OpenTK] 3D Rotation
Post by: Raizor on July 25, 2012
CK, sent you a PM.
Title: Re: [C#][OpenTK] 3D Rotation
Post by: hellfire on July 25, 2012
Since OpenTK seems to be a wrapper to OpenGL, you probably just want to look up what the matrix stack is.
Title: Re: [C#][OpenTK] 3D Rotation
Post by: combatking0 on July 25, 2012
K++ Raizor and Hellfire.

Matrices? Noooooooooooooooooooooooooooooooooooooooooooo!  :o

I can't avoid them forever though, so I'd better start learning. ;)