Hello people,
I´m developing an application in Win32 that have to use mm as the measurement unit, I checked about the GetMapMode/SetMapMode functions, but witch is the mode that I have to set, to have one logical unit equivalent to one milimiter ?
You can use the Windows functions to get the distance in mm between two pixels on the screen.
In OpenGL you can use gluUnproject to get the distance in your object model between two pixels.
With that you could calculate a factor for viewing.
Ok Kilam,
Now it is coming more clear, this is the way that I was thinking, you said :
You can use the Windows functions to get the distance in mm between two pixels on the screen.
In OpenGL you can use gluUnproject to get the distance in your object model between two pixels.
With that you could calculate a factor for viewing.
You can use the Windows functions to get the distance in mm between two pixels on the screen. => how to obtain the distance in mm between two pixels ?
Kilam Malik: Forget about it!
On my work we measure people eyes with help of an ordinary monitor and it takes very long time to set the monitor correctly and the power must be on about an hour before the measure starts because the viewing area is a bit smaller when the monitor is cold.
Ok Kilam,
I know that you already said that I have to set the mapping in mm, but how can I do this ?? Witch mode I have to set in the function SetMapMode ???