-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The coordinate of click is not correctly returned #18
Comments
The trace code is meant to be run on the lab. I assume your mac might have a retina screen? I think I had this fixed it for the generic trackball window, see this code: |
I see that.. what a headache On Sat, Nov 12, 2016 at 10:01 PM, Andrea notifications@github.com wrote:
|
Unfortunately there is no way for the TA to help you, as he doesn't have a Mac+Retina computer available for testing :\ |
I might be able to re-scale it when dealing with the 2D grid, but the 3D grid should be difficult for me (how to get the z coordinate value?) Anyway I cannot spend too much time on this. If the code works on the computers in the lab, I may have to spend most of my time in the lab. |
The pos returned from function "unproject_mouse" is not consistent with the mesh coordinate.
I tried printing
xPos, yPos, _width, _height
after I clicked the right bottom corner, and I got:xPos: 326.086, yPos: 325.675, width: 800, height: 800
I am using Mac. Anybody has an idea why this happens?
The text was updated successfully, but these errors were encountered: