Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Transparent one Object with a other.

  • Transparent one Object with a other.

    Posted by Stefan Hinze on November 10, 2013 at 6:12 pm

    Hey,

    i make a Animation in C4d where i show the funktion of a maschine, i try to make the case tranparent so you can see the inside wile funktioning.

    I want to make a cube and animate the position so half of the maschine is inside and the other half is outside of the cube.
    (peace of cake, i don´t need help whit that)

    Then, i want to tell the texture of the case that its transparent if its inside of the cube and i have no idea how to do this.
    Can someone help please?!
    Thanks!

    Stefan Hinze replied 12 years, 6 months ago 3 Members · 5 Replies
  • 5 Replies
  • Brian Jones

    November 10, 2013 at 7:40 pm

    this is what the Boole object is for, place the machine (it can be many parts inside a Null too) and the Cube in (as children) of the Boole. The default setting of the Boole (A subtract B) will do what you want.

  • Thomas Pascavage

    November 10, 2013 at 8:22 pm

    sounds like some xpresso broham. try this out:

    drag the case into the xpresso field.
    drag the texture into the xpresso field
    drag the components in there too, preferably grouped under a null.

    in the texture field youll want to link up the transparency brightness and correlate it to the position of an axis of the case youre moving it in minus the position of the null grouping your components.

    work out the math so that by the time the distance equals 0, transparency equals 100. use the range mapper.

    now when the object is outside the case, the case will be opaque and as it moves into the case itll interpolate to complete transparency. if your only wanting a window, Id say restrict the texture to a polygon selection.

    also if you don’t like rigs, you can manually animate the transparency

  • Stefan Hinze

    November 11, 2013 at 10:10 am

    Hey thanks for your replys guys!!

    After i postet my question and was ready to go to sleep, i got aware that i did not post the whole settings to you.

    There is a animation that shows the funktion, and therefore i use Dynamic-Body (RidgetBody Tag) and the emitted objects need some sort of object to keep them from falling.

    How ever, i will use the Boolean.

    I will dublicate the model, make one copy 100% transparent (to keep the emitted objekts) and the visible objekt will get the boolean so i can cut it in half (visualy).

    I know, this way the computer will need to render the model 2 times … but i think the way i will make it is somehow save for me, beouse i know how to do the thinks i described.

    IF SOMEONE KNOWS A OTHER/BETTER WAY — Keep it comming!!!

    Sometimes it helps to get a little push from outside!
    Thanks guys!

  • Brian Jones

    November 11, 2013 at 4:53 pm

    that way would be simple enough if you just use Alpha on the invisible object (rather than Transparency). I don’t know what kind of a time hit that would be. There is a plugin that will do what you want – rBoole by David O’Reilly (not free) but you would have to know how to run it since there are several ways to use the plugin and only one does what you want – I just tested and it works though.
    I would try your way first and if you don’t find the renders too long use that.

  • Stefan Hinze

    November 19, 2013 at 7:05 am

    thanks Biran,
    ich think i will give it a try, the render was
    1 sek of animation = 1h of render time
    🙁

    (take a step back, to see the bigger picture)

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