reducing colors at render time?

Discussions about rendering in SOFTIMAGE©
Post Reply
User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

reducing colors at render time?

Post by Hirazi Blue » 26 Nov 2015, 18:26

For a NPR effect I would want to create some deliberate "color banding", the kind you can achieve in postprocessing using a "reduce colors" operator. Is there a way to tell Mental Ray beforehand to reduce the colors to a minimum, creating the desired "color banding" at render time?
:-\
Stay safe, sane & healthy!

User avatar
rray
Moderator
Posts: 1775
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Re: reducing colors at render time?

Post by rray » 26 Nov 2015, 19:08

I couldn't find anything to reproduce exactly that effect, but you could give a color_curves node a try, inserted between your shader and the material in the rendertree.

Or if you want it as a global effect for the whole rendering, you can also insert the node as a lens shader, between for example an inactive lens effect shader and the camera lend shader port.

But it's difficult to make the curves do the exact stepping effect. It always turns psychedelic.
softimage resources section updated Jan 5th 2024

User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: reducing colors at render time?

Post by Hirazi Blue » 27 Nov 2015, 09:23

Thanks fpr the suggestion. Which node do you mean exactly?
I am apparently suffering from "node blindness", because I haven't been able to find it yet...
;)
Stay safe, sane & healthy!

User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: reducing colors at render time?

Post by Hirazi Blue » 27 Nov 2015, 13:22

i think I have found one possible solution using incidence, a stepped gradient and a toon mixer.
compound.jpg
steppedgradient.jpg
toonmix.jpg
Playing around with the gradient brings even more possibilities, obviously... #:-s
stepped.zip
(501 Bytes) Downloaded 100 times
Stay safe, sane & healthy!

User avatar
rray
Moderator
Posts: 1775
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Re: reducing colors at render time?

Post by rray » 27 Nov 2015, 14:40

I meant "Color Curve" it's giving you a function curve for each channel which you can make "steppy". But using the toon shaders is a much better solution, completely forgot those were there.
softimage resources section updated Jan 5th 2024

User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: reducing colors at render time?

Post by Hirazi Blue » 28 Nov 2015, 10:59

Was playing with this some more, only to figure out that you could easily plug the stepped compound
between a soft light shader and the light material for a more scene-wide effect...
Attachments
steppedlight.png
steppedlight.jpg
Stay safe, sane & healthy!

Post Reply

Who is online

Users browsing this forum: trendiction [Bot] and 28 guests