Jump to content

Camera allong curve speed.


Jan_red

Recommended Posts

Hello all,

I'm sorry if this is an easy question but so far I can't seem to figure it out.

I am trying to move the camera(or any other object for that matter) along a curve based on a custom speed value.

So far I have no idea on how to approach this. Currently I have the camera attached to a curve and I can keyframe the position value.

But I would rather use a float value which moves the camera along the curve at a variable speed.

So basically how do i get a 0 to 1 value to increment over time at a variable speed.

I'm guessing that this must be very simple but so far I'm not able to get it done.

Thanks for any help.

Edited by Jan_red
Link to comment
Share on other sites

Also, if you animate manually, have a look at the handles in the channel editor. The slope of handles is the speed. You can even change those by entering a number but I think you can't use expressions on them (?).

For a more sophisticated approach, chops might be able to help. I think you can calculate 1st, 2nd and 3rd derivatives there.

Edited by Macha
Link to comment
Share on other sites

Hey Macha,

thanks for the reply !

It still isn't working like I would expect. Maybe I'm missing something.

The problem now is that I cant change the speed to a lower value than the current speed. Because the object will then travel back along the curve.

(Scale value gets smaller and multiplies the result of the fit. which of course leads to a smaller value.)

But I think you have given me an idea on how to approach this in CHOPS.

If I have:

channel1 going from 0 to 1 (curve normalized distance)

and warp channel1 based on channel2 (my speed)

Then I can sample the position from channel1.

If it works I'll upload the file in a couple of minutes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...