代码之美-doom3源代码赏析&doom3源代码下载-2011年

发布时间 2023-04-25 23:17:29作者: 2086nmj

        2004年的时候《Doom 3》(毁灭战士3)可谓是一款引领业界的超级大作,也是一款折磨显卡的硬件杀手,时隔七年之后游戏开发商id Software公布了《Doom 3》的源代码,对于游戏从业人员和软件工程师来说可谓是一个喜讯。

  之前,由于专利问题,John Carmack重写Reverse算法,不得不推迟了源代码发布时间。(Carmack's Reverse,卡马克在2000年发明的算法,2004年被创新公司注册为专利)据悉目前发布的源代码中不含Reverse算法,也没有通过depth fail方法开启模板缓存渲染的功能,当然为了遵守EULA终端用户授权协议,源代码也没有包含游戏数据。

  《Doom 3》基于id Tech 4引擎,同样采用此技术的还有《Quake 4》、《Prey》、《Brink》,当然广为玩家所知的《使命召唤》系列与这个引擎也有很大关系。(使命召唤用的引是擎基于id Tech 3引擎,但经过了《Quake 3》、《重返德军总部》的改良,最后独成一派的IW引擎。COD4是IW3.0,MW2为IW4.0,最新的MW3为IW4.5引擎。)

  《Doom 3》源代码支持Windows、Linux、Mac OS X三大系统平台,可以分别使用Visual Studio 2011、SCons、XCode 3.2进行编译,此外还提供了Maya导入导出插件。由于此前id Tech 2、id Tech 3引擎都已经开源,相信随后便会出现大量基于id Tech 4引擎的游戏,国内的游戏厂商又可以”自主创新“了。

参考1:https://blog.51cto.com/u_15329201/3381012

参考2:https://github.com/TTimo/doom3.gpl

Compiling on win32:
-------------------

A project file for Microsoft Visual Studio 2010 is provided in neo\doom.sln

Unfortunately, Microsoft Visual Studio 2010 Express Edition (e.g. the free release)
will not be able to successfully compile the source, because 32 bit MFC is required.

You will need the Microsoft DirectX SDK installed as well.
If it does not reside in "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)"
you will need to update the project files accordingly.