Author Topic: [C#][OpenTK] 3D Rotation  (Read 5343 times)

0 Members and 1 Guest are viewing this topic.

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
[C#][OpenTK] 3D Rotation
« 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.
You are our 9001st visitor.
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
Re: [C#][OpenTK] 3D Rotation
« Reply #1 on: July 25, 2012 »
CK, sent you a PM.
raizor

Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: [C#][OpenTK] 3D Rotation
« Reply #2 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.
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: [C#][OpenTK] 3D Rotation
« Reply #3 on: July 25, 2012 »
K++ Raizor and Hellfire.

Matrices? Noooooooooooooooooooooooooooooooooooooooooooo!  :o

I can't avoid them forever though, so I'd better start learning. ;)
You are our 9001st visitor.
Challenge Trophies Won: