LuxCoreRender / LuxCore

LuxCore source repository
Apache License 2.0
1.16k stars 145 forks source link

Crash when emission color is negative #177

Closed Theverat closed 5 years ago

Theverat commented 5 years ago

crash_LuxCore.zip crash.blend.zip

The crash seems to happen somewhere in slg::PathTracer::DirectLightSampling(luxrays::IntersectionDevice*, slg::Scene const*, float, float, float, float, float, float, slg::PathDepthInfo const&, luxrays::RGBColor const&, slg::BSDF const&, slg::PathVolumeInfo, slg::SampleResult*) const.

Maybe the returned spectrum value of the emittedTex should be clamped in https://github.com/LuxCoreRender/LuxCore/blob/master/src/slg/materials/material.cpp#L93

Dade916 commented 5 years ago

I should have fixed the problem.

Theverat commented 5 years ago

Thanks!