AnKi 3D Engine - Vulkan and D3D12, modern renderer, scripting, physics and more

#game-engine #gamedev #engine #3d #rendering #opengl #vulkan #glsl #hlsl #cpp

Panagiotis Christopoulos Charitos 4b128f7fd8 Rework a bit the bindless interface 5 år sedan
anki 4b128f7fd8 Rework a bit the bindless interface 5 år sedan
docs 93092e91cb Complete the work on the RT shader compiling 5 år sedan
engine_data cb577e27b9 Add blue noise in SSR 5 år sedan
samples 6676303e67 BREAKING CHANGE: Move source files around. The source is now in anki directory and the shaders are a sub dir 5 år sedan
sandbox 4edad1be90 - Applying some requested changes 5 år sedan
tests 4b128f7fd8 Rework a bit the bindless interface 5 år sedan
thirdparty @ 1b2534e79b 6676303e67 BREAKING CHANGE: Move source files around. The source is now in anki directory and the shaders are a sub dir 5 år sedan
tools 6676303e67 BREAKING CHANGE: Move source files around. The source is now in anki directory and the shaders are a sub dir 5 år sedan
.clang-format a8ab4c83c2 Update clang-format and slightly the formatting 5 år sedan
.gitattributes 0edd903e51 Add a code style guide 5 år sedan
.gitignore cb577e27b9 Add blue noise in SSR 5 år sedan
.gitmodules 8d2aaee2ae Fixing submodules 10 år sedan
.travis.yml a32bc5b4a9 Try to fix the build 5 år sedan
CMakeLists.txt 6676303e67 BREAKING CHANGE: Move source files around. The source is now in anki directory and the shaders are a sub dir 5 år sedan
LICENSE 419a7726e0 Add a class to execute other processes. Only for Linux ATM 6 år sedan
README.md 2998902a30 More work on the cornell box test 5 år sedan

README.md

AnKi logo

AnKi 3D engine is a Linux and Windows opensource game engine that runs on Vulkan 1.1 and OpenGL 4.5 (now deprecated).

Video

1 License

AnKi's license is BSD. This practically means that you can use the source or parts of the source on proprietary and non proprietary products as long as you follow the conditions of the license.

See the LICENSE file for more info.

2 Building AnKi

Build Status, Linux and Windows Build Status

To checkout the source including the submodules type:

git clone --recurse-submodules https://github.com/godlikepanos/anki-3d-engine.git anki

AnKi's build system is using CMake. A great effort was made to ease the building process that's why the number of external dependencies are almost none.

2.1 On Linux

Prerequisites:

  • Cmake 3.0 and up
  • GCC 5.0 and up or Clang 6.0 and up
  • libx11-dev installed
  • libxrandr-dev installed
  • libx11-xcb-dev installed
  • [Optional] libxinerama-dev if you want proper multi-monitor support

To build the release version:

$cd path/to/anki
$mkdir build
$cd ./build
$cmake .. -DCMAKE_BUILD_TYPE=Release
$make

To view and configure the build options you can use ccmake tool or other similar tool:

$cd path/to/anki/build
$ccmake .

This will open an interface with all the available options.

2.2 On Windows

Prerequisites:

  • Cmake 3.0 and up
  • VulkanSDK version 1.1.x and up
    • Add an environment variable named VULKAN_SDK that points to the installation path of VulkanSDK
  • Python 3.0 and up
    • Make sure that the python executable's location is in PATH environment variable
  • Microsoft Visual Studio 2017 and up
    • Make sure that Windows 10 SDK (xxx) for Desktop C++ [x86 and x64] component is installed

To build the release version open PowerShell and type:

$cd path/to/anki
$mkdir build
$cd build
$cmake .. -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release
$cmake --build . --config Release

Alternatively, recent Visual Studio versions support building CMake projects from inside the IDE:

  • Open Visual Studio
  • Choose the "open a local folder" option and open AnKi's root directory (where this README.md is located)
  • Visual Studio will automatically understand that AnKi is a CMake project and it will populate the CMake cache
  • Press "build all"

3 Next steps

This code repository contains 4 sample projects that are built by default (ANKI_BUILD_SAMPLES CMake option):

  • sponza: The Crytek's Sponza scene
  • simple_scene: A simple scene
  • physics_playground: A scene with programmer's art and some physics interactions
  • skeletal_animation: A simple scene with an animated skin

You can try running them and interacting with them. To run sponza, for example, execute the binary from any working directory.

On Linux:

$./path/to/build/bin/sponza

On Windows just find the sponza.exe and execute it. It's preferable to run the samples from a terminal because that prints some information, including possible errors.

4 Contributing

There are no special rules if you want to contribute. Just create a PR. Read the code style guide before that though.