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 2 of 2

Thread: X and Y axis

  1. #1
    Junior Member Newbie
    Join Date
    May 2012
    Posts
    6

    X and Y axis

    Hello, I want to make a 2d graph with the X and Y axis lines but make the lines into 3d long rectangular tubes, What would I need to do to be able to create this and how would I be able to place a model at the origin of it?

  2. #2
    Senior Member OpenGL Pro BionicBytes's Avatar
    Join Date
    Mar 2009
    Location
    UK, London
    Posts
    1,165
    Set up a perspective projection (gluPerspective) and draw axis-aligned bounding boxes as your 'lines'. Each corner of the AAbox is a vertex (x,y,z), so you need 8 verticies to plot each AAbox.

Posting Permissions

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