Page 1 of 1
Instance Colorizer
Posted: Thu Apr 18, 2013 7:17 am
by wlf_alex
Is it possible to get a similar effect in Cindigo?
Indigo does not understand the random effeŃtor. Maybe there are any plugins for coloring instances or baking textures for them?
regards..
Re: Instance Colorizer
Posted: Thu Apr 18, 2013 7:41 am
by N.G.
Re: Instance Colorizer
Posted: Thu Apr 18, 2013 8:19 am
by OnoSendai
Is easy enough if you want to write some ISL

Re: Instance Colorizer
Posted: Thu Apr 18, 2013 8:25 am
by N.G.
super! my favorite ISL code.

Re: Instance Colorizer
Posted: Thu Apr 18, 2013 8:31 am
by Zom-B
OnoSendai wrote:Is easy enough if you want to write some ISL

Thats not the answer the Russians like to hear Ono ^^
The idea behind that request is also to use the C4D internal features you are comfortable with...
Cindigo don't work with MoGraph based Material Shaders, it tries to bake them, same as every other C4D shader.
BUT:
Cindigo does support putting different materials on a Instanced Objects!
To do so the master object needs to have no material at all, but selections are supported. Then simply put a material on that instance and it get used

Re: Instance Colorizer
Posted: Thu Apr 18, 2013 8:33 am
by wlf_alex
Ono, kill me, but softly !

But Indigo understands instances! It seems to me that the solution to this problem is within easy reach!
Re: Instance Colorizer
Posted: Fri Apr 19, 2013 2:53 am
by OnoSendai
You will need to set an albedo shader like this:
Code: Select all
def eval(vec3 pos) vec3 :
let
r = real(objectId())
base_col = vec3(0.6, 0.4, 0.4)
random_scale = 0.1
in
base_col + vec3(
fract(r * 45.345),
fract(r * 4.57),
fract(r * 908.3)
) * random_scale
Re: Instance Colorizer
Posted: Fri Apr 19, 2013 3:14 am
by wlf_alex
Thank you, Ono! I will try this code. And tell you what happens later.
I solved the problem with the bake object C4D. I completely forgot about this opportunity.
But this solution is only part of the problem. This method is suitable only for geometric shapes as takes away a lot of time and resources. For instance, we just need to paint trees, grass, rocks, etc into the Cindigo. And to solve these problems, we only need colorizer instances.
regards...
Re: Instance Colorizer
Posted: Fri Apr 19, 2013 3:20 am
by Zom-B
wlf_alex wrote:But Indigo understands instances! It seems to me that the solution to this problem is within easy reach!
The Problem here isn't Indigo, but to translate individual C4D shader to Indigo language!
Since the C4D SDK is available and Indigo Scene File system open too, everybody can start to code a "translation" plugin, that can be adapted by cindigo at some point...
Re: Instance Colorizer
Posted: Fri Apr 19, 2013 4:02 am
by galinette
wlf_alex wrote:Is it possible to get a similar effect in Cindigo?
regards..
I'm available for developping commercial shaders if one need them
Check this :
http://www.indigorenderer.com/forum/vie ... 678#p92678
It's a pure ISL material I made some times ago. The only geometry exported was a plane, the ISL shaders did everything else.
Etienne