Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

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

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 Anonymous Poster_Anonymous Poster_*   Guests   

Likes

Posted 24 December 1999 - 09:26 AM

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





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.