Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

kspansel

OpenGL OpenGL Camera Problem

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

I''m having a problem with my camera class. I can''t get anything on the screen. Here''s what I do: E = ( 0.0f, 10.0f, 10.0f ) // Eye L = ( 0.0f, 0.0f, -1.0f ) // Look U = ( 0.0f, 1.0f, 0.0f ) // Up gluLookAt( E.x, E.y, E.z, L.x, L.y, L.z, U.x, U.y, U.z ); I have also drawn a lare quad which should be in the view but I can''t see anything. Any help is greatly appreciated. Thanks. Kory

Share this post


Link to post
Share on other sites
Advertisement
we need more code. Is the quad behind the camera? Is the quad under the camera? Is your viewport set up correctly? Is the quad getting clipped by the near clip plane?

Share this post


Link to post
Share on other sites
I just created a 2000x2000 unit quad centered at (0,0,0) and having the plane y = 0. I''ve also tried various camera heights and nothing, so I don''t think the quad is getting clipped by the near plane. I can''t figure out why it doesn''t work.

Kory

Share this post


Link to post
Share on other sites
backface culling off?

also: lookat is a point in space, not a direction.. just in case the numbers mean what i think they do.

Share this post


Link to post
Share on other sites
turn on the glPerspective(...) mode on, and check your back face culling, if it''s on, if so check the order in wich you created the quad.

Share this post


Link to post
Share on other sites
[ ]Is your computer plugged in?
[ ]Is your computer turned on?
If your problem still persists, call 9-1-1. Operators are standing by.

Share this post


Link to post
Share on other sites
Post some minimal rendering code. Without that, we''re just guessing.

Also, when you said the plane is at zero - you can''t have the near plane at zero. Put it at 0.01 or something.

Share this post


Link to post
Share on other sites

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