Instance Colorizer

Announcements, requests and support regarding the Cinema 4D exporter
Post Reply
10 posts • Page 1 of 1
User avatar
wlf_alex
Posts: 99
Joined: Tue Aug 28, 2012 9:26 pm
Location: Russia-Moscow, Spain-Alicante
Contact:

Instance Colorizer

Post by wlf_alex » Thu Apr 18, 2013 7:17 am

Is it possible to get a similar effect in Cindigo?

Image

Indigo does not understand the random effeсtor. Maybe there are any plugins for coloring instances or baking textures for them?

regards..
ArchiCAD 14, Cinema 4D r13, IndigoRender, VrayforC4D

User avatar
N.G.
Posts: 36
Joined: Tue Dec 18, 2012 1:31 am
Location: Russia

Re: Instance Colorizer

Post by N.G. » Thu Apr 18, 2013 7:41 am

can be supported by this plug-in? who knows?
http://cinemaplugins.com/c4d-plugins/to ... ure-remap/

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Instance Colorizer

Post by OnoSendai » Thu Apr 18, 2013 8:19 am

Is easy enough if you want to write some ISL :)

User avatar
N.G.
Posts: 36
Joined: Tue Dec 18, 2012 1:31 am
Location: Russia

Re: Instance Colorizer

Post by N.G. » Thu Apr 18, 2013 8:25 am

super! my favorite ISL code. :lol: :P

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: Instance Colorizer

Post by Zom-B » Thu Apr 18, 2013 8:31 am

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 :)
polygonmanufaktur.de

User avatar
wlf_alex
Posts: 99
Joined: Tue Aug 28, 2012 9:26 pm
Location: Russia-Moscow, Spain-Alicante
Contact:

Re: Instance Colorizer

Post by wlf_alex » Thu Apr 18, 2013 8:33 am

Ono, kill me, but softly ! :(
But Indigo understands instances! It seems to me that the solution to this problem is within easy reach!
ArchiCAD 14, Cinema 4D r13, IndigoRender, VrayforC4D

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Instance Colorizer

Post by OnoSendai » Fri Apr 19, 2013 2:53 am

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
Attachments
object_id_scatter_test.jpg

User avatar
wlf_alex
Posts: 99
Joined: Tue Aug 28, 2012 9:26 pm
Location: Russia-Moscow, Spain-Alicante
Contact:

Re: Instance Colorizer

Post by wlf_alex » Fri Apr 19, 2013 3:14 am

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.

Image

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...
ArchiCAD 14, Cinema 4D r13, IndigoRender, VrayforC4D

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: Instance Colorizer

Post by Zom-B » Fri Apr 19, 2013 3:20 am

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...
polygonmanufaktur.de

User avatar
galinette
1st Place Winner
Posts: 923
Joined: Sat Jan 09, 2010 1:39 am
Location: Nantes, France
Contact:

Re: Instance Colorizer

Post by galinette » Fri Apr 19, 2013 4:02 am

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 :D

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
Eclat-Digital Research
http://www.eclat-digital.com

Post Reply
10 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 28 guests