-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to render any scene using the hair
shape
#25
Comments
Dear @amyspark, we're currently 100% occupied with other research projects. It would be helpful if you could look into this yourself and post a PR to address the underlying issue. Best, |
I'm no expert, but I'll do my best. mitsuba/src/librender/integrator.cpp Line 183 in 933a057
When Mitsuba intersects the sampled ray with the hair, this query mitsuba/src/librender/integrator.cpp Line 150 in 933a057
Intersection with the shading frame and UV partial position all set to zero. This is the same with any bsdf, and when it tries normalising that vector, it all fails.
|
I tried Counting from today, the first working commit I could find is b8480a3. The first bad one I could find is 8365668. EDIT: I've narrowed it down to |
I've finally found the cause of the bug. It seems that previously, Line 848 in 0a49106
Now, the shading frame calculation is standardized with the rest of the shapes. This was not done anywhere previously: mitsuba/include/mitsuba/render/skdtree.h Line 424 in ce80ddc
EDIT: The reason why this all breaks down is because its.uv , its.dpdu and its.dpdv are never initialized at fillIntersectionRecord :Line 827 in 933a057
|
All hair-related rendering is not working as of 77d0885.
I've tried Benedikt Bitterli's Fur Ball, Hair Curls and Straight Hair scenes. In all of them the console spams (snippet below):
and ends up with pitch black hair being rendered. The Curly Hair scene instantly crashes.
This happens in MacOS Sierra 10.12.6 as well as Windows 7 (MSVC 2017).
The text was updated successfully, but these errors were encountered: