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

Comments
Add comment

Your name:
Sign in with:
or
Your comment:


Enter code:

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


Last news

 
You can use a security key instead of having a code sent to your phone
 
Adobe says that the AI can now achieve the intended result in seconds
 
A new security protocol replacing the aging WPA2
 
Download and install at your own risk, of course
 
More iPhone parts likely to be produced by Samsung
 
Starting on Friday, video views on YouTube will start to be counted by the Official Charts Company
 
LG has already announced two new V-series members in 2018
 
The method is blocked and the hack doesn’t work, it adds
The Samsung Galaxy A5 (2017) Review
The evolution of the successful smartphone, now with a waterproof body and USB Type-C
February 7, 2017 /
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

 
 
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031    




Poll

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