Doom 3 on FreeBSD

Last modified: 30/07/2018

back


Doom 3 on FreeBSD
Fig.: Doom 3 on FreeBSD 9.2 (64 bit)

Doom 3 and the addon Resurrection of Evil can be played on FreeBSD using the native port dhewm 3. The only dependencies to build the game from source are:

Installation

You will need the game files inside directory base from the Doom 3 DVD. Use CMake to create the Makefile, then compile with gmake:

$ cmake /path/to/repository/neo
$ gmake

Start the game by executing dhewm3. To use the German keyboard layout, run:

$ ./dhewm3 +set in_kbd german +set com_allowConsole 1

You can open the in-game console with Shift + ^.

Wide Screen

Doom 3 can be played in wide screen mode by altering the aspect ratio of the screen in the configuration file. To play the game in 1920×1200, change the following lines in ~/.config/dhewm3/base/dhewm.cfg:

seta r_customHeight "1200"
seta r_customWidth "1920"
seta r_mode "-1"
seta r_aspectRatio "2"

For 16:9 resolution, set r_aspectRatio to 1, for 16:10 resolution to 2.

Doom 3: Resurrection of Evil

Doom 3: Resurrection of Evil on FreeBSD
Fig.: Doom 3: Resurrection of Evil on FreeBSD 9.2 (64 bit)

Copy d3xp from the Resurrection of Evil CD-Rom to your local Doom 3 directory. Start the game with parameter +set fs_game d3xp, for instance:

$ ./dhewm3 +set in_kbd german +set com_allowConsole 1 +set fs_game d3xp

Doom 3: BFG Edition

RBDOOM-3-BFG on FreeBSD
Fig.: RBDOOM-3-BFG with enabled soft shadows on FreeBSD 9.2 (64 bit)

RBDOOM-3-BFG is another source port of Doom 3 (BFG Edition), which features soft shadows (see screen shot). Clone the repository with:

$ git clone https://github.com/RobertBeckebans/RBDOOM-3-BFG.git

In directory RBDOOM-3-BFG/neo/, edit CMakeLists.txt and add to line 3:

include_directories(/usr/local/include)

Then, create the Makefile with CMake and run make afterwards:

$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DONATIVE=ON -DSDL2=ON .
$ make

Valid XHTML 1.0 Valid CSS