Results 1 to 2 of 2

Thread: are vertex arrays non-destructive?

  1. #1
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    milano, italy
    Posts
    282

    are vertex arrays non-destructive?

    i'm developing a realtime landscape renderer wich takes elevation data from a fractal, and since the fractal is quite complex (multifractal perlin noise) and it takes some time to sample, i've found a way to reduce sampling down to a minimum, by sampling only when is really needed.

    the method i've implemented relys on a 2-dimensional wrappable buffer, and the data into the buffer MUST remain coherent all the time: my code stores values correctly, but sometime the polygons appear not as i expect.

    since there are many shared vertex, every with position, color, normal, texture and fog coordinates, i use vertex arrays to let opengl do the calculation once.

    to specify vertex arrays data i use gl___Pointer() family functions, and i dereference the arrays with glArrayElement().

    now, does opengl leave unchanged the data into my arrays, after i have dereferenced?

    i hope the answer will be yes...
    ...and i hope i was clear enough.

    Dolo/\/\ightY

    PS: just a note about how clever design can do for applications : before the renderer was running @25 fps, now it runs @130 !!
    Dolo/\/\ightY

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    milano, italy
    Posts
    282

    Re: are vertex arrays non-destructive?

    ok. i've fixed the bug, and as usual it was mine... but answer the same !

    Dolo/\/\ightY
    Dolo/\/\ightY

Similar Threads

  1. arrays of arrays as vertex output/fragment input
    By tsojtsoj in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-17-2018, 08:02 PM
  2. Vertex Arrays, interleaved arrays, mouseMove func
    By Nibirue in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-13-2012, 11:17 AM
  3. Big problem show arrays with vertex arrays
    By Rondey in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 03-15-2009, 10:09 AM
  4. Vertex Arrays: Interleaved or seperated arrays?
    By Jan in forum OpenGL: Advanced Coding
    Replies: 16
    Last Post: 06-21-2005, 05:25 AM
  5. can I do a non-destructive cursor with RGB?
    By pmaynard in forum OpenGL: Windows
    Replies: 1
    Last Post: 02-13-2004, 11:00 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