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

Support for transparency. #13

Open
petermcevoy opened this issue Sep 16, 2017 · 4 comments
Open

Support for transparency. #13

petermcevoy opened this issue Sep 16, 2017 · 4 comments
Milestone

Comments

@petermcevoy
Copy link
Collaborator

This feature request was mentioned in issue #2.

@sharktacos
Copy link

sharktacos commented Sep 16, 2017

Two thoughts to consider here:

First, I'm thinking that the transparency should effect the gaps in between the yarns created by yarnsize lower than 1. That is, when a fabric appears "see through" this is not because the threads are transparent, but because of the gaps between the threads. I'll see if I can share some test renders showing this with the shader.

In that case, perhaps the transparency should simply be a on/off checkbox. So off is black gaps (the current behavior) and on is 100% transparent gaps. I don't know that it makes sense to have 50% transparency here. What do you think?

Second, Vray 3.6 now has three methods for calculating opacity that you may want to look at.
https://docs.chaosgroup.com/display/VRAY3MAYA/V-Ray+Material+%7C+VRayMtl#V-RayMaterial|VRayMtl-BasicParameters

The opacity modes are:

Normal – The opacity map is evaluated as normal: the surface lighting is computed and the ray is continued for the transparent effect. The opacity texture is filtered as normal.

Clip – The surface is shaded as either fully opaque or fully transparent depending on the value of the opacity map (i.e. without any randomness). This mode also disables the filtering of the opacity texture. This is the fastest mode, but it might increase flickering when rendering animations.

Stochastic – The surface is randomly shaded as either fully opaque or fully transparent so that on average it appears to be with the correct transparency. This mode reduces lighting calculations but might introduce some noise in areas where the opacity map has gray-scale values. The opacity texture is still filtered as normal

@petermcevoy
Copy link
Collaborator Author

petermcevoy commented Sep 16, 2017 via email

@sharktacos
Copy link

Here's an initial test showing (on the right) 100% opacity in the gaps between the yarn strands caused from lowering the yarnsize, and the normal behavior where these gaps are black (on the left). This is a pretty coarse weave. I'll do more tests on finer weaves (i.e. larger values for the UVsize)

image

@petermcevoy petermcevoy added this to the v1.0.0 milestone Mar 4, 2020
@petermcevoy
Copy link
Collaborator Author

petermcevoy commented Mar 30, 2020

Support for this has been added in PR #37.
Still need to look att exposing it correctly in Maya.

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