- Home /
Orthographic camera distortion when zooming in
I'm getting weird distortion when the camera zooms way in on small UI elements.
.
Basically, I'm making a 2d solar system map. The map objects scale with the camera so they maintain a generally consistent size on screen. The user can zoom way in on the the objects to see small details, etc.
.
The problem is zooming in past a certain point will distort things (text & images stretching and warping) -- if the object's coordinates are far from the center (0,0) of the map. You can zoom in fully on anything within about 5000f of center without distortion, but beyond that distortion gets progressively worse. Using orthographic camera. Distortion begins near 0.001 camera size. Min zoom value is 0.0005. Objects are on a UI Canvas.
.
My guess is this might be a floating point accuracy problem? Anyone with insight on potential solutions or how to get to the bottom of the problem would be greatly appreciated. ,I'm getting weird distortion when the camera zooms way in on small UI elements.