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 2 12 LastLast
Results 1 to 10 of 11

Thread: opengl fragment shaders...

  1. #1
    Intern Contributor
    Join Date
    Apr 2003
    Location
    Turin, Italy
    Posts
    95

    opengl fragment shaders...

    hi everybody,
    i am just seeking a little hint.
    I have been studing the per vertex and per fragment programs for a month now, and i think i am beginning to understand the whole thing a little more now.
    Now that i have a little understanding on the argument i would like to know what kind of shader language should be the most useful to learn.
    For what i can see i have 2 choices (and half).
    Should I learn assembly like programs used with GL_*_PROGRAM_ARB, or the c like OGSL shaders? The half choice should ne NVidia's CG, but as for now i'd prefer a cross platform language, so i won't consider studing a card specific shading method.

    Does someone knows what shading language will use OpenGL 2? It would be nice to study something that WON'T get obsolete in the next few months...
    thanks for the help,
    the Gunslinger...

  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,946

    Re: opengl fragment shaders...

    Moving to shading language forum.

  3. #3
    Member Regular Contributor
    Join Date
    Mar 2003
    Location
    Spain
    Posts
    273

    Re: opengl fragment shaders...

    Opengl Shading Language are the only shader language that will be standard in Opengl, but for now, isn't supported in his totallity by any 3D Card. Only 3DLabs and ATI cards supports GLSLang but i hope that NVidia will do it too.
    "!I don't know... fly casual"

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

    Re: opengl fragment shaders...

    As you learn one shading lanuage you learn them all... It took me about 3 minutes to write my first Cg shader... and it was a rather complex one. The compiler compiled it wrong thought. Cg has so much bugs!

  5. #5
    Intern Contributor
    Join Date
    Apr 2003
    Location
    Turin, Italy
    Posts
    95

    Re: opengl fragment shaders...

    -->> just a no use info <<--
    after a morning of work,
    my first shader started to work
    *grin*

  6. #6
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    Australia
    Posts
    1

    Re: opengl fragment shaders...

    anyone here, have the know-how to make a glide to opengl wrapper, like Opengl is based off Glide anyway

  7. #7
    Member Regular Contributor
    Join Date
    Jan 2003
    Location
    Edmonton, Alberta, Canada
    Posts
    320

    Re: opengl fragment shaders...

    Opengl is based off Glide anyway[/B]
    Eh?

  8. #8
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,345

    Re: opengl fragment shaders...

    Lol

  9. #9

    Re: opengl fragment shaders...

    It's true. When SGI invented OpenGL back in '91, they actually time travelled into the future and copied 3DFX's proprietary graphics library, rather than just basing it of IrixGL like you might expect.

  10. #10
    Super Moderator OpenGL Guru
    Join Date
    Feb 2000
    Location
    Montreal, Canada
    Posts
    4,264

    Re: opengl fragment shaders...

    lol!
    I guess it's the "GL"ide that fools people.

    But the APIs are totally different.
    ------------------------------
    Sig: http://glhlib.sourceforge.net
    an open source GLU replacement library. Much more modern than GLU.
    float matrix[16], inverse_matrix[16];
    glhLoadIdentityf2(matrix);
    glhTranslatef2(matrix, 0.0, 0.0, 5.0);
    glhRotateAboutXf2(matrix, angleInRadians);
    glhScalef2(matrix, 1.0, 1.0, -1.0);
    glhQuickInvertMatrixf2(matrix, inverse_matrix);
    glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
    glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

Posting Permissions

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