Mograph Color Shader - More than 2 colors?

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
L_Sprangers
Licensed Customer
Posts: 26
Joined: Fri Jan 23, 2015 12:12 am

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.
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Post Reply

Return to “Maxon Cinema 4D”