Engine for Realtime Rendering
| 简体中文 | English |
This README is outdated. If you need English version, please raise an issue. We will update it as soon as possible.
- OS
- Windows 10 or 11
- Compiler
- MSVC == 19.44.*
- or clang(待测试)
- CMake >= 3.26.0 且 < 4.0.0 (download link)
- Git (download link)
-
Method 1: Command Line
# Clone the repo # Tip: If you don't have configured SSH, replace `git@xxx` with `https://github.com/NJUCG/MoerEngine.git` git clone --branch dev-rhi-remake git@github.com:NJUCG/MoerEngine.git cd MoerEngine # Ignore some specific commits (formatting changes) git config --local blame.ignoreRevsFile .git-blame-ignore-revs # Download Sponza scene to `./asset/scenes/` git clone --branch scene/sponza --depth 1 git@github.com:NJUCG/MoerEngine.git ./asset/scenes/sponza # Configure the engine (use default settings) cp template.MoerEngine.toml MoerEngine.toml # Build cmake -B build cmake --build build -j16 # change 16 to your cpu core count # Run ./target/bin/Debug/MoerEditor.exe
- If you have installed just, you can run the following commands to build and run the engine.
just setup just gbr # generate build run
- If you have installed just, you can run the following commands to build and run the engine.
-
Method 2: Rider
- TODO
Needs to be updated from Chinese Version
-
CUDA
- If you installed CUDA Toolkit in your system, Moer Engine will build with cuda automatically.
- CUDA Toolkit 12.8 Downloads
-
LibTorch and TensorRT
-
If you want to enable them, you need to install them manually, and tell Moer Engine where they are.
-
First, install LibTorch and TensorRT.
- PyTorch Downloads
- TensorRT 10.x Downloads
- Please download the version that matches your CUDA Toolkit!
- Recommended:
CUDA Toolkit 12.8,libtorch-2.8.0-cu128,TensorRT-10.12.0.36
-
Then, run
cp source/cuda/template.LibTorch_TensorRT.cmake source/cuda/LibTorch_TensorRT.cmake -
Modify
LibTorch_TensorRT.cmake -
Add
/path/to/torch/liband/path/to/tensorRT/libto your PATH -
Finally, recompile, and it should work.
-
-
IntelliSense
-
Method 1: GUI
- Select
Open Scenein GUI
- Select
-
Method 2: Config
- If you succeed to run Moer Engine, open the configuration file
./target/bin/Debug/config/MoerEngine.toml. - Then, change
scene_pathto any other scene files in your machine.- Such as
scene_path = E:\Data\Models\BlueArchive\aris\CH0200.fbx.
- Such as
- Run
./target/bin/Debug/MoerEditor.exeagain, you will see the new scene. - Tip:
./target/bin/Debug/config/*will be replaced with./source/configs/*, every time you compile.
- If you succeed to run Moer Engine, open the configuration file
- The camera control method of Moer Engine is very similar to Unreal Engine's.
- When dragging the mouse, press
W/A/S/D/Q/Eto move the camera. - Drag
right mouse buttonto rotate the camera. - Drag
left mouse buttonto rotate the camera and move forward/backward. - Drag
both mouse buttonsormiddle buttonto move the camera.
- When dragging the mouse, press
- Press
Fto control camera without dragging. - Press
↑or↓to change the speed of camera. - Scroll the mouse wheel to change FOV.


