Advertisement

very newbie question

Started by January 01, 2001 05:22 PM
7 comments, last by PTDC 23 years, 10 months ago
how do i aim the viewpoint at a point? Edited by - ptdc on January 1, 2001 6:36:47 PM Edited by - PTDC on January 1, 2001 6:44:31 PM
Thats a very open ended question, and I''m not able to give you a concrete answer. Perhaps if you let us know which API you are using (D3D or OpenGL), if any, then someone could be of more help.

-Mezz
Advertisement
OpenGl of course
"OpenGL of course"...I had no idea it was so obvious.
Why not? He''s posting in the Nehe forum
well seeing as this is a forum for a site mainly about opengl it is fairly obvious

Advertisement
Now if people are done being sarcastic???

Id say look into gluLootAt it might do what you need.

l8r,
Rob
http://tannara.2y.net/
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
There are several ways, but the easiest is probably gluLookAt(...). I don''t really use it, but I think it''s usage is:
  gluLookAt(cameraX, cameraY, cameraZ, pointX, pointY, pointZ, 0.0f, 1.0f, 0.0f);  


Hope it works,

Nyko
thanks

This topic is closed to new replies.

Advertisement