Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quaternion Rotation
#4
The Quaternion question is very interesting to me, but unfortunately I'm not sure Undecided I haven't really done any OpenGL stuff using QB64 before and most of what I've done used OpenGL shaders which work a bit differently.

That said, while it has been awhile I'm pretty sure in most (or maybe all) cases quaternions were just used in the program and weren't given to OpenGL, it would just receive the resulting model matrix after I had use the quaternions to produce it. So Ex. I would store the orientation of a model as a quaternion, but then when drawing the object I would convert the orientation into a rotation matrix and use the rotation matrix (along with translation, scaling, or other transformations) to produce the model matrix for OpenGL to use. So looking at it I think `glMultMatrix` is want you want, but you have to compute the matrix yourself.

> Is heat really an issue?

It's notable that most modern processors will start throttling themselves if they get too hot, so running the CPU too hot can actually reduce performance until it cools down.
Reply


Messages In This Thread
Quaternion Rotation - by dcromley - 06-11-2022, 03:28 AM
RE: Quaternion Rotation - by bplus - 06-11-2022, 05:11 AM
RE: Quaternion Rotation - by dcromley - 06-11-2022, 08:20 PM
RE: Quaternion Rotation - by DSMan195276 - 06-11-2022, 09:05 PM
RE: Quaternion Rotation - by bplus - 06-11-2022, 10:07 PM
RE: Quaternion Rotation - by euklides - 06-12-2022, 01:31 PM



Users browsing this thread: 1 Guest(s)