Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Simulating hanging light with cloth

  • Simulating hanging light with cloth

    Posted by George Lazarev on April 24, 2017 at 9:38 am

    Good evening people,

    Working on a project and stuck on one issue I can’t wrap my head around. I’m looking for a way to simulate(as a physical cloth) this hanging light(screenshot) which basically takes its origin and is belted to an Object on ceiling, which is a Rope(thin plane worked, cyllinder somehow didn’t) and hangs back and forth non-stop(wind?), has a Lamp object attached to the end of it(belt again?) and then i would need a moving Light source, means attach an actual c4d Light with xpresso to Lamp(copy lamp’s position).

    Tried figuring it out by myself but this is just beyond my knowledge, thanks.

    Corrado Carlevaro replied 9 years ago 2 Members · 3 Replies
  • 3 Replies
  • Corrado Carlevaro

    April 24, 2017 at 6:20 pm

    Do you actually need it to be done with Cloth?
    Otherwise the simplest solution would be:
    1. make a Spline (the rope) with a Spline Dynamics tag on it,
    2. add a Constraint tag to attach one end of the Spline to the ceiling (first “belt”),
    3. add an Align to Spline tag to your Lamp object to attach it to the other end of the Spline (second “belt”, there’s a tutorial somewhere showing you how to align the lamp to the rope, if I remember correctly they just use a Target tag pointing to the penultimate spline point)
    4. put the actual Light inside the Lamp object (as a child, no need of Xpresso)
    5. use Wind or other forces to make the Spline swing or
    5. put a Collider tag on the “bullet” to make the Lamp swing when it’s actually hit
    Hope this helps

    Corrado

  • George Lazarev

    April 25, 2017 at 10:36 am

    Thanks for replying, actually googled up a handier technique if you’d like to hear: put a rope origin (cube1 for instance), make a rope spline, constrait to cube1, get lamp (+rigid body tag on it), constraint to lamp on other side of the rope, get spring, object A: rope, B: lamp and if you set off lamp from a certain position it actually gives that endless swinging loop, maybe not that endless but enough for its screentime in my case. HOWEVER! The rope doesn’t catch up with lamp, wonder why is that since i put a constraint on it?! .c4d and screenshot if you like:


    11294_hanging.c4d.zip

  • Corrado Carlevaro

    April 26, 2017 at 1:32 pm

    If you just need a swinging object, like a pendulum, why bother with all the Dynamics setup? You could just animate the rotation of the pivot (in the ceiling)

    C.

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