Skip to content

HeaoYe/CPUPathTracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPU软渲染 -- 光线追踪渲染器 -- 公开课

课程特色

  • 基于物理的渲染
  • 纯CPU运行,专注算法原理
  • 使用C++ 17进行开发
  • Hello World开始
  • 尽量避免使用C++高级语言特性

已实现的渲染效果

当前以实现的渲染结果

代码构建

  1. 下载源码
    git clone https://github.com/HeaoYe/CPUPathTracing
  2. 进入代码文件夹 更新子模块
    cd CPUPathTracing
    git submodule update --init --recursive
  3. 下载模型与贴图文件
    • 新建models和hdris文件夹
    • 下载模型与贴图文件
    • 将.obj模型文件放入models文件夹
    • 将.exr贴图文件放入hdris文件夹
    • 文件夹结构预览
    CPUPathTracing
    ├── hdris
    │   ├── HdrOutdoorSnowMountainsEveningClear001_HDR_4K.exr
    │   ├── kloppenheim_07_puresky_4k.exr
    │   └── qwantani_night_puresky_4k.exr
    ├── models
    │   ├── buddha.obj
    │   ├── dragon_871k.obj
    │   ├── dragon_87k.obj
    │   └── simple_dragon.obj
    ├── resource/
    ├── source/
    ├── thirdparty/
    ├── .vscode/
    ├── CMakeLists.txt
    ├── .gitignore
    ├── .gitmodules
    ├── README.md
    └── LICENSE
  4. 编译
    cmake -B build
    cmake --build build -j 8
  5. 运行
    ./build/source/CPUPathTracing

课程列表(持续建设中...)

About

CPU软渲染 -- 光线追踪渲染器 -- 公开课

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors