PapaBlueMarlin opened this issue on Aug 18, 2006 · 87 posts
bagginsbill posted Mon, 21 August 2006 at 4:58 PM
clr = ImageMap(":Runtime:Textures:Poser 6 Textures:James_Face_Color.jpg")
bump = ImageMap(":Runtime:Textures:Poser 6 Textures:James_Face_Bump.jpg")
effect = Bias(Scale(inv(Abs(2.5 * FBM(1, 4, 3, 3, .2, .2, .2, 0, .5, .3) - .5)), .2, 1), .8)
effectclr = RED * clr
effectdisp = effect
s = Surface(clr, 1, 1, .1, .5)
s.Bump = .03 * bump
cx = Add(.4).labelled("PM:Effect CX")
cy = Add(.525).labelled("PM:Effect CY")
x = (U - cx) / Add(1).labelled("PM:Effect X Scale")
y = (V - cy) / Add(1).labelled("PM:Effect Y Scale")
er = Add(.07).labelled("PM:Effect Radius")
es = Add(.25).labelled("PM:Effect Strength")
ed = Add(.03).labelled("PM:Effect Displacement")
r = sqrt(x * x + y * y)
effectInR = Clamp(Scale(r, er, er/4)) * effect
s.Diffuse_Color = Blend(clr, effectclr, es * effectInR)
s.Displacement = ed * effectdisp * effectInR
Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)