njucg / moer-lite Goto Github PK
View Code? Open in Web Editor NEW面向教学的蒙特卡洛路径追踪(Monte Carlo Path Tracing)渲染框架
Home Page: https://njucg.github.io/Moer/
面向教学的蒙特卡洛路径追踪(Monte Carlo Path Tracing)渲染框架
Home Page: https://njucg.github.io/Moer/
src/FunctionLayer/Material/BxDF/OrenNayar.h
文件中的 OrenNayrBSDF
类的构造函数没有对私有域 sigma
进行初始化,以下代码选自 lab2 分支的对应文件。
class OrenNayarBSDF : public BSDF {
public:
OrenNayarBSDF(const Vector3f &_normal, const Vector3f &_tangent,
const Vector3f &_bitangent, Spectrum _albedo, float sigma)
: BSDF(_normal, _tangent, _bitangent), albedo(_albedo) {}
应改为
class OrenNayarBSDF : public BSDF {
public:
OrenNayarBSDF(const Vector3f &_normal, const Vector3f &_tangent,
const Vector3f &_bitangent, Spectrum _albedo, float _sigma)
: BSDF(_normal, _tangent, _bitangent), albedo(_albedo), sigma(_sigma) {}
src/FunctionLayer/Material/NDF/GGX.h
和src/FunctionLayer/Material/NDF/Beckmann.h
中sampleWh
函数返回值中y轴应该是cos_theta
相关文件:Octree.cpp 及 Octree.h
primIdxBuffer
是否应该命名为 geomIdxBuffer
?
以下代码段截取自 void Octree::build()
//* 构建八叉树
std::vector<int> primIdxBuffer(shapes.size());
std::iota(primIdxBuffer.begin(), primIdxBuffer.end(), 0);
root = recursiveBuild(boundingBox, primIdxBuffer);
以及函数声明
Octree::OctreeNode* Octree::recursiveBuild(const AABB& aabb,
const std::vector<int>& primIdxBuffer)
如果在使用m系列芯片的Mac设备上使用Moer lite,在编译时不会出现问题,但是在运行时会出现segmentation fault。
由于开发组手中没有Applec Silicon设备,暂时无法定位问题。
如果只有这样的设备可以使用,建议在虚拟机中运行Windows或者基于x86-64的Linux发行版:https://www.parallels.cn/products/desktop/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.