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: drawing a grid - lines or texture?

  1. #1
    Member Regular Contributor
    Join Date
    Nov 2000
    Location
    israel
    Posts
    332

    drawing a grid - lines or texture?

    on a geforce card, that i know cant draw lines as fast as polys, will it be faster to draw a big grid, using two big polygons, with a grid texture to the alpha channel, or is it take really lots of lines to make this method faster than just drawing lines?



    [This message has been edited by okapota (edited 03-15-2001).]
    -ofer-

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Aug 2000
    Location
    Portsmouth, Hampshire, England
    Posts
    1,063

    Re: drawing a grid - lines or texture?

    If the grid doesn't contain many lines, then both methods aren't going to take very long... although if it fills the entire screen, the poly method will burn more fill rate.

    or something.

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2000
    Location
    Austin, TX
    Posts
    14

    Re: drawing a grid - lines or texture?

    I'm drawing a grid using lines and it seems pretty quick unless you use tons of lines or line stipple. I use a couple of hundred lines and its doesn't hurt performance on a TNT. However, line stipple really slows it down. I don't know about line stipple on a geforce, though.

  4. #4
    Junior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    State College, PA
    Posts
    204

    Re: drawing a grid - lines or texture?

    I draw grids using approximately 5000 gridlines - The performance hit seems to be almost negligible, even in software mode.

    Chris

  5. #5
    Member Regular Contributor
    Join Date
    Oct 2000
    Location
    England
    Posts
    288

    Re: drawing a grid - lines or texture?

    I don't understand why these people have replied in this way....on a geforce, forget using lines. A big textured quad will be far faster than drawing it with lines - I know this for sure.
    --kieran

Posting Permissions

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