跨平台的现代游戏引擎。
"A poet once said, 'The whole universe is in a glass of wine.'" -- Richard Feynman, 1963
// the "E"
auto l_testEntity = g_Engine->getEntityManager()->Spawn(false, ObjectLifespan::Scene, "testEntity/");
// the "C"
auto l_testTransformComponent = g_Engine->getComponentManager()->Spawn(l_testEntity, false, ObjectLifespan::Scene);
l_testTransformComponent->m_localTransformVector.m_pos = Vec4(42.0f, 1.0f, PI, 1.0f);
// the engine has several "S" to handle the engine-side businesses, while users have the freedom to implement their own systems
class TestSystem : public ISystem {};…struct POD
{
float m_Float;
int m_Int;
void* m_Ptr;
};
auto l_objectPoolInstance = TObjectPool::Create(65536);
auto l_PODInstance =l_objectPoolInstance->Spawn();
l_PODInstance->m_Float = 42.0f;
l_objectPoolInstance->Destroy(l_PODInstance);
TObjectPool::Destruct(l_objectPoolInstance);Logic Client-as-a-plugin style, the only coding rule is using the engine's interfaces to write your gameplay code and write whatever you want.
The major graphics API support, from OpenGL 4.6 to DirectX 11, from DirectX 12 to Vulkan, and Metal, all supported by one unified interface.
Client-Server rendering architecture, supports any kind of user-designed rendering pipeline from the first triangle draw call to the last swap chain presentation.
auto l_renderingServer = g_Engine->getRenderingServer();
// m_RPDC = l_renderingServer->AddRenderPassDataComponent("LightPass/");
l_renderingServer->CommandListBegin(m_RPDC, 0);
l_renderingServer->BindRenderPassDataComponent(m_RPDC);
l_renderingServer->CleanRenderTargets(m_RPDC);
l_renderingServer->BindGPUResource(m_RPDC, ShaderStage::Pixel, m_SDC, 17);
l_renderingServer->DrawIndexedInstanced(m_RPDC, m_quadMesh);
l_renderingServer->CommandListEnd(m_RPDC);
// Execute on separate threads
l_renderingServer->ExecuteCommandList(m_RPDC);
l_renderingServer->WaitForFrame(m_RPDC);Physically-based lighting, photometry lighting interface with support of real life light measurements like color temperature, luminous flux and so on.
Default rendering client support features like:
Real-time GI, baked PRT for the complex large scale scene or bake-free SVOGI for the limited small scale scene, fully dynamic and lightmap-free.
Unified asset management, using popular JSON format for all text data and support easy-to-use binary data I/O.
Physics simulation, NVIDIA's PhysX integrated.
GUI Editor, Qt-based, easy to extend, easy to modify.
And so on...
All scripts are in /Script folder
Tested OS version: Windows 11 version 22H2
Run following scripts will build Debug and Release configurations in parallel:
SetupWin.ps1
BuildAssimpWin.ps1
BuildPhysXWin.ps1
BuildGLADWin.ps1
BuildEngineWin.ps1
PostBuildWin.ps1Source\Editor\InnoEditor\InnoEditor.pro with Qt Creator..\..\..\Bin for Debug, Profile and Release build configurations..\..\..\BinTested OS version: Ubuntu 18.04 LTS
Run following scripts:
echo | SetupLinux.sh
echo | BuildAssimpLinux.sh
echo | BuildGLADLinux.sh
echo | BuildEngineLinux.sh # or BuildLinux-Clang.sh or BuildLinux-CodeBlocks.sh
echo | PostBuildLinux.shTested OS version : macOS 10.13.6, 10.15.4
Run following scripts:
echo | SetupMac.sh
echo | BuildAssimpMac-Xcode.sh
echo | BuildGLADMac-Xcode.sh
echo | BuildEngineMac-Xcode.sh
echo | PostBuildMac.shILogicClient and IRenderingClient classes and put the implementation source file inside Source/Client/LogicClient and Source/Client/RenderingClientINNO_LOGIC_CLIENT and INNO_RENDERING_CLIENT in Source\CMakeLists.txt to your client modules class nameBin/${BuildConfig}/InnoEditor.exe or Bin/${BuildConfig}/InnoMain.exe on Windows, or corresponding executable file on Linux and macOS./vscode/launch.json.Run following script:
BakeScene.ps1 -sceneName [scene file name without extension]-mode [value]| Value | Notes |
|---|---|
| 0 | engine will handle the window creation and event management, for "slave-client" model like the normal game client |
| 1 | engine requires client providing an external window handle, for "host-client" model like the external editor |
-renderer [value]| Value | --- | Notes |
|---|---|---|
| 0 | OpenGL | Not available on macOS, currently supported version 4.6 (Deprecated) |
| 1 | DirectX 11 | Only available on Windows, currently supported version 11.4 (Deprecated) |
| 2 | DirectX 12 | Only available on Windows, currently supported version 12.1 |
| 3 | Vulkan | Not available on macOS, currently supported 1.1.92.1 (WIP) |
| 4 | Metal | Only available on macOS, currently supported version 2 (WIP) |
-loglevel [value]| Value | Notes |
|---|---|
| 0 | print verbose level and all the other higher level log messages |
| 1 | only print success level and higher level log messages |
| 2 | only print warning level and higher level log messages |
| 3 | only print error level log messages |
You need DirectXShaderCompiler to generate compiled shader for runtime
Scripts/HLSL2DXIL.ps1 to generate DXIL file from HLSL shader file for DirextX 12Scripts/HLSL2SPIR-V.ps1 to generate SPIR-V file from HLSL shader file for VulkanScripts/ParseGLSL.bat then GLSL2SPIR-V.bat to generate SPIR-V file from GLSL shader file for OpenGL (Deprecated)Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition)
Inside the C++ Object Model (1st Edition)
Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14
API Design for C++ (1st Edition)
Advanced C and C++ Compiling (1st Edition)
Data Structures and Algorithms in C++ (4th Edition)
Game Engine Architecture (1st Edition)
Game Coding Complete (4th Edition)
Real-Time Rendering (4th Edition)
Physically Based Rendering : From Theory to Implementation(2nd Edition)
Computer Graphics with Open GL (4th Edition)
Linear Algebra and Its Applications (3rd Edition)
And more...
Wolfram MathWorld: The Web's Most Extensive Mathematics Resource
Advances in Real-Time Rendering in 3D Graphics and Games
RasterTek - DirectX 10, DirectX 11, and DirectX 12 tutorials
Randy Gaul's Game Programming Blog
And more...
暂无开放 Issues,或尚未同步最近议题。