Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: coordinates

  1. #1
    Intern Contributor
    Join Date
    May 2008
    Posts
    77

    coordinates

    Hi
    I draw in 2D with glpoints x, z. Now how to rotate that view to get a 70' side view?
    pitch
    So I do as above pitch rotation but which points do I draw in 2D? Confused...
    Thanks

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    943

    Re: coordinates

    What's a 70° side view? Could you please state what you're trying to do?

  3. #3
    Intern Contributor
    Join Date
    May 2008
    Posts
    77

    Re: coordinates

    I'm drawing with glvertex2f glpoints in 2D(looking from above). I've x,y,z points and want to look from the side and not from above. (like flying into a valley seeing mountains on the side)
    What/how exactly would glvertex2f look for that?
    Many thanks


  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    943

    Re: coordinates

    So if I get you right, you basically want something like a hallway? The choice of glVertex2f and the desire to obviously create an illusion of a 3D world perplex me.

  5. #5
    Intern Contributor
    Join Date
    May 2008
    Posts
    77

    Re: coordinates

    It's a moving map in 2D for an airplane and i get x,y,z from a terrain probe. So my problem is only to move from x,y topview to a side view somehow. I've previously tried glrotate for heading but got some black/background glpoints. Maybe I simply need to know what/which and how to display x and or y and or z axes.
    for topview I only do
    for x < mapsize
    for y
    glvertex2f(x,z)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •