Skip to content
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

Feature request: ThunderLoom/WIF support? #563

Open
callym opened this issue Nov 1, 2021 · 1 comment
Open

Feature request: ThunderLoom/WIF support? #563

callym opened this issue Nov 1, 2021 · 1 comment

Comments

@callym
Copy link

callym commented Nov 1, 2021

It looks like ThunderLoom has a way to use more standard weave patterns, but uses the same BRDF as the current cloth material?

I've got a teeny bit of experience with raytracing (mostly limited to working through some of raytracing in one weekend), but I'm not sure how easy it'd be to port this? I guess it'd be sort of similar to the Metal material (in terms of loading a file and parsing?), and wouldn't need to touch any of the actual hard rendering code that's already been written?

Any pointers for where I'd even start would be ideal, this is obviously a super low prio so I wouldn't mind trying it out.

@Dade916 Dade916 self-assigned this Nov 1, 2021
@Dade916
Copy link
Member

Dade916 commented Nov 1, 2021

I guess it'd be sort of similar to the Metal material (in terms of loading a file and parsing?), and wouldn't need to touch any of the actual hard rendering code that's already been written?

It may be a bit more complex than the Metal material because you have to implement sampling strategies, PDFs, etc.. To add a new material to LuxCore, you have to implant a new Material object: https://github.com/LuxCoreRender/LuxCore/blob/master/include/slg/materials/material.h

You can follow the implementation of a simple material like "matte" to have an idea of how it works:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants