Page 1 of 1

Arbitrary falloff

PostPosted: Wed Dec 07, 2016 11:18 pm
by roeland
By using specific settings for the UV transform and projection, you can use an image texture to create an arbitrary falloff:

Falloff.orbx
(3.33 KiB) Downloaded 319 times


In this example we use an image of 1px wide, with the color for grazing angles at the bottom, and the color for normal angles at the top.

  • UV transform:
    • R.Z = 180°.
    • (S.X, S.Y) = (0.5, 0.5)
    • (T.X, T.Y) = (0, -0.25)
  • Use spherical projection and set coordinate space to "Normal space"
  • Set border mode to "Clamp value"

Now the image is mapped in the same way as the ramp of the falloff texture node.

You can change the rotation according to the orientation of the image. If your image contains the ramp along the X axis, use 90° or -90°.

--
Roeland

Re: Arbitrary falloff

PostPosted: Sat Dec 10, 2016 10:25 pm
by glimpse
Thanks, Roeland ;)

Re: Arbitrary falloff

PostPosted: Sat Mar 11, 2017 6:01 pm
by Phantom107
Please don't ever change this behaviour, I programmed a custom tool to be able to design fresnel curves and then project them using your method in Octane ;)

Image