-
Notifications
You must be signed in to change notification settings - Fork 19
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
Comments
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. 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 |
Thank you. That is helpful!
…On lör 16 sep. 2017 at 18:40, sharktacos ***@***.***> wrote:
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.
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
<https://docs.chaosgroup.com/display/VRAY3MAYA/V-Ray+Material+%7C+VRayMtl#V-RayMaterial%7CVRayMtl-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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHGLAJDC4KBwO4enTCCsAbPeWOe1jdhks5si_oSgaJpZM4PZ28z>
.
|
Support for this has been added in PR #37. |
This feature request was mentioned in issue #2.
The text was updated successfully, but these errors were encountered: