- Sort Posts
- 4 replies
- Last post
Re: how to obtain the location of the viewpoint.
April 8, 2012 - 6:34pm #3
Thank you very much, this is what I want.
This Demo of the IPhone on a normal run, but in the IPad, the four coordinates can not be perfect tracking.
When I move the camera, the distance of four View(s0 ~ s3) traveled is always larger than the actual moving distance of the camera.
I am looking for a long time, but did not find out where the problem,Can you help me find it?
Got it - I forgot to scale between camera pixel coordinates and screen pixel coordinates (on iPhone the scale is 1), so the two helper functions should be:
I'll update the examples. Thanks for raising this. :-)