Results 1 to 5 of 5

Thread: Need advice with terrains

  1. #1
    Member Newbie
    Join Date
    Aug 2003

    Need advice with terrains

    I need an advice to create some realistic terrains from data files with x,y and height
    in world coordinates.I'm working with Open Gl version 1.1.Should I do it with GL_TRIANGLE_STRIP or GL_QUAD_STRIP?
    Is there any difference between them(excepting that quad strip will be twice faster)?

  2. #2

    Re: Need advice with terrains

    It is suggested that you use triangles when rendering terrain. If you use quads, then you lose a degree of realism in the rendered terrain. When it comes to speed, it depends on how you have everything set up.

  3. #3

    Re: Need advice with terrains

    Also, if you plan on using collision detection and response with the terrain, then use triangles (trust me, you'll agree).

  4. #4
    Member Newbie
    Join Date
    Aug 2003

    Re: Need advice with terrains

    Thank you a lot about tutorials!!!!
    I found the answers!

  5. #5
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Arlon, Belgium

    Re: Need advice with terrains

    Just for your information :

    I. Geometry
    1. What are the fastest transfer mechanisms for geometry?

    DrawElements/DrawArrays Using wglAllocateMemoryNV(size,0,0,1)
    Saves data in video memory, eliminating any bus bottleneck. Very poor read/write access.

    DrawElements/DrawArrays Using wglAllocateMemoryNV(size,0,0,.5)
    Saves data in AGP (uncached) memory, and allows hardware to pull it directly. Very poor read access, must write sequentially (see below)

    Display Lists
    Can encapsulate data in the most efficient manner for hardware, though they are immutable (i.e. once created, you canít alter them in any way).

    DrawElements using

    Compiled Vertex Arrays (glLockArraysEXT)
    Copies locked vertices to AGP memory, so that the hardware can then pull it directly. Only one mode is supported (see q, 7 below).

    DrawElements and DrawArrays using Vertex Arrays with Common Data Formats
    Optimized to assemble primitives as efficiently as possible, and minimizes function call overhead. 13 formats supported (see q. 6).

    Immediate Mode
    Multiple function calls required per primitive results in relatively poor performance compared to other options above.

    All Other Vertex Arrays
    Must be copied from application memory to AGP memory before the hardware can pull it. Since data can change between calls, data must be copied every time, which is expensive.

    2. What are the fastest primitives to use?



    These maximize reuse of the vertices shared within a given graphics primitive, and are all similarly fast.


    These aggregate (potentially multiple) disjoint triangles and quads, and amortize function overhead over multiple primitives.

    A bit slower than the independent triangles and quads.

    The GeForce2 GTS is able to setup primitives much faster than GeForce 256 or Quadro, so that all primitives are equally fast when accessing vertices in the vertex cache (see vertex cache question below for other details).

    3. Which vertex array calls should I use?

    Can take advantage of shared vertices and conserve front-side bus bandwidth by merely sending indices to the data.

    The most efficient way to send vertices that are not shared, though much slower than glDrawElements in the common case of shared vertices.

    Call overhead per vertex severely impacts performance. Avoid if at all possible.

Similar Threads

  1. Shadowmapping Large Terrains
    By Mars_999 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-12-2006, 09:17 PM
  2. Need advice with terrains
    By Javac in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 10-08-2003, 08:08 AM
  3. Terrains :)
    By Miguel_dup1 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-16-2002, 04:37 PM
  4. large terrains
    By svc2211 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-24-2002, 11:27 PM
  5. Why terrains?
    By Mike The Spike in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 02-16-2000, 03:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean