Using ramp VOP in /mat

   4142   4   0
User Avatar
Member
731 posts
Joined: Dec. 2006
Offline
I'm trying to use a RGB ramp VOP as an input to diffuse in principal shader in 16.5 in /mat. Unfortunately, when I plug it in I get a VEX compile error and the shader bugs out:

Errors or warnings encountered during VEX compile:
/mat/ramp1: Shader parameter ramp_the_basis_strings has the same name as a global variable. (17,23:51).

If I just assign the VOP directly as a shader by dragging and dropping, I get the same thing in case anyone else cares to try.

Anyone seen this, reported this or has a workaround?
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
I only get the error when using the ramp directly as a shader, not when the ramp is connected to basecolor on the principledshader.

-b
http://www.racecar.no [www.racecar.no]
User Avatar
Member
25 posts
Joined: March 2016
Offline
I think I had something similar some time ago when I had multiple RGB ramps in a mat network. Not sure but I think for me it was just renaming the ramps to something other than ramp1 or the likes, then it worked, but could have been coincidence of course!
User Avatar
Member
731 posts
Joined: Dec. 2006
Offline
There's something weird with the ramp VOP… indeed as Bonsak says, it works fine if you plug it in, but you can't drag and drop it and use it as a shader itself.
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
User Avatar
Member
1 posts
Joined: Aug. 2016
Offline
I just ran into the same issue, plugging the ramp into a null node and dragging that node onto the geometry made me able to preview the results of my ramp.
  • Quick Links