Shader Mixer Hue Shift Parameter only works when you drag the slider
Hi,
I am both new to posting in the forums and to making shaders in shader mixer. However, after much study of the many fine threads in this forum, I was able to create the shader netwrok I wanted and it is all working except for one minor annoyance: The code bricks to process a hue shift on the diffuse channel work great, but only if the value is set by dragging the value slider in the surfaces tab.
If you click on the nudge controls (+ and -) at the edges of the slider to change the value it doesn't have any effect, no matter what it is set to. If you click on the value and type in an amount it has no effect no matter what it is set to. In fact, you can double click the parameters and change the value in the parameters dialog and it still has no effect. Drag the slider, everything works great, anything else and it renders as if it was still at the last slider value you used.
The odd thing is that it behaves that way in the shader mixer tab, as well. If you drag the value, instant hue shift. Type it in, no effect.
No other control seems to have this problem, so I am guessing it has something to do with my math and color transform bricks, but as you all know there isn't exactly a lot of technical specs on how everything works and I am at a loss.
If it were only for my personal use, it would just be a minor annoyance, but I was hoping to include the shader I made as part of my first PA product attempt, and it should work as intended, lest I annoy my customers. %-P
The code in question is part of a large complex shader network, but I pulled out the bricks in question and verified that it still behaves the same way when it is in a simple shader network using only the diffuse color. I am including a screen shot of that netwrok in the hopes that someone wiser and more experienced will laugh at my foollishness and set my straight.
The basic idea is that the RBG values in the diffuse channel are converted to HSV. Then the Hue channel is added with an offset value between 0 - 255. A MOD brick puts it back into the proper range (0-255) and then it is converted back to RGB and fed into the diffuse channel with the hue shifted results. The idea is to make it possible to color shift an image used as the diffuse map.
Thanks in advance for any ideas because I am stumped.
Comments
Do other Value bricks work normally? I don't usually use the nudge arrows, but I do type values and I've not noticed any general issue. I can't, however, think why one network would change the way the brick worked more than another.
Richard,
Everything else seems to be working properly. Just this one control. It is like it doesn't know it changed unless you drag the slider. Dang Strange!
I just wrote a long post explaining this in detail, but when I hit submit it just threw it away and gave me a new reply window. At 4:22 a.m. I haven't got the patience to retype the whole thing. Suffice it to say that the value control works properly and it was a user error due to misunderstanding how daz stores images in the render pipeline. All images are converted to floating point values between 0 and 1 based on the range of data possible in the image. So essentially, where I was expecting an integer value of 0-255, it wanted a floating point value of 0-1. Any integer entered by clicking the nudges or typing essentially was seen as a zero. The good news is I ended up rewriting the whole code once I was finished and now have a custom shader mixer block that will not only shift the hue but modifies the brightness and saturation, too. So in the end it was a good mistake because I have better tools now.
Thanks for the assist.
Glad you sorted it out.
I do occasionally get the hitting submit opens a new reply box, including once yesterday. Usually, at least with the Fast Reply methodf, hitting the back button on the browser and then clicking fast reply again gives me back my text (which I then copy to the clipboard and try refreshing the page).
Good to know!