Closed xuzheng0927 closed 7 years ago
The trace code is meant to be run on the lab. I assume your mac might have a retina screen? If you want to use your laptop, you'll have to apply a correction to re-scale it properly.
I think I had this fixed it for the generic trackball window, see this code: OpenGP::TrackballWindow::mouse_move_callback(double x_window, double y_window)
I see that.. what a headache
On Sat, Nov 12, 2016 at 10:01 PM, Andrea notifications@github.com wrote:
The trace code is meant to be run on the lab. I assume your mac might have a retina screen? If you want to use your laptop, you'll have to apply a correction to re-scale it properly.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ataiya/dgp/issues/18#issuecomment-260168789, or mute the thread https://github.com/notifications/unsubscribe-auth/AI3gFH50wkCO-6QEIdRLwrno3Fzcvh8Fks5q9qfDgaJpZM4Kwm3x .
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?