anki-3d-engine

godlikepanos活跃维护

跨平台 3D 游戏引擎,支持 Vulkan 和 D3D12 现代渲染,内置脚本与物理系统,适合开发桌面和安卓端游戏。

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

暂无版本1,628star106fork同步于 2026-11-07 07:34 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/godlikepanos/anki-3d-engine.git anki
cd anki && mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release && make
硬件要求按 README 说明

README 未说明显存或具体 GPU 型号要求,仅要求图形 API 支持 Vulkan,Windows 上可选 DX12;未提及 CPU 运行模式。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 Vulkan 的开源游戏引擎,自带渲染器、脚本与物理,可跨 Linux、Windows 和 Android

跨平台 3D 游戏引擎,支持 Vulkan 和 D3D12 现代渲染,内置脚本与物理系统,适合开发桌面和安卓端游戏。

核心能力

  • Vulkan 渲染为主,Windows 上还支持 D3D12 后端
  • 内置物理与骨骼动画,附 Sponza 等 4 个示例场景
  • 用 CMake 构建,外部依赖极少,接近零依赖
  • 支持 Linux x64、Windows x64/arm64、Android arm64
  • BSD 许可,可闭源商用集成

容易踩的坑

Linux 需 GCC 12+/Clang 18+ 与 CMake 3.15+,并安装 libsdl2-dev 或 libsdl3-dev 补齐依赖;Windows 需 Python 3 在 PATH 中且装好 Windows 10 SDK;Android 构建前须先为宿主系统编译出 ShaderCompiler,再用脚本生成 Gradle 工程。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    AnKi logo

    Official website: anki3d.org

    Twitter development news feed: twitter.com/anki3d

    AnKi 3D engine is a Linux, Windows and Android opensource game engine that runs on Vulkan.

    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 Supported platforms and APIs

    OSCPU ArchGFX API
    Linuxx64Vulkan
    Windowsx64 & arm64Vulkan & DX12
    Androidarm64Vulkan

    3 Building AnKi

    Build Status Linux Build Status Windows

    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.

    3.1 On Linux

    Prerequisites:

    • Cmake 3.15 and up
    • GCC 12.0 and up or Clang 18.0 and up
    • Various dev libaries. To install them all in one go just install libsdl2-dev or libsdl3-dev (AnKi has the same dependencies as SDL).

    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.

    3.2 On Windows

    Prerequisites:

    • Cmake 3.10 and up
    • Python 3.0 and up
      • Make sure that the python executable's location is in PATH environment variable
    • Microsoft Visual Studio 2022 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 17 2022" -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.3 For Android

    Prerequisites:

    • Android Studio
    • From Android Studio's package manager you need to install NDK and CMake
    • Having built AnKi for your host operating system (Linux or Windows)

    Android builds work a bit differently from Linux and Windows. First you need to have built AnKi for your host operating system. That's because Android builds requires the ShaderCompiler/ShaderCompiler.exe to compile the shaders for Android. Then you have 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 path/to/Binaries/ShaderCompiler
    

    or from a PowerShell terminal on Windows:

    $cd path/to/anki
    $./Samples/Sponza/GenerateAndroidProject.bat path/to/Binaries/ShaderCompiler.exe
    

    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.

    4 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
    • SimpleScene: A simple scene (Cornell box)
    • PhysicsPlayground: A scene with programmer's art and some physics interactions
    • SkeletalAnimation: 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/Binaries/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.

    5 Contributing

    There are no special rules if you want to contribute. If it's something small just create a PR. If it's something big contact the lead mentainer first and before you start writing any code because we can't accept any change upstream. Also, carefully read the code style guide.