Results 1 to 3 of 3

Thread: 3-D Viewing

  1. #1
    Senior Member Regular Contributor
    Join Date
    Sep 2005
    Location
    Dayton
    Posts
    148

    3-D Viewing

    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.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Sep 2005
    Location
    Dayton
    Posts
    148

    Re: 3-D Viewing

    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.

  3. #3
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: 3-D Viewing

    You can also use a simple rotation about the X axis to convert to Z = up in OpenGL....

Similar Threads

  1. Viewing
    By Mukund in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-11-2010, 10:02 PM
  2. Viewing volume
    By Mukund in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 04-18-2010, 09:57 AM
  3. 3D viewing
    By mochi in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 08-22-2001, 06:58 AM
  4. viewing perspective
    By fox in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-08-2000, 05:32 AM
  5. Viewing transformations in 3D
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-26-2000, 09:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean