@bjdawes wrote:
I've almost got this working but having problems mapping the z of the camera.
I have a thing made up of nodes spinning a 3D space, using oFEasyCam to control the world. I'm trying to map cross hairs over the top to track for example one of the nodes. I'm using worldToScreen to map the nodes xyz to the screen, but it doesn't seem to take into account the zoom level of the camera. The cross hairs move correctly but the mapping is off. Is this something to do with projection Matrix or something? I tried getting the camera's z position then offsetting the vector before applying worldToScreen. So close to getting this working so if anyone can point me in the correct direction that would be great.
Posts: 3
Participants: 2