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

Handle 'Seperate Color' nodes #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

expenses
Copy link

@expenses expenses commented Dec 7, 2022

I tried importing the sponza glTF model into Blender and then exporting it to mitsuba, but it failed to export the materials properly because they're using 'Seperate Color' nodes to split the metallic/roughness textures apart:

20221207_20h32m05s_grim

This PR does a rather hacky redirect of the node to it's input image and materials now get exported. I'm not sure if they're correct though, because I don't know what format Mitsuba expects metallic or roughness textures to be in. Perhaps it would be better to extract the channel that the colour is being separated from and save them as greyscale images?

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

Successfully merging this pull request may close these issues.

1 participant