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

 
Consumer group recommends iPhone 8 over anniversary model
 
LTE connections wherever you go and instant waking should come to regular PCs, too
 
That fiction is slowly becoming a reality
 
The Snapdragon 845 octa-core SoC includes the Snapdragon X20 LTE modem
 
Human moderators can help make YouTube a safer place for everyone
 
Google says Progressive Web Apps are the future of app-like webpages
 
All 2018 models to sport the 'notch'
 
The biggest exchange in South Korea, where the BTC/KRW pair is at $14,700 now
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
     12
3456789
10111213141516
17181920212223
24252627282930
31      




Poll

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