I am currently developing in OpenGL and use the meter as my own unit, i.e. 0.2 for a 20 cm wide triangle.
However OpenGL seems to round these figures, which ends in shapes not exactly following my wishes.
Is this normal in OpenGL, and should I use centimeters as the unit instead?
I am currently developing in OpenGL and use the meter as my own unit,
Share
You seem to use 1m for 1 unit in GL space, the shape distortion might be caused the incorrect perspective, either too much twisted or flattened, or higher than usual. This is because of incorrect viewport ratio, etc.
OpenGL never rounds up anything, only the precision limit of float or double types.
If you are using OpenGL for architecture, I suggest considering 1 GL unit as 1mm.