Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Randomizing shaders on clones using Multi Shader

  • Randomizing shaders on clones using Multi Shader

    Posted by Jacqueline Dessel on December 5, 2008 at 9:17 am

    Hi, I was wondering if someone could tell me what I’m doing wrong…

    I have a bunch of squares created with a Cloner Object. I have 15 clones and created a Multi Shader with 15 images in it. I applied it to the Cloner Object but it uses the same image for the first 3 squares, second image for the next 3, and that’s not what I want- I don’t want the images to repeat.

    So I applied a Random Effector and set the Color mode to on, but the Multi Shader still behaves the same way. It doesn’t do what I’m trying to accomplish with each image being used only once, randomly applied.

    In fact it wouldn’t even matter if an image was duplicated, just as long as it would be randomly (not three of the same image in a row, which is what’s happening now).

    Can anyone tell me what I’m doing wrong? I thought for sure the Random Effector would do the trick.

    Thanks!

    Don Ross md replied 13 years, 1 month ago 7 Members · 17 Replies
  • 17 Replies
  • Adam Trachtenberg

    December 5, 2008 at 2:47 pm

    First, make sure that the “use alpha strength” box is checked next to the random effector’s color mode dropdown. Then play with the Min/Max settings in the Effector tab. It helps to use the Interactive Render Region so you can see your changes in near real time.

  • Adam Trachtenberg

    December 5, 2008 at 2:52 pm

    Also, try the “synchronized” and “indexed” options in the random effector’s Effector tab…. Takes some experimentation for best results.

  • Jacqueline Dessel

    December 5, 2008 at 4:54 pm

    Hi Adam, thanks for the help.

    I’ve tried your suggestions and just can’t seem to get it to work. No matter what combination of settings I try, I still get the images showing up 3-3-3.

    The Shader Effector has nothing to do with this, right? I’m not using it- only the cloner, a Random Effector and a Multi Shader I made in the Materials window…

  • Adam Trachtenberg

    December 5, 2008 at 5:21 pm

    Hmm, are you sure you’ve applied the random effector to the cloner? To check, select the cloner and look in the effectors tab. If the random effector isn’t in there drag it in.

    FYI, effectors are only applied automatically if the cloner is selected when you create them.

  • Jacqueline Dessel

    December 6, 2008 at 3:18 am

    Hi Adam, yes it’s applied to the cloner. I checked.

    The Multi Shader is set to use Index Ratio also.

  • Brian Jones

    December 6, 2008 at 5:22 am

    For a simple step through a list of shaders no effectors are needed just the multishader (Index Ratio) in a channel in a material you apply to the object or the cloner. An example using colors rather than images for simplicity.

  • Jacqueline Dessel

    December 6, 2008 at 2:40 pm

    But the problem I’m having is that the Index Ratio setting on the Multi Shader applies the same image to the first 3 clone objects, second image to the next 3, etc. I’m trying to randomize them.

  • Brian Jones

    December 6, 2008 at 3:53 pm

    index ratio doesn’t work that way. If you have a single object cloned 15 times in a single cloner and a attach a multishader material with 15 images inside it it will put 1 image per clone. The only way (I can think of at this time in the morning), with that setup, to get an image that covers the first 3 then the next 3 etc. is to have only 5 images in the multishader then each image is placed on 3 clones. That’s why it’s called index ratio. 15 clones and 15 images gets 1 clone/image, 15 clones and 3 images gets 5 clones/image….

    Either your setup is different, in which case we’d need to see it, or your first post had an error in it and you meant to say you have 15 clones and 5 images in a multishader.

  • Jacqueline Dessel

    December 6, 2008 at 5:50 pm

    The problem I’m having is that I want 1 image per cloned cube, no duplicates.

    I have 15 cloned cubes and I have 15 images in a multishader.

    The result is, for some reason, that the first image is appearing on the first 3 cubes, 2nd image on the 2nd row of 3 cubes, etc.

    Later tonight I’ll post a link to my project.

    Thanks for helping me, I appreciate it very much. I’m assuming I just have some setting wrong somewhere and can’t figure it out. I was up until 3am the other night trying to simply get 15 images to appear on my 15 cloned cubes and no matter what I did I was getting 3 of the same image, and therefore it wasn’t using all of my images…

    I’ll upload the project tonight with my images and all. Thanks again for your help.

  • Jacqueline Dessel

    December 6, 2008 at 8:59 pm

    Aha.

    I downloaded the file you supplied and changed the cloner’s mode to Grid Array, which is what I am using, and the same thing happens- gray on the first row of 5 squares, purple on the second row of 5, and so on.

    I should have stated in my original post that I was using Grid Array. Maybe that’s the problem?

    Thanks for the file.

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy