Skip to content

Commit

Permalink
fix readme and add scene
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenxiZhou0619 committed Mar 11, 2023
1 parent d912ce9 commit e76aa74
Show file tree
Hide file tree
Showing 6 changed files with 2,157 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/target
/scenes
.vscode
/examples
/examples/acceleration-test
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ add_executable(Moer
src/FunctionLayer/Acceleration/Acceleration.cpp
src/FunctionLayer/Acceleration/EmbreeBVH.cpp
src/FunctionLayer/Acceleration/Linear.cpp
src/FunctionLayer/Acceleration/Octree.cpp

src/FunctionLayer/Integrator/NormalIntegrator.cpp
src/FunctionLayer/Integrator/DirectIntegrator.cpp
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,18 @@ Moer-lite的框架基于Moer主干:https://github.com/NJUCG/Moer .

## Update
- 2023-3-2 添加了进度条,whitted-style积分器,镜面材质以及一个新场景cornell-box。
- 2023-3-10 lab1 in dev
- 2023-3-10
- 修改了Cube.cpp 28、29行bug(之前代码正确性不影响,但是逻辑不对)
- 修改了Triangle.cpp中的bug(之前当mesh文件不存在法线和纹理信息时会发生段错误)
- 对AABB进行封装(见Shape::getAABB)
- Scene::rayIntersect、Shape::rayIntersectShape、Acceleration::rayIntersect、Integrator::li中const Ray& 修改为Ray&
- 修改了Acceleration求交的接口,现在每个加速结构需要实现bool Acceleration::rayIntersect(Ray &ray, int *geomID, int *primID, float *u, float *v) const函数
- 2023-3-11
- 增加了Octree八叉树,实现八叉树需要你实现以下两个方法
- std::shared_ptr<OctreeNode> OctreeAcceleration::recursiveBuild
- bool OctreeAcceleration::rayIntersect
- 增加了`examples/lab1-test0`测试场景,用于测试加速结构的效率
- 目前可以修改配置文件中scene的acceleration参数用来测试不同的加速结构,现在可选的参数有`embree`(default)、`linear`(没有任何求交加速)、`octree`(需要实现)

## TODO
- 对mesh和sphere实现表面采样(目前只有parallelogram可以配置为面光源)
Expand Down
Loading

0 comments on commit e76aa74

Please sign in to comment.