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: wirecube

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2004
    Location
    Brasil
    Posts
    11

    wirecube

    How can I draw a wirecube without showing the lines not visible?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: wirecube

    Draw a solid cube with glPolygonMode set to GL_LINE. This will draw the edges if the primitives only, resulting in a wire cube. And since a cube is a convex object, you can enable backface culling to remove hidden lines.

Posting Permissions

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