LINUXGAMES

DirectX 9 HLSL to OpenGL Shading Language Translator

November 13th, 2006 by Crusader

ATI has released HLSL2GLSL, an open source library that converts DirectX 9 HLSL shaders to the OpenGL Shading Language. The download comes with documentation and a library file (which works with input HLSL shaders up to Shader Model 3.0), as well as a standalone command line application that converts bits of HLSL code into GLSL instead. HLSL2GLSL generates either GLSL v1.10.59 desktop OpenGL shaders or shaders that are usable with the OpenGL ES Shading Language 1.00.

Download Source: [ sourceforge.net ]

8 Responses to “DirectX 9 HLSL to OpenGL Shading Language Translator”

  1. Anonymous Says:

    So can someone that know what he is talking about make a comment about this. How well does it work? performance? etc.

  2. Anonymous Says:

    Its a converter of the SOURCE Code. Not an emulator!
    So it is not so important because we do not get any newer win game’s source …

  3. barrett9h Says:

    Not important for you, game player.
    But it can be important for developers of Windows games to port it to other platforms.
    Stop being so selfish.

  4. Anonymous Says:

    If ati can’t deliver an opengl driver on windos3 let alone L1nux – what could you expect from drunk coders – aye?

  5. Anonymous Says:

    …depending on your viewpoint.

    Makes it EASIER to port Direct 3D code to OpenGL. I dont know if it is vendor agnostic until I fiddle with it… BUT, this reduces one of the “speedbumps” to creating a linux (or macos or opengl) release of a graphics library; the conversion from Direct X shader code to open GL shader code.

    This does not solve the whole problem, its not just the shaders that need porting to OpenGL, but it is a bloody unpleasant task made (possibly) easier.

    In commercial terms, does it make a change to linux gaming; maybe not… but it may mean that its cost effective now if only 5000 units are sold rather than 30,000 (arbitrary numbers plucked from nether regions for illistration).

    So, in summary, great for coders who need to do this; especially if it is hardware agnostic; not so much interesting for gamers beyond marginally lowering the cost return bar for an openGL port.

  6. Svartalf_ Says:

    Saves the bulk of a major step- converting the shader software over from HLSL to GLSL; it’s one less reason to not work on a game for Linux. No, it doesn’t help a poor end-user, but it helps people like Ryan and myself do the work a lot quicker- IF it works. I suspect it does and does well…

  7. Anonymous Says:

    Will only ATI users benefit of this code?

  8. Anonymous Says:

    seeing these nice bits come out of ATI after the AMD_inhalation, makes one wonder if it’s just dirty closet cleaning or actually something else ;b

Leave a Reply

You must be logged in to post a comment.