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

add backface culling and double sided support in Maya #529

Closed
vortice3D opened this issue Jun 4, 2019 · 3 comments
Closed

add backface culling and double sided support in Maya #529

vortice3D opened this issue Jun 4, 2019 · 3 comments
Assignees

Comments

@vortice3D
Copy link

Hello,
We usually deal with transparency in our PBR materials, but don't have any way to specify the backfacing culling and double sided attributes later on.
How are these attributes handle, if they are?
Just in case, we would like to have a way to specify these attributes on a per material basis, like in Blender.
Thanks in advance.

@Drigax
Copy link
Contributor

Drigax commented Jun 5, 2019

Hi @vortice3D. I don't believe that the maya exporter currently supports backface culling. We just added the funcitonality to the 3dsMax exporter, so we should add this to the Maya exporter as well. Unfortunately, you may have to add the material property manually as a workaround for now, but I'll try to get this parity in our Maya exporter in the next few weeks.

Can you give me a simple scene to test the correctness of the implementation?

@vortice3D
Copy link
Author

vortice3D commented Jun 7, 2019

Hi there,
I don't know which information do you have for the implementation.
But basically, there should be a way to tell the glTF material to disabled the backface culling attribute when there is any transparency or opacity going on.
In the attached sample file, the cube is red and semi transparent, and it appears as this inside sandbox:
imagen

But it should have the backface culling turned OFF (same scene but with culling face button turned OFF also inside Snadbox) and be like this:
imagen

If this is implemented by adding custom attrbitues to the material, that's fine for now (you'll have to explain if that custom attribute should be added to the material itself or to the Shading Group).
I forgot to mention that we use Arnold's aiStandardSurface materials, but with StingrayPBS ones the problem is the same. The backface culling attribute can't be set, so it won't be exported at all.

Aside from that, there should be a way to control the transparency mode also.

MAYA_SingrayPBS.zip

@sebavan
Copy link
Member

sebavan commented Jun 10, 2019

Closing for house keeping as we are grouping all the UI work in one place #537

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

5 participants