Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2024 Oct 05 8:40 pm)
Control values are :-
"Math_Functions.Value_1", range 0.0 to 1.0, controls contrast as specified.
"Math_Functions_4.Value_1", adjust to give the required suddeness of transistion at a value 1.0 for the contrast control.
Plug your greyscale image into "ColorRamp.Input".
If you really want a true step a 1.0, some extra nodes could be used to switch between this network and one using the "Step" math function.
Attached image shows output with contrast control at 0.5
Attached Link: http://www.keindesign.de/stefan/poser/matroomtut2.html
See attached link for stewer's explanation.The problem is that the key bit of stewer's explanation is: 'In between them, it returns a value between 0 and 1 (although not exactly the same value you gave it on the input, it is "smoothing" it a little).' This is effectively what the book says. I've also found detailed explanations of the smoothstep algorithm, which make it look almost like a blur command, although the output doesn't quite match that. As far as I can tell, it sort of blurs already smooth images, while leaving sharp edges alone. As a practical node, it appears to make pictures sharper and brighter, so possibly quite useful, but I wish it was controlable. The rest of that tutorial is fantastic, and has given me quite a few ideas.
That's put me on the right lines. Having just experimented with SmoothStep and comparing it to Gain, it appears that the SmoothStep function is identical to the Gain function with Value_2 set to .66 for normal maths, or .85 in colour maths. Step actually does something very different, only ever producing output of 0 or 1, comparing input_1 and input_2 and returning 0 if value_1 is lower, and 1 if it is higher. With a single input map set into Input 1 this tends to invert the output, with dark becoming white and light becoming black. If you plug your input into Value_2, set that to 1 and set Value_1 to a lower number, you get a white for anything brighter than value_2. It can produce some interesting effects when you plug two input nodes in.
I'm not entirely sure that SmoothStep is doing what it's meant to at the moment. The description in the manual mentions the algorithm it's using, which is meant to be for smoothing/ bluring images. I wonder if the current uncontrolable gain feature is a mistake (similar to the Du crashes firefly problem). Must have a play with small textures and see if it produces obviously smoothed images or not. I've found Step very handing for splitting U and V into bands. I've got a inteligent mini-material using the trick that I'm polishing at the moment.
I've had a quick play with very small textures, and SmoothStep does appear to improve them somewhat. I've created a 10 pixel square, and drawn a one pixel line across it. SmoothStep has then made quite a big improvement to the overall result, so it looks like it does work as a blur, but only on textures. Might be an interesting node to play with for improving smaller skin textures etc.
I've had a longer play with it now, and as far as I can tell, the only visual impact the smoothshade has is the same as the Gain set to .85 - if you use gain to reduce the contrast back down, there is little or no difference. I've tried large textures, small textures and tiny tiny textures (a 256 pixel face texture - does surprisingly well at normal distances!), as well as a variety of pixel rates, shading rates and max texture sizes. The only textures that appear to be modified are things like ferns, but again, this appears to be the contrast changes.
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
So, I'm trying to design a generic shader node network that will take two parameters: a greyscale mask and a contrast level between 0 and 1. The image above should give some idea of the kind of curve response I'm looking for. I've thought about just averaging in the ROUNDed value, but I don't see how I'll get the kind of curved response I want. It's almost like an inverse-tangent with an offset origin, but we don't have such a node available to us.
Any suggestions? This just seems like a useful sub-network to have.