Doom3 (id tech 4) port/binding in D ?

Trass3r un at known.com
Wed Nov 23 10:34:29 PST 2011


> I want to suggest a project to the community. Doom3 source code has just 
> been released, and I think we may want to do a port in D.

Also had a short thought about this when it was released. The notion of it is indeed great ;)

> In addition, this is a good occasion to produce some code for deimos and 
> can enlight us on D future evolutions backed with solid fact. On my 
> knowledge, such a big project (big in size, but also in technicity) 
> don't exist in D yet.

Regarding graphical features I think http://h3.gd/code/nucleus is the most advanced project and with a really neat design (read the thesis), but unfortunately dead and the codebase is confusing. (could also be an interesting project to revive that one, many cool projects are rotting there, including a nice OpenGL GUI)

> Anyway, don't expect this to be easy. We are talking here about 500 000 
> lines of C++ (not including headers). And the code is performance critical.

Porting this by hand would be insane. I suggest to work on a C++/D converter based on Clang similar to https://github.com/jacob-carlborg/clang instead which does the nasty part. The Doom code would be an excellent testbed for that tool and it could also be used for other C++ code.


> or just a translation of doom's headers in D + some glue code between D and C++

Maybe something like SWIG could be used.


More information about the Digitalmars-d mailing list