View Full Version : 3-D Viewing

06-21-2007, 11:32 AM
It has been a long time since I have done 3-D rendering as most of my work lately has been with 2D models. Now that I am not using -1.0, 1.0 values for my ZMin and ZMax values I am having problems viewing my object. I calculate what my min and max Z values are like I do for my Y and X values and set my ortho to (minx, maxx, miny, maxy, minz, maxz). But I am not able to see everything. Initially, I want my view to be like I am directly above my image and can see everything so that my 3D image appears 2D. Once I rotate then I want to see the 3D image. Do I need to do anything else besides setting my Viewport, Scissor, and Ortho? Thanks for your help in refreshing me in what I need to do.

06-22-2007, 08:01 AM
Nevermind. I was loading my Z data into my Y-data components and now that I load the data correctly, my Ortho is working fine. Thanks for your help anyways.

06-26-2007, 01:34 AM
You can also use a simple rotation about the X axis to convert to Z = up in OpenGL....