Skip to content

Blender Game Engine port for the Wii (and other homebrew platforms)

License

Notifications You must be signed in to change notification settings

I-asked/downbge

Repository files navigation

downBGE

downBGE is a fork of the Blender Game Engine, slimmed down for retro hardware.

Currently, downBGE runs on PC and Nintendo Wii.

Prerequisites

Building for PC

downBGE is intended to be built with SCons running on Python 2.7.

Building for Wii

Build Stackless Python port for Wii

$ git clone https://github.com/I-asked/stackless.git -b v2.7.18-slp-porting stackless-porting
$ cd stackless-porting/
$ echo -e 'ac_cv_file__dev_ptmx=no\nac_cv_file__dev_ptc=no' >config.site
$ export CONFIG_SITE=config.site
$ ./configure --build=x86_64-linux-gnu --host=powerpc-eabi --prefix=$PWD/_install/wii/ \
              --disable-ipv6 --enable-optimizations --disable-shared --without-pymalloc \
              --without-signal-module --with-threads \
              CC=$DEVKITPPC/bin/powerpc-eabi-gcc
$ make -j$(nproc) install
$ cd -

Build “fixed” OpenGX for Wii

$ git clone https://github.com/I-asked/opengx.git opengx-jula
$ cd opengx-jula/
$ cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE="$DEVKITPRO/cmake/Wii.cmake"
$ cmake --build build -j
$ sudo cmake --install build
$ cd -

Build the PowerPC Linux Cross Toolchain

Build the downBGE runtime (blenderplayer)

$ cd downbge/
$ python2 -m virtualenv .virtualenv
$ . .virtualenv/bin/activate
$ pip install scons
$ scons -Qj$(nproc) \
        BF_PYTHON=$PWD/../stackless-porting/_install/wii \
        BF_CROSS=wii \
        blenderlite