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 2 of 2

Thread: HLSL -> GLSLang guide?

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2004
    Location
    Seattle, WA
    Posts
    10

    HLSL -> GLSLang guide?

    I've not come across anything out on the general 'net about converting between the two shader languages. Considering that a good chunk of the demos and books currently use either Cg or HLSL, most of my current work involves porting those demoes across to GLSLang.

    I'm particularly interested in the "gotcha's" side of things. That is, I can handle coordinate system conversions and the like simply, but stuff like assumed state coming into the shader or between VP and FP sections etc would be particularly handy to me. I'm not exactly proficient in HLSL (or D3D for that matter), so I'm mostly working with a Monkey See, Monkey Do type of conversion process right now.

    TIA

  2. #2
    Intern Contributor
    Join Date
    Sep 2001
    Location
    Marlboro MA
    Posts
    96

    Re: HLSL -> GLSLang guide?

    Originally posted by Justin Couch:
    I've not come across anything out on the general 'net about converting between the two shader languages. Considering that a good chunk of the demos and books currently use either Cg or HLSL, most of my current work involves porting those demoes across to GLSLang.

    I'm particularly interested in the "gotcha's" side of things.
    Shameless plug.

    My GDC2004 presentation had some "gotcha's" of porting from RenderMan, HLSL, ARB_vertex_program and ARB_fragment_program. Not as extensive as I would have liked. Slides 85-100 or so, or about an hour in. Both a PDF and video are available on the ATI developer website.

    -mr. bill

Posting Permissions

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