novaspirit
Posts: 6
Joined: Thu Sep 22, 2016 5:12 am
Location: New York
Contact: Website

[Guide] How to install Doom 3 on Raspberry pi 4

Fri Sep 20, 2019 2:06 pm

I put together a guide on how to install doom 3 on raspberry pi, you can also check out the video on this same process of install and also game play footage. Thanks!!
Image

Youtube Video
https://www.youtube.com/watch?v=tMYUgfvijvY


Requirements
  • Full or Demo of Doom 3
  • Raspberry pi 4 (2gb or higher recommend)
  • at least 2gb space

Dependencies
Open the terminal and type

Code: Select all

sudo apt-get install libfontconfig-dev qt5-default automake mercurial libtool libfreeimage-dev \
libopenal-dev libpango1.0-dev libsndfile-dev libudev-dev libtiff5-dev libwebp-dev libasound2-dev \
libaudio-dev libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxss-dev libesd0-dev \
freeglut3-dev libmodplug-dev libsmpeg-dev libjpeg-dev libogg-dev libvorbis-dev libvorbisfile3 libcurl4 cmake
Compiling SDL2
lets download SDL2

Code: Select all

hg clone http://hg.libsdl.org/SDL
cd SDL
./autogen.sh
./configure --disable-pulseaudio --disable-esd --disable-video-wayland \
  --disable-video-opengl --host=arm-raspberry-linux-gnueabihf --prefix=/usr
make
sudo make install
now we need to download and extract the 3 add-ons

Code: Select all

cd ..
wget http://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.5.tar.gz
wget http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
wget http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.15.tar.gz

tar zxvf SDL2_image-2.0.5.tar.gz
tar zxvf SDL2_mixer-2.0.4.tar.gz
tar zxvf SDL2_ttf-2.0.15.tar.gz
lets build each addon

Code: Select all

cd SDL2_image-2.0.5 
./autogen.sh 
./configure --prefix=/usr
make 
sudo make install
cd ..

cd SDL2_mixer-2.0.4 
./autogen.sh 
./configure --prefix=/usr
make 
sudo make install
cd ..

cd SDL2_ttf-2.0.15
./autogen.sh
./configure --prefix=/usr
make
sudo make install
cd ..
Compile DHEWM3
lets grab the repo from git

Code: Select all

git clone https://github.com/dhewm/dhewm3
now we need to make a build folder, cmake, and compile

Code: Select all

cd dhewm3/neo/
mkdir build
cd build
cmake ..
make -j4
once your done you should have 4 files needed to run Doom 3
Image

Code: Select all

(base.so, d3xp.so, dhewm3, libidlib.a)
now copy those files over to the Doom 3 or Doom 3 Demo folder
you can either purchase the game via Steam or download the demo. you should be able to find the files in steamapps/Doom 3. Transfer whole doom 3 folder over to your raspberry pi and enjoy!
running doom 3
navigate over to your doom 3 folder and execute

Code: Select all

./dhewm3
for FPS and CPU counter

Code: Select all

GALLIUM_HUD=simple,fps,cpu ./dhewm3
thanks for following along!! hope you enjoy!!!!
Novaspirit Tech
YouTube @ youtube.com/novaspirittech

User avatar
bomblord
Posts: 134
Joined: Sun Jul 14, 2019 2:54 am

Re: [Guide] How to install Doom 3 on Raspberry pi 4

Fri Sep 20, 2019 10:50 pm

What kind of performance do you get on it?

novaspirit
Posts: 6
Joined: Thu Sep 22, 2016 5:12 am
Location: New York
Contact: Website

Re: [Guide] How to install Doom 3 on Raspberry pi 4

Fri Sep 20, 2019 11:10 pm

bomblord wrote:
Fri Sep 20, 2019 10:50 pm
What kind of performance do you get on it?
my setup:
gpu @620mhz
resolution @ 960x540

normal walking around 30fps~
lots of particals like fire and steam 14fps~
Novaspirit Tech
YouTube @ youtube.com/novaspirittech

User avatar
bomblord
Posts: 134
Joined: Sun Jul 14, 2019 2:54 am

Re: [Guide] How to install Doom 3 on Raspberry pi 4

Fri Sep 20, 2019 11:32 pm

novaspirit wrote:
Fri Sep 20, 2019 11:10 pm
bomblord wrote:
Fri Sep 20, 2019 10:50 pm
What kind of performance do you get on it?
my setup:
gpu @620mhz
resolution @ 960x540

normal walking around 30fps~
lots of particals like fire and steam 14fps~
Good to know thanks!

graphicw
Posts: 75
Joined: Mon Sep 09, 2019 5:04 pm

Re: [Guide] How to install Doom 3 on Raspberry pi 4

Sun Sep 22, 2019 11:29 pm

This is an excellent guide and it works flawlessly. I have Doom 3 working on my RPI 4 and it is very pleasantly playable at 720p with 2ghz CPU and 600 mhz GPU overclock. Sure it will perform even better as the Mesa drivers mature though it is playing quite fluid as is. Excellent work. Thanks for this wonderful guide.

graphicw
Posts: 75
Joined: Mon Sep 09, 2019 5:04 pm

Re: [Guide] How to install Doom 3 on Raspberry pi 4

Sat Sep 28, 2019 9:42 pm

I have found one other easily overlooked thing to improve Doom 3 playback on Pi 4. With my monitor, the refresh rate defaults to 75 hz. By setting it for 60 hz instead, it oddly had a very positive effect on Doom 3 frame rate. I am have my CPU clocked at 1.8 Ghz and my GPU set to 600 Mhz. My resolution in game is set to 720P with graphics set to the highest setting and all effects on and the frame rate is quite smooth for the most part. This game is well worth installing as it will show you what the Pi 4 is quite capable of. I remember when it first came out in 04 and you had to have a $2,500 rig to be able to play this game with these kinds of setting at only 1024x768. The Pi blows through 1024x768 like it is nothing. Perfect frame rate through the whole game regardless of the action on screen.

graphicw
Posts: 75
Joined: Mon Sep 09, 2019 5:04 pm

Re: [Guide] How to install Doom 3 on Raspberry pi 4

Sat Sep 28, 2019 9:45 pm

One last tip is to run the game from an external USB 3.0 hard drive or SSD. Load time is much faster than trying to run the game from SD card.

lorapage
Posts: 1
Joined: Tue Oct 08, 2019 2:19 am

Re: [Guide] How to install Doom 3 on Raspberry pi 4

Tue Oct 08, 2019 2:34 am

That was interesting, actually i would propose try to run yamagi-quake2, it is a Enhanced Quake II engine optimized for modern systems. I'm interested, will it work with hd resolution or not. i suggested this version because google street view it has all sorts of modes and resolutions built in (/home/user/.yq2/baseq2/config.cfg custom resolution and just in video options change to custom & full screen switch resolution, you can choose versions of openGl too) best wishes.

User avatar
pi-tastic
Posts: 145
Joined: Mon Jul 29, 2019 6:34 pm

Re: [Guide] How to install Doom 3 on Raspberry pi 4

Fri Oct 11, 2019 5:55 pm

sorry to post this here and not somewhere else.
i was wondering if you could compile this for the raspberry pi.
https://github.com/unetbootin/unetbootin/wiki/compile

I figured you were smart enough to make doom3 work, surely you could make this work!
Thanks!
maccaps.com - bringing life to dead electronics.

Return to “Gaming”