Jump to content
  • Advertisement
nOoNEE

OpenGL why is vector of direction of camera in reverse ?

Recommended Posts

hello , i have a question about camera in openGL why the vecto r of direction of camera is in reverse ?  what is the reason behind it ?

d8a60p6w.bmp

Share this post


Link to post
Share on other sites
Advertisement

I have no idea what is rendering those images or what the "Direction" image is supposed to be representing.  But if you mean the solid purple vector, it looks like it's just the camera transform's z basis vector.  So the camera world facing vector would be the negative of that.

Share this post


Link to post
Share on other sites

Not sure what you're doing either but keep in mind there is a left handed and a right handed coordinate system, so if you are doing say a cross-product, the resulting vector may be the opposite of what you think it should be.  I don't work in OpenGL but I think it's right handed while Direct X is left handed by default. Someone correct me if I'm wrong on this.

Share this post


Link to post
Share on other sites
Posted (edited)
51 minutes ago, 0r0d said:

But if you mean the solid purple vector, it looks like it's just the camera transform's z basis vector

thanks i got what you say it solved the problem i had in my mind

Edited by nOoNEE

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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!