wiki.sine.space | sinespace

Difference between revisions of "Gestures/Animated Cameras"

From wiki.sine.space
Jump to: navigation, search
(Option 1 - Avatar Effect Camera Script)
(Option 1 - Avatar Effect Camera Script)
 
(12 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
==Option 1 - Avatar Effect Camera Script==
 
==Option 1 - Avatar Effect Camera Script==
  
You can set a start and end position for the camera using the Avatar Effect Camera script.
+
This component is accessed via the Unity Component menu, then select Avatar Effects and then "Camera Follow Character".
  
 +
[[File:Gesture_-_camera_character_script_default.jpg]]
  
[[File:Gesture_-_camera_character_script_default.jpg|thumb|450px]]
+
'''Start position and Duration'''
  
 +
You can set a start position and duration for the camera here.
  
'''Rail'''  
+
'''Rails Type'''  
  
Type - linear will move the camera straight from start point to end point. Rotation will move around the avatar.
+
Linear will move the camera straight from start point to end point. Rotation will move around the avatar.
  
Interpolation - PENDING
+
'''Interpolation'''
 +
 
 +
Choose either Linear or Smooth.
  
 
'''Offsets'''
 
'''Offsets'''
Line 38: Line 42:
 
==Option 2 - Avatar Effect Camera Movement Script==
 
==Option 2 - Avatar Effect Camera Movement Script==
  
You can apply animation from an fbx file to the camera using the Avatar Effect Camera Movement Script.
+
This component is accessed via the Unity Component menu, then select Avatar Effects and then "Camera Follow Path".
  
 +
You can apply animation from an fbx file to the camera using the Avatar Effect Camera Movement Script.
  
 
[[File:Gesture_camera_path_script.jpg]]
 
[[File:Gesture_camera_path_script.jpg]]
 
  
 
'''Legacy Animation Clip'''
 
'''Legacy Animation Clip'''
Line 52: Line 56:
 
The name of the camera in your FBX file
 
The name of the camera in your FBX file
  
'''Target name'''  
+
'''Focus name'''  
  
 
The name of the camera target in your FBX file
 
The name of the camera target in your FBX file
Line 68: Line 72:
 
'''Offset / Ignore rotation'''
 
'''Offset / Ignore rotation'''
  
Use these if you want to make universaal adjustments the animation in the editor.
+
Use these if you want to make universal adjustments to the animation in the editor.
  
 
'''Start time / End time'''
 
'''Start time / End time'''
Line 90: Line 94:
 
Before you import your fbx file please copy the field of view information into the Camera object's X scale track.
 
Before you import your fbx file please copy the field of view information into the Camera object's X scale track.
  
The Legacy Animation rig Space uses to apply the animation to the user's camera inworld does not pick the data directly from the Field of View track in your animation editor.
+
The Legacy Animation rig that sinespace uses to apply the animation to the user's camera inworld, does not pick the data directly from the Field of View track in your animation editor.
  
  

Latest revision as of 17:45, 17 January 2019

You can animate the camera in concert with the character animations in your gesture.

There are two options;

  • Avatar Effect Camera Script - create an animated path from a start and end point in Unity
  • Avatar Effect Camera Movement Script - import an animation for the camera from another application.

Option 1 - Avatar Effect Camera Script

This component is accessed via the Unity Component menu, then select Avatar Effects and then "Camera Follow Character".

Gesture - camera character script default.jpg

Start position and Duration

You can set a start position and duration for the camera here.

Rails Type

Linear will move the camera straight from start point to end point. Rotation will move around the avatar.

Interpolation

Choose either Linear or Smooth.

Offsets

The offsets allow you to place the camera in relation to the avatar. Y+ is up. Z+ is forward.

So; X0, Y1, Z2 will put the camera 1 meter above ground, 2 meters in front of the avatar.

Tracking Options

The tracking options will animate the camera in line with the selected bone (Tracking target).

Tracking Target

Start / End Avatar - For two person gestures you can move the camera target from one avatar to the other.

Start - End Target - You can move the camera's focus from one bone to another over the duration of the gesture.

Option 2 - Avatar Effect Camera Movement Script

This component is accessed via the Unity Component menu, then select Avatar Effects and then "Camera Follow Path".

You can apply animation from an fbx file to the camera using the Avatar Effect Camera Movement Script.

Gesture camera path script.jpg

Legacy Animation Clip

Drag the fbx file containing your animation into the Legact Animation Clip field. See below for FBX settings.

Child name

The name of the camera in your FBX file

Focus name

The name of the camera target in your FBX file

Tweak Axis

Unity's orientation is;

Y+ = Up

Z+ = Forward

If your files export from your animation editor with a different orientation you can align to achieve your desired orientation using the Tweak Axis fields.

Offset / Ignore rotation

Use these if you want to make universal adjustments to the animation in the editor.

Start time / End time

Set the end time to the same as your animation file.

FBX settings

Add keyframes at start and end

Before you import your fbx file it needs to contain two animated objects; a Camera and Camera Interest.

Please ensure that for both objects there is a keyframe at the start and end of the track;


A screenshot from Motion Builder


Copy Field of View data to Camera Scale X

Before you import your fbx file please copy the field of view information into the Camera object's X scale track.

The Legacy Animation rig that sinespace uses to apply the animation to the user's camera inworld, does not pick the data directly from the Field of View track in your animation editor.


A screenshot from Motion Builder


Import settings

When you import your FBX file, open the Rig tab in the Inspector.

Set the Animation Type to Legacy Animation Clip.

Set Generation to Store in Root (new)


Camera fbx set to legacy.jpg