Skip to content

jpcy/ioq3-renderer-bgfx

Repository files navigation

A renderer for ioquake3 written in C++ and using bgfx to support multiple rendering APIs.

Compiling - Prerequisites

Checkout bgfx and bx to the same parent directory as ioq3-renderer-bgfx.

Compiling - Visual Studio

  1. Run CompileShaders.bat
  2. Use ioq3-premake-msvc.

Compiling - MinGW

Checkout ioquake3 to the same parent directory as ioq3-renderer-bgfx.

./premake5.exe shaders
./premake5.exe gmake
cd build
make

Compiling - Linux

./premake5 shaders
./premake5 gmake
cd build
make

Usage

Copy the renderer binaries from build\bin_* to where you have a ioquake3 test build installed.

Select the renderer in-game with cl_renderer bgfx followed by vid_restart.

Console Variable Description
r_backend Rendering backend - OpenGL, Direct3D 9 etc.
r_bgfx_stats Show bgfx statistics.
r_brightness
r_contrast
r_gamma
r_maxAnisotropy Enable anisotropic filtering.
r_msaa Multisample anti-aliasing. 2x, 4x, 8x, or 16x.
r_saturation