Forum: Poser - OFFICIAL


Subject: Candle Flame Shader For Firefly... (Use Postwork Answer Is For Cowards!)

3dcheapskate opened this issue on Mar 05, 2020 ยท 100 posts


bagginsbill posted Wed, 11 March 2020 at 12:41 PM

The matmatic script which is a mess with dead ends that need removing.

AV = Bias(V, .25)

cy = .22

x = EdgeBlend(0, 1, .2) ** 2
y = (AV - cy) * .5
gy = 10
ygrad =  Clamp(1 - Abs(y * gy)) ** 2
blueopacity = Clamp(10 * x * ygrad)

py = Clamp(5 * Abs(AV - .3)) ** 2
px = (1 - EdgeBlend(1, 0, 2)) ** 2
darkpatch = 1 - Clamp((py + px) ** .5)

gy = Clamp((AV - cy) / (1 - cy))
gyp = (4 * gy * (1 - gy))**2
yellowopacity = Clamp(EdgeBlend(1, .3, 3) * Clamp(gyp - darkpatch))

yellow = rgb(255, 255, 200) 
orange = rgb(255, 200, 100) 
yellow = EdgeBlend(yellow, orange, 3)
blue = rgb(30, 30, 255)
yclr = HSV(yellow, 1, 1, yellowopacity)
bclr = HSV(blue, 1, 1, blueopacity)
clr = HSV(bclr + yclr, 1, 1, 5)


s = Surface(0, 0, 0, 0)
s.Alternate_Diffuse = clr
s.Transparency = .8
s.Transparency_Edge = 1
s.Transparency_Falloff = 1


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)