PDA

View Full Version : How do I make my pivitol point at the center of the screen? I tried using



Andrewinator
11-22-2003, 11:54 AM
...glTranslate on the x & y axis (z is height, not depth) for but they didn't seem to do anything. I think this is because they only change my position. Please help me! also, does anyone know how wide and high the screen is (in the program)?

nexusone
11-22-2003, 11:59 AM
You have to set your view, depending on your point of view z may look like hight, but it is not in openGL.

X is right to left
Y is up and down
Z is depth

The hight and width of your view depends on how you have setup the projection matrix. and the hight and width in pixels is set with the view port settings.

Maybe post your code so that we can see how you have setup your scene.