Results 1 to 2 of 2

Thread: Isometric Projection

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2009
    Posts
    6

    Isometric Projection

    Hi, i am "so beginner" in openGL. So sorry if two questions are so easy.

    I was told to draw curved line with 2D calculation and then transform it to 3d by rotating shape on x / y / z axis. And the picture should be viewed as isometric projection.

    I am not gonna ask for code help but if anyone could help with openGL basics question, i will be so happy.

    Question 1 :
    I started to read about openGL and i tried to figure how to do "isometric projection". As i read i could do it by using glOrtho
    and gluLookAt function. it's ok, but the book was also saying , "with using glOrtho you can draw only 2d", what i am trying
    to do need 3d so, i thought that i could not use glOrtho, so i decided , i need to use gluPerspective , but again this time, i could
    not find and document providing isometric projection with glPerspective, so i am very very very confused now.
    Can anyone explain which one i should use, to provide, isometric projection and how (glOrtho or glPerpective) ?

    Question 2 :
    For transforming 2 line curved line to 3d object, i though like this

    i will calculate vertexes for line (from math expression). then for each vertex i will rotate vertex by using glRotate and then i will have vertexes for,
    'x' degree from x/y/z axis. and so by connecting these vertexes, i will have solid 3d object. but then when i saw the rotation functions , i felt stucked

    The Problem : i need to =>
    this is coordinate x, y ,z , rotate these coordinates for x degree on x,y,z axis. so new i get x',y',z' , so now i can draw line x degrees rotated on any axis

    The thing we can do with openGL is
    Draw vertex
    glVertex*(x,y,z)
    Rotate Next coming Vertex
    glRotate*(30,1,0,0)
    Draw rotated vertex
    glVertex*(x,y,z)

    Now for summary:
    i am able to calculate coordinates for 2d (coordinated comes from math formula)
    i need to calculate these 2d coordinates' new rotated coordinates so as i will able to connect and draw quads them to form solid 3d object
    But there is not calculation method as far as i can see.

    What is the strategy in this position ?

    Thank you bearing with me, if you can answer one, or all of these questions , i will not be lost my sanity, so i will greatly appreciate your help

    Thank you

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Isometric Projection

    1) the book is misleading. glOrtho is a good way to do isometric projection. What book is that ?

    2) You need something to lathe ? Check this :
    http://www.opengl.org/discussion_boa...874&page=1

Similar Threads

  1. Isometric view
    By rogerdv in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-19-2003, 10:37 PM
  2. Math behind isometric views
    By Acid-Chris in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-23-2002, 07:56 AM
  3. Isometric with opengl
    By Acid-Chris in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-05-2002, 06:31 PM
  4. pseudo-isometric projection matrix
    By cix>foo in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 07-06-2000, 12:19 PM
  5. pseudo-isometric projection matrix
    By cix>foo in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 07-03-2000, 04:27 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