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

Thread: Thin and long objects

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2004
    Posts
    1

    Thin and long objects

    Hi,

    scene rendered by my application contains some thin and long cylinders (radius=3 units, length=3000 units). When I try to render this scene in a 300x300 window these cylinders not always rendered by OpenGL and sometimes they are rendered only partially. I understand that being scaled into 300x300 window these cylinders have diameter only about 0.5 pixel but I'd like to see them rendered always at least as 1 pixel line. Is it possible with OpenGL?

    Thanks

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: Thin and long objects

    perhaps with each cylinder also draw a line ( GL_LINE ) inside from the top to bottom, the lines will retain the same screen width no matter how far from the camera they are

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Melbourne,Victoria,Australia
    Posts
    767

    Re: Thin and long objects

    Multisample might help (Don't know for sure though).

Posting Permissions

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