Author Topic: Cutsecene camera movement  (Read 1676 times)

0 Members and 1 Guest are viewing this topic.

Cutsecene camera movement
Hi,

My questions is about how to get the camera to zoom in or out, or more specifically to get the effect of the camera rushing away from or to a particular object kinda like in the re imagened Battlestar Galactica series. I think this effect looks cool and adds action to a scene and i would like to re-create that im my cutscenes, but i don't seem to be able achieve this so any help on this would be great!.

Thanks.

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: Cutsecene camera movement
IIRC you need to make the camera face the target you want to aproach, then change the position of the camera to a closer spot next to the target (aceleration/deceleration effect can be achived with this same sexp).
el hombre vicio...

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Cutsecene camera movement
IIRC you need to make the camera face the target you want to aproach, then change the position of the camera to a closer spot next to the target (aceleration/deceleration effect can be achived with this same sexp).


Pretty much yes. I'll add that you can do this all in a single event. SEXPs run from top to bottom (unless you are using a special mod.tbl flag, iirc.) So, create your event something like this.

Code: [Select]
EVENT
 *When
   *Whatever trigger
   *Set-camera-pos
       *X
       *Y
       *Z
   *Set-camera-facing
       *X
       *Y
       *Z
   *Set-camera-pos
       *X
       *Y
       *Z
       *Time it takes to go from first pos to second pos (milliseconds)
       *Time to spend accelerating (milliseconds)
       *Time to spend decelerating (milliseconds)

Additionally, you may want to use set-camera-facing-object for this.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Cutsecene camera movement
SEXPs run from top to bottom (unless you are using a special mod.tbl flag, iirc.)

If you use that mod.tbl flag ( $Loop SEXPs Then Arguments:   YES   ) SEXPs still run from top to bottom, what changes is their looping behaviour

When-argument
-do 1
-do 2

by default does (do1, do1, do1.....do2, do2, do2) with the flag it becomes (do1, do2, do1, do2.....)

I suspect you knew that, but for those who didn't it's useful to know. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Cutsecene camera movement
Oh yeah. I had forgotten the specifics of that.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

  
Re: Cutsecene camera movement
Thanks for the replies.... @mjn.mixael that's the effect i wanted, cheers!!