OpenGL - Texture or no texture?

This is a discussion on OpenGL - Texture or no texture? within the Game Programming forums, part of the General Programming Boards category; Hi! I need a new project to spend my spare time on, and this time I thought that I may ...

  1. #1
    Registered User MathFan's Avatar
    Join Date
    Apr 2002
    Posts
    190

    OpenGL - Texture or no texture?

    Hi!

    I need a new project to spend my spare time on, and this time I thought that I may program a 2d platformer.

    I have traditionally always used textured quads for such games, but this time around I was wondering whether I might try sticking to untextured geometry (a la vector graphics).

    What I was wondering about is the following: Resource-wise, will it be faster or slower to draw more untextured vertices (predominantly using glList) than less but textured geometry?

    Thanks
    The OS requirements were Windows Vista Ultimate or better, so we used Linux.

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Vector graphics will be fast if you only draw what you need. If you are only drawing in wireframe then you will have a huge slowdown.

    In 3D wireframe is slow b/c the z buffer is sparsely populated whereas if everything is textured the z buffer performs quite well.

    So whether you are drawing only what you need via the z buffer (as in 3D) or in 2D (vector graphics) you are still culling out the unecessary vertices so the end result is the same.

    Some naive people have attempted vector graphics by setting the mode to wireframe but this does not work well with modern hardware.
    My terrain app runs at almost 20 FPS in wireframe and 100 FPS (at 100hz) in solid fill mode.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Texture Binding with OpenGL
    By scwizzo in forum Game Programming
    Replies: 5
    Last Post: 07-01-2008, 11:02 AM
  2. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  3. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 10:50 AM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  5. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21