Zooming affects mouse picking - OpenGL & GLFW (WHY???)

preview_player
Показать описание
I have been debugging this problem for more than a week. Still I don't know what is the problem.
If you know please let me know why zooming affects the ray-casting.
You can look at the code at the devbranch.
Рекомендации по теме
Комментарии
Автор

Check you"re mouse mouse cursor coordinate system and how you get it (callback, direct computation, polling). Check also if some kind of cast could round the coordinates.... good luck...the problem is obviouly not related to OpenGL which is only a graphic specification and has nothing to do with window positioning and related events and I/O.

I don't use GLFW but my own windowing lib, but from your frame rate, it seems that your update loop is event driven (waitevent) ? If the mousedata is polled this could be part of the problem.

Also If you use Dear ImGui docking branch, I guess all the positions are based on the Monitors which could be challenging for a custom multimonitor implementation.

IntheFishtank
visit shbcf.ru