Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Camera following issue.

  • Camera following issue.

    Posted by Bam Rees on June 17, 2012 at 1:27 pm

    Hi,

    I have built a rollercoaster track which follows a spline. I have built the coaster/cart and used the cloner tool to duplicate the carts. I have used the offset to animate the clones and wish to attach a camera so I can ride the rollercoaster from the view of the second carriage.
    How do I go about this?

    I have tried to use the align to spline tag and animate that but it rides faster through the course for some reason.

    Any suggestion?

    Bam Rees replied 14 years, 2 months ago 2 Members · 6 Replies
  • 6 Replies
  • Brian Jones

    June 17, 2012 at 8:08 pm

    have to see the scene but if the spline has Intermediate Points set to Uniform that may help but it may also be the F-Curve of the keyframing of the Align to Spline and the Offset of the Cloner.

    Another way to do it would be attach the camera to the second clone with xpresso.

    4297_cameraattachedtoclone.c4d.zip

  • Bam Rees

    June 23, 2012 at 11:51 am

    Thanks your your reply.

    Could you explain or direct me to somewhere that explains how you set up the xpresso tag to do that?

    I would like to learn how to apply this to my scene.

    Thanks in advance

  • Brian Jones

    June 23, 2012 at 6:40 pm

    have you ever done any xpresso?

  • Bam Rees

    June 23, 2012 at 7:31 pm

    Nope, it is on my list of things to learn.

    For now, I have just decided to duplicate my spline, move it up, and attach the camera to that. This gives me that ‘first person’ look which isnt quite what I wanted, but looks ok for now.

  • Brian Jones

    June 24, 2012 at 2:05 am

    it’s simple really, you just need to feed the position and rotation of the 2nd car to the camera. With xpresso you just have to drag and drop objects in to the expresso window to have access to parameters for that object – both input parameters that allow you to change something about the object (on the left side by default (the blue box) and output parameters you can pass to other objects (the red box).
    It’s easy to pass the position and rotation of one object to another you just have to activate the correct port on the two objects (called nodes – in this case they would be object nodes – you could always right click in the xpresso window and create a couple Object nodes –New Node/Xpresso/General/Object– and assign the object to the object node but it’s easier to just drag and drop an object in the xpresso window and it’s done automatically) but in this case the 2nd car isn’t an object you can access directly so we need to use the Data node –New Node/Motion Graphics/Data– which can tell us information about the clones in a Cloner. So we have an Object node feeding the Data node an ‘Object’ – that tells the data node which cloner we are interested in then in the Data node’s properties we set Index to be 1 (for the second clone since numbering starts at 0 like usual) and the data we pull from the Data node now comes from the 2nd clone.
    In the example I sent used the Matrix info but that is just Position, Rotation and Scale all in one package so it was slightly easier than using the position port and the rotation port…

  • Bam Rees

    June 24, 2012 at 3:52 pm

    Thank you so much, this has been a massive help.

    I will post a link to the finished video when completed.

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