Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39

Thread: future of shaders

  1. #1
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    future of shaders

    I would simply like to know if some of you expect the future of shaders to become more or less like renderman's shaders.

    Currently we have:

    . vertex shader
    . fragment shader
    (. geometry shader)

    Can we expect them to be more like that:

    . light source shaders
    . surface shaders
    . displacement shaders
    . volume shaders
    . transformation shaders
    . imager shaders

    If I remember well, some people here (years ago) thought vertex and fragment shaders will be enough to make this world turns round. But with geometry shaders, vendors now allow us to add a new degree of granularity. So maybe, next shaders will cut vertex and fragment shaders into several parts in order to look more like Renderman's ones ?

    What do you think of this ?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    748

    Re: future of shaders

    i think the only new shader in the pipeline is the blend shader (that takes over the functionality of glBlendFunc), other than that i can only see perhaps an object shader and maybe other extra stuff like ray testing.
    But that's about it, it's hard to add more stuff without changing the rendering method from rasterising to something else.

    About rendermans shaders, no won't happen, it works for renderman but perhaps not that well for a GPU.
    Though you could possibly simulate it by merging code at compile time, but i wouldn't recommend doing it to much.
    The reason gpu's went that way is because it's more flexible and can be optimized a lot more then rendermans shaders.

  3. #3
    Member Regular Contributor
    Join Date
    Aug 2003
    Posts
    264

    Re: future of shaders

    I'd love to see something like a pre-vertex shader where you can have access to the index value for a vertice that is about to be sent to the graphics card. There you could decide not to send it, index into the vertex buffer and send a different one or actually modify the values in the vertex buffer. That would be awesome!

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    May 2005
    Location
    Prague, Czech Republic
    Posts
    924

    Re: future of shaders

    Originally posted by soconne:
    I'd love to see something like a pre-vertex shader where you can have access to the index value for a vertice that is about to be sent to the graphics card. There you could decide not to send it, index into the vertex buffer and send a different one or actually modify the values in the vertex buffer.
    New GL_EXT_gpu_shader4 and related extensions give the vertex shader ability to determine index of current vertex within the vertex array and also ability to sample from various buffers so it might be possible to do what you need.

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,768

    Re: future of shaders

    What do you think of this ?
    I think it has nothing to do with the hardware.

    You can build a shading system as a layer on top of GL that allows you to talk about semantic shaders of the nature you describe. So OpenGL doesn't really need to implement them; better to have the IHVs implementing an appropriate hardware abstraction than spending time doing your work for you.

    And personally, I don't like this particular breakdown of shader functionality.

  6. #6
    Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Inside an xbox
    Posts
    290

    Re: future of shaders

    I could use some antialiasing and blend shader too!

  7. #7
    Member Regular Contributor
    Join Date
    Apr 2004
    Location
    UK
    Posts
    423

    Re: future of shaders

    programable blending and AA modes would be nice (doesn't programable AA exist anyways?)

    Besides that I'm with Korval, I'm not liking the break down either

  8. #8
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    Re: future of shaders

    So I could freely say that current shaders (VS,FS,GS) will remain, at least for a certain amount of time. And we could expect other shaders: blending (currently quite available) and AA.

    I'm neither for any breaks in shaders. But as you all know, things can evoluate quiete quickly and can even change abruptly (cf new releases of GL). So, I was wanted to ensure a bit about that point.

    Thanks.

  9. #9
    Advanced Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    748

    Re: future of shaders

    I don't think there will ever be a separate AA shader, some AA stuff will make it into the fragment shader and possibly into the blend shader, but not as a stand alone shader.

  10. #10
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,979

    Re: future of shaders

    I guess we can expect shaders in every part of the pipeline where data somehow changes in apperiance. Vertex, fragment and geometry shaders represent most "important" parts of the pipeline: vertex processing, primitive assembly and fragment processing. I would therefore also expect something like texture filter shaders (most likely implemented through fragment shaders), that was 3dlabs proposed to be image format shaders (image read/write), blend stage shaders... What do we have left in the pipeline?

Posting Permissions

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