PDA

View Full Version : where is the camera placed by default in a GLAnim Canvas of GL4java??



vamsee kanth
12-14-2004, 10:07 PM
iam using GL4java and java for a visualisation tool. now i need to use gluLookAt() to zoom in and zoom out the diagram..

but for this i need to know the camera position default...

iam using GLAnimCanvas..

when i draw a line with z-axis at -1.0 i see the line and up till +1.0 i see it and for any other points i.e. -2 or at least -1.1 and +1.1 it is invisible.

plz help !!!

thankx in advance...

vamsee

mikael_aronsson
12-15-2004, 12:13 AM
Hi !

If no one has changed it the "camera" is located at 0,0,0 from the start, but you should check your clipping planes so that you are not clipping your lines.

And if you want to zoom I would suggest you keep the camera where it is and change the field of view instead, this is the "correct" way to zoom.

Mikael