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 d2beedd73a Start removing ESM 6 năm trước cách đây
bled ca28094553 RenderGraph: More work 8 năm trước cách đây
docs fa002881f5 Work on the new shader program design 8 năm trước cách đây
engine_data 4f5da4f132 Add reprojection of light accumulation 7 năm trước cách đây
samples 62f339d964 Update the physics scene 6 năm trước cách đây
sandbox b7c9eb834d Update the copyright year 7 năm trước cách đây
shaders d2beedd73a Start removing ESM 6 năm trước cách đây
src d2beedd73a Start removing ESM 6 năm trước cách đây
tests 73a80e2eae Move the UI implementation form nuklear to ImGUI. ImGUI has better support and it's actively developed 6 năm trước cách đây
thirdparty @ 7903de6abf a9ff1c5a09 Update thirdparty 6 năm trước cách đây
tools e0c31eebb4 Add more cnobes to the GI probes 6 năm trước cách đây
.clang-format f9b96c34dc Update clang-format and change the formatting a bit 8 năm trước cách đây
.gitignore 8c0d0f1e3d Add more functionality to the rigid body 7 năm trước cách đây
.gitmodules 8d2aaee2ae Fixing submodules 10 năm trước cách đây
.travis.yml 787cd40e97 Fix travis 6 năm trước cách đây
AndroidManifest.xml bc81b1130b Android 12 năm trước cách đây
CMakeLists.txt 206038ad0e Fix travis 6 năm trước cách đây
LICENSE 7d7a993f8e Update the copyright notice year 9 năm trước cách đây
README.md 0a55f3106e Fix travis 6 năm trước cách đây

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 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

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 .

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

  • Open Visual Studio
  • Choose the "open folder" option and navigate to AnKi's checkout
  • Visual Studio will automatically understand that AnKi is a CMake project and it will populate the CMake cache
  • Press "build all"

3 Next steps

Try to build with samples enabled (search for the ANKI_BUILD_SAMPLES=ON option in your CMake GUI) and try running the sponza executable. Then you will be able to see sponza running in AnKi. All samples must run from within their directory.

$cd path/to/anki/samples/sponza
$./path/to/build/bin/sponza

More samples will follow.