Forum: Poser - OFFICIAL


Subject: Nodes for Dummies

RobynsVeil opened this issue on Jan 24, 2009 · 490 posts


kobaltkween posted Mon, 01 June 2009 at 2:21 AM

gotcha!  thanks so much.  i was thinking that's what i was observing,but it's hard to tell.  especially when i'm trying to do it so i can see what i'm doing.

i'm still having difficulties getting it right.  right now i have:

Quote -
def IF(test, tv, fv):
    return (test * tv) + ((1 - test) * fv)

def sRGB(x):
    return IF(x <= .0031308, 12.92 * x, (1.055 * (x ** (1/2.4))) - .055)

def asRGB(x):
    return IF(x <= (12.92 * 0.0031308), x / 12.92, ((x + .055) / 1.055) ** 2.4)

and i'm anti-correcting the color on the way in, and the finished product on the way out. i'm sure i'm still getting it wrong, but i'm not sure how to get it right.