Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > Opengl finding ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 4887 of 5017
Post > Topic >>

Opengl finding direction vector

by onur.tugcu@[EMAIL PROTECTED] Aug 25, 2008 at 12:24 PM

Hi all,

I've written different "camera" codes, one uses spherical polar
notation with two angles, the other one uses a quaternion for
rotation. However I feel like I'm missing out on something. So many
calculations are done by the opengl library, so I should be able to
make use of at least some of them.

So the question is, is there any way that I can glRotate and find the
current internal direction vector or orientation matrix? glGet
GL_CURRENT_NORMAL always gives me 0, 0, -1. I think there should be a
way to calculate the real (non-relative) normal vector of a polygon
surface, maybe use that polygon to find the camera normal vector.

Perhaps there is a GLSL way? I haven't looked into that one yet.
Thanks for your attention.
 




 4 Posts in Topic:
Opengl finding direction vector
onur.tugcu@[EMAIL PROTECT  2008-08-25 12:24:55 
Re: Opengl finding direction vector
"jbwest" <jb  2008-08-25 18:29:22 
Re: Opengl finding direction vector
fungus <openglMYSOCKS@  2008-08-25 20:47:25 
Re: Opengl finding direction vector
mi76 <mi333@[EMAIL PRO  2008-08-26 16:35:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 4:28:55 CST 2008.