Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


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


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   -  Reputation:

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


Sponsor:



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.



PARTNERS