Still a novice here, i have some challenges:
Look at this:
goto { time 1 distance 4 }
... The camera will slowly accelerate to some speed and then continue cruising until it reaches the target.
Is it possible to have full speed at once? That is, no slow startup, just 100% top speed instantly...
Also, a different problem:
Is it possible to use GOTO and Orbit simultaneously, so that the camera orbits some point WHILE moving towards it?
Thanks for any input,
- rthorvald
How to use GoTo in Cel without delay?
- LordFerret
- Posts: 737
- Joined: 24.08.2006
- Age: 68
- With us: 18 years 2 months
- Location: NJ USA
rthorvald,
I've had problems with the acceleration/deceleration too. See the Move command in the Scripting Guide documentation.
Your Goto statement is set for 1 second of travel time... I'm surprised you even notice acceleration/deceleration to the object. You also need to use a Wait statement of equal-to or greater-than time duration of the Goto statment, such as -
goto { time 1 distance 4 }
wait { duration 1 }
I've never tried to use Goto and Orbit simultaneously.
Is it possible to have full speed at once?
I've had problems with the acceleration/deceleration too. See the Move command in the Scripting Guide documentation.
Your Goto statement is set for 1 second of travel time... I'm surprised you even notice acceleration/deceleration to the object. You also need to use a Wait statement of equal-to or greater-than time duration of the Goto statment, such as -
goto { time 1 distance 4 }
wait { duration 1 }
I've never tried to use Goto and Orbit simultaneously.
LordFerret wrote:Your Goto statement is set for 1 second of travel time... I'm surprised you even notice acceleration/deceleration to the object..
Oh, sorry, that was just an example, i just wrote it rather than copying the proper code; the travel time is more than 10 seconds.
The problem, of course, is that i alreadt have the camera moving along one trajectory, but want it to switch to a different one WITHOUT slowing down...
- rthorvald
- LordFerret
- Posts: 737
- Joined: 24.08.2006
- Age: 68
- With us: 18 years 2 months
- Location: NJ USA
I had a similar problem in a CEL script I've been working on (not finished yet), it's a demonstration of sorts of travel at light-speed (for the kids). Starting at the surface of Sol (equivalent of the chromosphere), the script takes you to Earth. Along the way the approximate orbits of Mercury and Venus are noted. To accomplish this I used the MOVE command. With the velocity set to light-speed and traveling at set times to reach the approximate orbit distances, I'm able to print the appropriate screen messages and then immediately execute the next MOVE command... no pause, no acceleration/deceleration (or at least what there is of it is nominal). Heh... it's long ride, hard to keep from not being boring... but it does demonstrate the point.
I'm supposing you could also use MOVE commands, back-to-back, changing your trajectory as desired with each successive command.
I'm supposing you could also use MOVE commands, back-to-back, changing your trajectory as desired with each successive command.
- LordFerret
- Posts: 737
- Joined: 24.08.2006
- Age: 68
- With us: 18 years 2 months
- Location: NJ USA
Thinking back on this, I've improperly defined my use of the command - as far as displaying messages goes. Sorry.
A more accurate example would be (approximate durations) -
Notice the 2nd move usage... it's purpose is to take the place of the wait command.
A more accurate example would be (approximate durations) -
Code: Select all
# moving away from sol
move { duration 185 velocity [0 0 -299792.458] }
# at the appropriate number of seconds out...
print { text "say something about mercury orbit here" duration 10 }
move { duration 10 velocity [0 0 -299792.458] }
# continue onward
move { duration 165 velocity [0 0 -299792.458] }
Notice the 2nd move usage... it's purpose is to take the place of the wait command.