Converting between screen coordinates and pixels

I stated that they depend on the aspect ratio, not the actual size.

The quantity how much of my screen is a ratio, and since it’s a proportion of your window size you can use window coordinates.

All of this is however mute, the question you’ve asked is if you need to transform mouse coordinates to pixels before translating to world coordinates, and the answer is you do not - the code from my first reply is what you need for all cases.

1 Like