Advertisement Jump to content
Sign in to follow this  

OpenGL Active or Passive Transformation

This topic is 768 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

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

Share this post

Link to post
Share on other sites

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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!