Orthographic Projection and Aspect Ratio

New Message Reply Date view Thread view Subject view Author view

Kevin Kronmiller (kkronmil++at++metricsys.com)
Fri, 18 Jun 1999 08:51:29 -0500


Hi,

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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Jun 18 1999 - 06:52:49 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.