Valve releases open source Direct3D to OpenGL translator

Valve logoWith little fanfare, Valve has published the source to ToGL, a translation layer to support a subset of the Direct3D 9 API on OpenGL systems. ToGL is a component of the company's Source 3D engine. Valve has broken it out and slapped a permissive MIT license on it in the hope that it might be useful to other developers.

Valve first talked about ToGL last year. ToGL does not support the full Direct3D 9c API but rather an undefined "limited subset" that's presumably focused on the specific needs Source has. As well as translating the function calls from one API to the other, it can also support shader programs from Direct3D's HLSL bytecode to OpenGL's GLSL.

The project is not usable as-is. It doesn't even build, as it references files that Valve has not included. But nonetheless ToGL should serve as a basis for other developers wanting to migrate Direct3D engines to run on OpenGL.

Is this going to open the floodgates and bring a ton of Windows games to OS X, Linux, and, of course, Valve's Linux-based Steam OS?

Probably not.

Some developers say that supporting multiple platforms is not a huge overhead, in general, at least when projects are written to be cross-platform from the start.

Even for projects that weren't designed to be cross-platform, ToGL isn't the first Direct3D-on-OpenGL library out there. The WINE project, developed to enable Windows programs to run on Linux, includes a Direct3D-to-OpenGL translator that handles some proportion of Direct3D 8, 9, and 10.

This portion of WINE is available as a standalone set of libraries called WineD3D. WINE uses the Lesser GPL license, so it can be used even by proprietary software as long as the other license provisions are met. Some versions of the Parallels virtualization environment, for example, have used WineD3D to provide Direct3D support on OS X.

There are also libraries that go the other way. Google's ANGLE library provides OpenGL ES support on Direct3D 9 and Direct3D 11.

Source: Ars Technica

Tags: computer games, Valve, Valve

Add comment

Your name:
Sign in with:
Your comment:

Enter code:

E-mail (not required)
E-mail will not be disclosed to the third party

Last news

Galaxy Note10 really is built around a 6.7-inch display
You may still be able to download your content
Facebook, Messenger and Instagram are all going away
Minimize apps to a floating, always-on-top bubble
Japan Display has been providing LCDs for the iPhone XR, the only LCD model in Apple’s 2018 line-up
The 2001 operating system has reached its lowest share level
The entire TSMC 5nm design infrastructure is available now from TSMC
The smartphone uses a Snapdragon 660 processor running Android 9 Pie
The Samsung Galaxy A5 (2017) Review
The evolution of the successful smartphone, now with a waterproof body and USB Type-C
February 7, 2017 / 2
Samsung Galaxy TabPro S - a tablet with the Windows-keyboard
The first Windows-tablet with the 12-inch display Super AMOLED
June 7, 2016 /
Keyboards for iOS
Ten iOS keyboards review
July 18, 2015 /
Samsung E1200 Mobile Phone Review
A cheap phone with a good screen
March 8, 2015 / 4
Creative Sound Blaster Z sound card review
Good sound for those who are not satisfied with the onboard solution
September 25, 2014 / 2
Samsung Galaxy Gear: Smartwatch at High Price
The first smartwatch from Samsung - almost a smartphone with a small body
December 19, 2013 /

News Archive



Do you use microSD card with your phone?
or leave your own version in comments (15)