Jump to content
  • Advertisement

Archived

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

Guest Anonymous Poster

Problems with a Walk-Through. HELP NEEDED !!!

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

Guest Anonymous Poster
I want to realize a Walk-Through in my 3D
scene and so I tried out the following thing:

void RenderLoop(void)
{
glLoadIdentity();

//... do some stuff

glTranslatef(1.0f,0.0f,depth);
glRotatef(left_angle,0.0f,1.0f,0.0f);
glRotatef(right_angle,0.0f,1.0f,0.0f);

//... render scene
//...update depth, left_angle, right_angle
}

But I can not walk to the left or right when
I look in these directions...It seems that I
can only rotate around one point in the scene
intstead of changing the viewing-point
continuously...
Maybe I have to change the glTranslate
parameters each render cycle?...
I don't want to work with glLookAt(...)
or gluPerspective(...) or so because there
has to be another solution...
Do I need a kind of buffer in which I save
the current viewing point? Plese help me !!!
I'm working on a so hopeful application...
It would be bad if I gave up now...

P.S. Sorry about that (bad) English.
My mother-language is german.

Thanks in advance !!!!!!!!!!!!!!!!!!!!!!!!!

Share this post


Link to post
Share on other sites
Advertisement

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