Jump to content
  • Advertisement
Sign in to follow this  
TheStudent111

OpenGL Active or Passive Transformation

This topic is 678 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does OpenGL use active or passive transformations. I saw a video that said

GLM::lookat
used passive transformation were the camera moves the world, not the objects in themselves.

Share this post


Link to post
Share on other sites
Advertisement

Moving single camera is way cheaper than moving every single object individually.

So what's the point in making camera to behave differently?

Share this post


Link to post
Share on other sites

OpenGL does not "move" anything, because it would mean that the camera model or the object model would be altered. There is just a temporary copy of a subset of the vertices on the GPU that are altered. Moreover, GLM is related to but not part of OpenGL.

 

Mathematically changing the view means to put another transformation V' between the view matrix V so far and the world placement of the object's vertex position p like in

    V * V' * p

 

Now, since matrix multiplication has the associative property, we can write the above formula as

   ( V * V' ) * p

what can be interpreted as "moving the camera", or else as

   V * ( V' * p )

what can be interpreted as "moving the world".

 
However, due to the mathematical equivalence and the fact that OpenGL by itself does not override your data, I think the discussion is totally irrelevant.
Edited by haegarr

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!