Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D MOGRAPH : using a shader to repel objects ?

  • MOGRAPH : using a shader to repel objects ?

    Posted by Andy Stokes on November 26, 2006 at 2:44 pm

    Hi all,

    I have a setup consisting of a bunch cubes (cloned in a grid). I’m using an animated texture of green screen talent to offset the positions of the cubes as the talent moves across. This works as expected.

    What i’d like to do is use the texture to more randomly push the blocks out of the way, instead of a uniform X,Y or Z offset for each clone. Kind of like what happens if you walk through a field of tall grass or corn.

    Any ideas ?

    Cheers,
    Andy

    Mylenium replied 19 years, 5 months ago 3 Members · 4 Replies
  • 4 Replies
  • Mylenium

    November 26, 2006 at 6:47 pm

    Random effectors, if necessary with falloffs. The effect is entirely dependent on the stacking order of the effectors. You can also use a single shader effector with a layered material (noise + your keyed talent) to get the effect.

    Mylenium

    [Pour Myl

  • Andy Stokes

    November 27, 2006 at 8:25 am

    Hi Mylenium,

    Thanks for your response. I guessed it might be you to reply first as you seem to be the Mograph master !!

    I still cannot get the desired effect. I’m not so sure what i’m trying to achieve is actually posible. I have a grid of clones perpendicular to the camera as well as a plane with the animated texture map. The video footage contains talent, jumping up into the screen. I’d like this to randomly push the cubes along the X,Z axis. Right now it will just push the cubes to the specified X or Z offset (i.e one direction). I’d like it to push them “outwards” from the talent in a more random manner.

    Any more suggestions would be appreciated.

    Cheers,
    Andy

    p.s: BTW, great work on the Mograph tutorial series.

  • Adam Trachtenberg

    November 27, 2006 at 4:37 pm

    You could use a shader effector set only to affect MoGraph weight, with a random effector to alter position.

  • Mylenium

    November 28, 2006 at 5:21 am

    Like Adam said – use a random effector to only change the weight of the clones, then use your shader effector to actually make the clones move. If you are looking for a bulging effect, you may need to create a custom greyscale sequence from your footage to control the “height”. A simple way of doing this inside C4D might be using a Colorizer shader based on the Alpha channel of your keyed sequence. In general you might consider using multiple effectors and shaders to get you desired result for more control. Use each effector only with the property you want to affect, then make multiple effectors add up.

    Mylenium

    [Pour Myl

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