spire-engine

所属分类:游戏引擎
开发工具:C++
文件大小:8801KB
下载次数:0
上传日期:2020-06-22 01:02:49
上 传 者sh-1993
说明:  使用Slang作为其着色器编译器的跨平台迷你游戏引擎。
(A cross-platform mini game engine that uses Slang as its shader compiler.)

文件列表:
.clang-format (277, 2020-06-22)
.travis.yml (700, 2020-06-22)
CoreLib (0, 2020-06-22)
CoreLib\Allocator.h (905, 2020-06-22)
CoreLib\Array.h (2509, 2020-06-22)
CoreLib\ArrayView.h (2305, 2020-06-22)
CoreLib\Basic.h (333, 2020-06-22)
CoreLib\CommandLineParser.cpp (1159, 2020-06-22)
CoreLib\CommandLineParser.h (580, 2020-06-22)
CoreLib\Common.h (1787, 2020-06-22)
CoreLib\CoreLib.vcxproj (10020, 2020-06-22)
CoreLib\CoreLib.vcxproj.filters (8545, 2020-06-22)
CoreLib\DebugAssert.cpp (484, 2020-06-22)
CoreLib\DebugAssert.h (198, 2020-06-22)
CoreLib\Dictionary.h (23359, 2020-06-22)
CoreLib\Events.h (3794, 2020-06-22)
CoreLib\Exception.h (1819, 2020-06-22)
CoreLib\Func.h (6016, 2020-06-22)
CoreLib\Graphics (0, 2020-06-22)
CoreLib\Graphics\AseFile.cpp (12328, 2020-06-22)
CoreLib\Graphics\AseFile.h (2170, 2020-06-22)
CoreLib\Graphics\BBox.cpp (394, 2020-06-22)
CoreLib\Graphics\BBox.h (5394, 2020-06-22)
CoreLib\Graphics\BezierMesh.cpp (25988, 2020-06-22)
CoreLib\Graphics\BezierMesh.h (512, 2020-06-22)
CoreLib\Graphics\CMakeLists.txt (163, 2020-06-22)
CoreLib\Graphics\Camera.cpp (1910, 2020-06-22)
CoreLib\Graphics\Camera.h (536, 2020-06-22)
CoreLib\Graphics\GGX.cpp (2377, 2020-06-22)
CoreLib\Graphics\GGX.h (513, 2020-06-22)
CoreLib\Graphics\ObjModel.cpp (14083, 2020-06-22)
CoreLib\Graphics\ObjModel.h (1290, 2020-06-22)
CoreLib\Graphics\TextureFile.cpp (4584, 2020-06-22)
CoreLib\Graphics\TextureFile.h (5104, 2020-06-22)
CoreLib\Graphics\ViewFrustum.cpp (1268, 2020-06-22)
CoreLib\Graphics\ViewFrustum.h (1430, 2020-06-22)
CoreLib\Hash.h (1763, 2020-06-22)
... ...

# SpireEngine SpireEngine is cross-platform mini game engine that uses [Slang](https://github.com/shader-slang/slang) as its shader compiler. SpireEngine supports both Direct3D 12 and Vulkan. | Platform | Build Status | |:--------:|:------------:| | Windows | [![Build status](https://ci.appveyor.com/api/projects/status/cde7o78cyqxbaius?svg=true)](https://ci.appveyor.com/project/csyonghe/spire-engine) | | Linux | [![Build Status](https://travis-ci.com/spire-engine/spire-engine.svg?branch=master)](https://travis-ci.com/spire-engine/spire-engine) | ![](https://github.com/csyonghe/SpireMiniEngineExtBinaries/blob/master/screenshot1.png) ## Build SpireEngine currently runs on both Windows and Linux. ### Windows - Open "GameEngine.sln" in Visual Studio 2019. - Build the solution. The solution file has been setup to automatically download the following dependencies: - Slang - Autodesk FBX SDK (for ModelImporter) ### Linux SpireEngine's Linux build currently does not include ModelImporter. Just run `make` in the project root directory. ``` make -j16 ``` The makefile script will automatically check and install Xlib if it does not exist on the system, and download Slang prebuilt binaries to `ExternalLibs/Slang` if they are not already there. SpireEngine can be built by both `g++` and `clang++`. You can use the `CXX` environment variable to explicitly specify which compiler to use, for example: ``` CXX=clang++ make -j16 ``` ## Run To run SpireEngine, you need to download addtional assets. Run the `get_examplegame.ps1` script on Windows, or the `get_examplegame.sh` script on Linux. After the assets have been downloaded, follow these steps to run engine: ### Windows - In Visual Studio, set GameEngine as start-up project. - Right click GameEngine project and set the following start-up arguments in Debug settings: ``` -enginedir "$(SolutionDir)EngineContent" -dir "$(SolutionDir)ExampleGame" -level "level0.level" ``` - Run. ### Linux ``` build/linux-x86-***/release/GameEngine -enginedir EngineContent -dir ExampleGame -level "level0.level" ``` ## Editor Mode To run the engine in editor mode, pass `-editor` command line argument when launching GameEngine. ## Render Video Output SpireEngine supports rendering to video files. You can use the following command line arguments: - `-reclen `: specifies the length of video output, in seconds. - `-recdir `: specifies the location of the ouput video. If a *.mp4 filename is provided, SpireEngine will directly encode the resulting video as an H.2*** video file. If a directory name is provided, SpireEngine will output individual images for each frame to the directory. ## Headless Mode If you need to run SpireEngine in a non-desktop environment, you can pass the `-headless` argument to start without a window. This can be useful when rendering videos on a server through a console interface.

近期下载者

相关文件


收藏者