Follow the yellow brick Spline

Very nice!!! Do you think it could be possible to use it with a camera? That would make fly-throughs much easier!! At least we can make cars follow roads etc. Does the object keeps its rotation or does it rotate along with the path? A well still playing with your wave generator!! You've got some nice scripts here!!! Thanks again!

Regards,

Peter
 
peer,
yes it would make fly-throughs easier, however at this time I am just re-building the entire object in a new location. in 3.3 hopefully setParameter will work and then this script would work for any object.
I will work on making the object 'follow' the path next, for now thats up to you

Todd
 
Hi Todd,
that is a really interesting work arround about a missing feature in Cheetah3D. :grin:
At the moment I'm working on scripting again so a tag solution to that problem isn't to far away.

I've read your script and found some performance slow downs. I just had to change some lines of code and it ran almost twice as fast. Is it OK for you if I post my modified version here.

Bye,
Martin
 
Martin,
Please do post the improved version. That way I can learn what is different and improve my skills.

Todd


p.s. I'll update the file so anyone DLing it will get the better version
 
Last edited:
Hi,
here is the accelerated version. In general avoid creating new vectors and matrices if possible since allocating and deallocating objects cost quite some time.

Bye,
Martin
 

Attachments

  • Object Track.js.zip
    1.5 KB · Views: 910
Hi all
I've updated the Object Track script with Martin's improvements, also added two buttons: for hiding/showing the spline and object. Just thought that it would save time and avoid confusion when there might be more of them.
The original link is the updated file.

Todd
 
Martin,

I just noticed something, the object inside my object track script; modify it and no problem. the problem is when the inside object is rotated the rotation is not carried through. Isn't that how modCore is supposed to work or is rotation not a modifier? the same is true for scale and position.

confused
Todd
 
Hi.
Seems´s out of date (nearly 3 years old).
I think it´s replaced by the spline tracking tag.

Cheers
Frank
 
Back
Top