PDA

View Full Version : View point coord



Lanstorp
08-08-2002, 10:49 AM
If my point was like (2,2,2) I can see it on my screen. But how do I get to see the point with coordinates (x,y,z) = (532275,6178625, 90.88) ? Thanks Jakob

nexusone
08-08-2002, 11:12 AM
You change the size of you view port...
But not sure you could make it that large.
And if you could I don't think you could see a point that is a 1000 miles away anyways.

The other way would be to move your camara, to that point in your world.


Originally posted by Lanstorp:
If my point was like (2,2,2) I can see it on my screen. But how do I get to see the point with coordinates (x,y,z) = (532275,6178625, 90.88) ? Thanks Jakob

[This message has been edited by nexusone (edited 08-08-2002).]

[This message has been edited by nexusone (edited 08-08-2002).]

Lanstorp
08-08-2002, 11:18 AM
view port, - can you name the opengl commands to use for bringing me to the coordinates.
I might have to calculate a Minimum Bounding Rectangle for my points. And then move my scene to this MBR.

[This message has been edited by Lanstorp (edited 08-08-2002).]

nexusone
08-08-2002, 11:22 AM
Two way's I can think of off the bat.

gluLookat
or
glTranslate to move your camara to that point.


Originally posted by Lanstorp:
view port, - can you name the opengl commands to use for bringing me to the coordinates