2025 年 Rust 课程大作业
一个实现 3D 模型光栅化的渲染库,附带一个演示 demo,具有摄像机控制与添加光源、更换渲染模型功能。
注意:只在 Windows 11 x64
平台进行了测试
- Rust 1.70+ with MSVC Toolchain
- CMake 3.20+, support Visual Studio Toolchain
git clone https://github.com/thely314/render-engine-rs.git
cd render-engine-rs
# Build all components 构建所有组件
cargo build --workspace --release
# Run the demo application 运行示例 demo
cargo run -p render-app --release
在 Cargo.toml 添加:
[dependencies]
render-lib = { git = "https://github.com/thely314/render-engine-rs" }
- 借助线性代数库
nalgebra
加快计算 - 通过
assimp
导入模型文件
- 可视化摄像机控制
- 模型热加载
- 使用WASD控制摄像机移动,按住鼠标左键拖动控制摄像机视角旋转
cargo doc --workspace --no-deps --open
Distributed under the MIT License.
按照 MIT License 分发
By submitting commits to this repository, you agree to authorize your contribution under the MIT license.
通过向本仓库提交 commits,贡献者同意根据 MIT license 授权其贡献。