Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Animating visibility on a transparent object

  • Animating visibility on a transparent object

    Posted by Guy Carmeli on September 24, 2009 at 10:47 pm

    I Am having trouble trying to animate the visibility of a transparent object with refraction.
    The object is a model of a diamond with a transparency of 90% and a refraction index of 2.4. In order to fade it into the scene smoothly I’ve added a Visibility tag and keyframed it from 0% to 100%.
    Generally this works fine except that in this case it seems that the refraction doesn’t play well, and only “kicks in” in the last frame (i.e. when the visibility hits 100%) creating an erratic and un-smooth effect.
    I’ve tried using an Alpha animation on the object instead, but only got a worse effect.

    Am I doing something wrong? Is there any better way to accomplish this?

    Thanks

    Guy Carmeli replied 16 years, 7 months ago 2 Members · 4 Replies
  • 4 Replies
  • Brian Jones

    September 25, 2009 at 3:10 am

    Start with Transparency – 100%, Refraction – 1, no Specular – animate Specular Height, start at 0%
    End with Transparency 90%, Refraction 2.4 and whatever Specular Height you were using

  • Guy Carmeli

    September 28, 2009 at 4:02 pm

    Thanks Brian,

    This method worked great, but has now created a new problem…. :-\
    The object I am animating (in this case a diamond) is not appearing out of the blue, but rather from within another diamond (I’ve tried uploading a sample render, but for some reason it hasn’t been posted).
    I’ll try to explain: a model of a diamond is floating in space, revolving around itself; at a certain point, several versions of the same diamond are “born out” of it, organizing themselves adjacent to it.
    Initially, all the models are placed together at the same position, only being invisible. The problem I found – which seems to me like a bug – is that when you place two or more similar objects one on top of the other – even if the others are completely transparent and seem invisible – they drastically affect the visible object.
    Do a simple test: create an object with a transparent and refractive material. Duplicate that object, keeping it in the exact same position. Create a separate material for it, making it completely transparent with a refraction of 1. Render once with the additional object, and once without, and you’ll see the difference (creating some background and lighting might help).

    Thanks again,
    Guy

  • Brian Jones

    September 29, 2009 at 12:30 am

    I see the problem. That’s the way it should work if it’s inside, I think. The light hits another object with a different refractive index and so the light bends…. The only way I can think of with the diamonds inside each other is to do it with Booles like this… and that’s assuming you only want to see them as they exit not while they are still inside.

  • Guy Carmeli

    October 5, 2009 at 4:01 pm

    Thanks Brian – that’s a great solution!

    I truly appreciate your effort.

    Guy

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