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: Store shader output (color) on vertex structures

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2008
    Posts
    16

    Store shader output (color) on vertex structures

    Does anyone know how to store color in some kind of vertex data structure maybe through the use of VBO's or something.

    The thing is that I need to render a scene using a Cg shader and I need to store the color's of that scene at each vertex, so I can render the same vertices with the new colors.

    Thanks a lot.

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2008
    Posts
    16

    Re: Store shader output (color) on vertex structures

    I just need to store rendered results in a buffer of vertex data

  3. #3
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,261

    Re: Store shader output (color) on vertex structures

    Get nVidia SDK9 , search for files and classes named RenderVertexArray. Uses PBOs and VBOs, works like a charm on SM3 cards, by copying/streaming data (driver-dependent). On SM4 cards, it maybe doesn't copy data, but there you also have other options: transform feedback, and using buffers for anything. I haven't researched on the SM4 ways yet.

Posting Permissions

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