Page 1 of 1

Mograph Color Shader - More than 2 colors?

Posted: Sat Jan 23, 2016 12:38 am
by L_Sprangers
Hey everyone,

Quick question for you. I have a particle cloud that I generated with X-Particles. I made the generator editable so now I just have a few thousand spheres inside of a Fracture object. Applied to the Fracture object is a shader effector. Now I'm looking to vary up the color a little bit. I want more than only 2 colors, and I want them to be within a specific color palette.

So I made two different colored materials, put them inside a Mix Material and used a Mograph color shader to vary the color. However this only gives me two colors and the blended colors in between are all faded and ugly.

This is the kind of effect I'm aiming to do:
Image
Image

Is there a way I'm able to do multiple colors like this? It's not just random color because there are large blotches of colors with individual spheres randomly colored here and there.

Please let me know if there's something I can do.

Re: Mograph Color Shader - More than 2 colors?

Posted: Sat Jan 23, 2016 1:31 pm
by aoktar
two ways:
randomtexture on render instances
or mograph colors on non render instances

We cannot assign any spesific colors to render instances. Just randomtexture can produce and distribute over nodes of render instances. But it's not controllable yet. I'll look at when OSL version comes to life.

Second way is a bit hacky and slow: Using mograph color shader on instances(non render instance). On this method, we have to create many copies of meshes and assign colors to each one. This is very slow and polygon extensive way. But i did this way to coverup the lack of this useful feature.