I try to make a material with smooth transparency distribution, but in my version softness and distribution don't work. How to do it right?
Transparency control by Ramp
4125 4 2- iron100
- Member
- 20 posts
- Joined: July 2016
- Offline
- ouroboros1221
- Member
- 79 posts
- Joined: Feb. 2016
- Offline
- iron100
- Member
- 20 posts
- Joined: July 2016
- Offline
- Sadjad Rabiee
- Member
- 1391 posts
- Joined: Dec. 2010
- Offline
You should use float ramp attribute instead of vector(color) ramp as transparency is float !
Also you should use a float value between 0 to 1 as a input of ramp attribute not vector.
In your example you can use vectorTofloat vop to extract P.y and use it as input of ramp.
You may need to remap range of P.y between 0 to 1 by Fit Range Vop.
Another idea is using Relative to Bounding Box vop node ,this node give you a value between 0 to 1 according to xyz position of points.
Also you should use a float value between 0 to 1 as a input of ramp attribute not vector.
In your example you can use vectorTofloat vop to extract P.y and use it as input of ramp.
You may need to remap range of P.y between 0 to 1 by Fit Range Vop.
Another idea is using Relative to Bounding Box vop node ,this node give you a value between 0 to 1 according to xyz position of points.
- anon_user_37409885
- Member
- 4189 posts
- Joined: June 2012
- Offline
-
- Quick Links