AnKi 3D Engine - Vulkan and D3D12, modern renderer, scripting, physics and more
#game-engine #gamedev #engine #3d #rendering #opengl #vulkan #glsl #hlsl #cpp
|
|
4 年之前 | |
|---|---|---|
| .github | 4 年之前 | |
| AnKi | 4 年之前 | |
| Docs | 4 年之前 | |
| EngineAssets | 4 年之前 | |
| Samples | 4 年之前 | |
| Sandbox | 4 年之前 | |
| Tests | 4 年之前 | |
| ThirdParty | 4 年之前 | |
| Tools | 4 年之前 | |
| .clang-format | 4 年之前 | |
| .gitattributes | 5 年之前 | |
| .gitignore | 4 年之前 | |
| CMakeLists.txt | 4 年之前 | |
| LICENSE | 4 年之前 | |
| README.md | 4 年之前 |
Twitter development news feed: twitter.com/anki3d
AnKi 3D engine is a Linux, Windows and Android opensource game engine that runs on Vulkan.
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.
| Build Status |
|---|
To checkout the source type:
git clone 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.
Prerequisites:
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.
Prerequisites:
PATH environment variableWindows 10 SDK (xxx) for Desktop C++ [x86 and x64] component is installedTo 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:
Prerequisites:
NDK and CMakeAndroid builds work a bit differently from Linux and Windows. You are required to generate a gradle project per build
target. For example, if you want to generate a project for the Sponza sample just type from a Linux terminal:
$cd path/to/anki
$./Samples/Sponza/GenerateAndroidProject.sh
or from a PowerShell terminal on Windows:
$cd path/to/anki
$./Samples/Sponza/GenerateAndroidProject.bat
The GenerateAndroidProject scripts will generate a project in the root directory of AnKi. So for the Sponza sample
the script will create a directory named AndroidProject_Sponza.
Then you can open the AndroidProject_Sponza project from Android Studio and build it, debug it, run it etc.
This code repository contains 4 sample projects that are built by default (ANKI_BUILD_SAMPLES CMake option):
Sponza: The Crytek's Sponza sceneSimpleScene: A simple scene (Cornell box)PhysicsPlayground: A scene with programmer's art and some physics interactionsSkeletalAnimation: A simple scene with an animated skinYou 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.
There are no special rules if you want to contribute. Just create a PR. But before you do that, carefully read the code style guide.