Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: mantaskava on 2018-12-15, 12:10:19

Title: Clamping texture rgb output to a specific value
Post by: mantaskava on 2018-12-15, 12:10:19
Hello,

Is it somehow possible in (3DS Max here) to clamp texture output to a specific value (globally)?
Example:
Let's say there is a grey scale dirt/grunge map, and I want to clamp it's output value to a max of 0.9 (which converts to srgb 230). And, if let's say, that exact texture doesn't reach that value anyways, it wouldn't be affected at all. It only should be affected IF it exceeds that value of 0.9 or srgb 230. How do I do that? Of course everyone's first thought comes to 'Output' node, but the thing is, that node works "locally" if that makes any sense, so the texture will be clamped to 0.9 of it's CURRENT max value, and not the global value of 255 or 1.0
I hope I was clear enough :)
Thanks
Title: Re: Clamping texture rgb output to a specific value
Post by: romullus on 2018-12-15, 13:16:01
Is that what you want to achieve?
Title: Re: Clamping texture rgb output to a specific value
Post by: mantaskava on 2018-12-15, 13:57:18
Is that what you want to achieve?

Yes it is! Thanks!
Though I was expecting something more like this:
(https://i.imgur.com/1fcSHlL.jpg)
Which would be a lot more convenient in my opinion.
Title: Re: Clamping texture rgb output to a specific value
Post by: pokoy on 2018-12-15, 14:23:50
There's a 3rd party map called ColorCorrect which lets you specify clamping with values. It's way better than the built-in one and works in Corona. Look it up on maxplugins.de
Title: Re: Clamping texture rgb output to a specific value
Post by: mantaskava on 2018-12-15, 14:53:32
There's a 3rd party map called ColorCorrect which lets you specify clamping with values. It's way better than the built-in one and works in Corona. Look it up on maxplugins.de

Nice, works great! Thanks mate.