Using ramp VOP in /mat

   266   3   0
User Avatar
Member
362 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
Lost Boys Montreal
User Avatar
Member
372 posts
Joined: Oct. 2011
Online
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 [racecar.no]
User Avatar
Member
14 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
362 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
Lost Boys Montreal
  • Quick Links