Gal
04-03-2004, 06:26 AM
guys help out, i have a network that controls a ramp V value based on distance from a sampler info point on surface to a locator. i am using the distance between node to calc the distance, problem is mental ray SEEMS not to support this node in some way. i am not getting any gradiation when i use that node in mr, but it works fine in maya.
any ideas how i can bypass this? find a replacement for the distance calculation for each point on the surface of the shader on the object to a locator in the scene.
i attached the network graph (btw thanks mdme_sadie)
the sampler info global position point and locator world pos are connected to the distance between, that is connected to a multiply by x to control scale and clamped to 0-1 to control V on the ramp.
right now the ramp colors the shader just to test it, later on it will be used to control reflection decay,blurriness and so on..
if you can tell me of a workaround to make this work with mr i'd be most grateful.
thank you
any ideas how i can bypass this? find a replacement for the distance calculation for each point on the surface of the shader on the object to a locator in the scene.
i attached the network graph (btw thanks mdme_sadie)
the sampler info global position point and locator world pos are connected to the distance between, that is connected to a multiply by x to control scale and clamped to 0-1 to control V on the ramp.
right now the ramp colors the shader just to test it, later on it will be used to control reflection decay,blurriness and so on..
if you can tell me of a workaround to make this work with mr i'd be most grateful.
thank you
