where is the dafault camera position in AnimCanvas

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

The camera position is (0, 0, 0) by default, but gluLookAt() changes the camera position to the first three parameters of its call.

If your scene is clipped at -1, +1 or similar this is probably due to the far and near clipping plane. The clipping planes can be changed most easily with gluPerspective().

ps:
If you have a “diagram” that hints to a 2D application. If this is the case you should not use gluLookAt() and gluPerspective() but gluOrtho2D().