Code Monkey home page Code Monkey logo

moer-lite's People

Contributors

chenxizhou0619 avatar mchenwang avatar orbitchen avatar xiaoyaoing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

moer-lite's Issues

OrenNayar.h 中参数 sigma 未初始化

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) {}

sampleWh函数返回值错误

src/FunctionLayer/Material/NDF/GGX.hsrc/FunctionLayer/Material/NDF/Beckmann.hsampleWh函数返回值中y轴应该是cos_theta

Octree 代码框架命名问题

相关文件: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)

目前不支持所有Apple Silicon设备

如果在使用m系列芯片的Mac设备上使用Moer lite,在编译时不会出现问题,但是在运行时会出现segmentation fault。
由于开发组手中没有Applec Silicon设备,暂时无法定位问题。
如果只有这样的设备可以使用,建议在虚拟机中运行Windows或者基于x86-64的Linux发行版:https://www.parallels.cn/products/desktop/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.