coordinate problems

Started by xxdaggerxx, June 20, 2006, 10:04:55

Previous topic - Next topic

xxdaggerxx

Hi guys, got a problem with the coordinates in a game im wrokin on.

The 0,0 coordinate is at the bottom left. I found this out using the mouse getX(),getY() (i returned the values on every frame).

Anyway i positioned my image on 0,0 but instead of appearing at the bottom left it appears at the top left.

Any clue why this might happen?

Thx guys

oNyx

The mouse coord-system doesnt neccessarily need to be indentical with the opengl one.

Decide which one you would like to use eg top/left equals 0/0 and setup everything that way (setup ortho like that and calculate the mouse y value each time yourself).