Kevin Kronmiller (kkronmil++at++metricsys.com)
Fri, 18 Jun 1999 08:51:29 -0500
I have a 4 degree by 4 degree terrain database built with a Flat Earth mapping projection in MultiGen. The resulting database is a rectangle significantly larger North to south than East to West. It seems that I should be able to maintain the proper aspect ratio in my channel by insuring that the left, right and top, bottom parameters to chan->makeOrtho(left, right, bottom, top) maintain the same ratio as the actual terrain database.
For example:
(right - left) / (top - bottom) = (Bbox.max[0] - Bbox.min[0]) / (Bbox.max[1] - Bbox.min[1])
I have implemented this concept in my code and the visual aspect ratio is not as it should be. Objects that should be square are stretched along the X-axis.
Am I missing something obvious?
Thanks for your time.
Kevin Kronmiller
This archive was generated by hypermail 2.0b2 on Fri Jun 18 1999 - 06:52:49 PDT