Best practices: Camera movements
Description
The Prespective Digital Twin Software could be very useful to test your system in a virtual world. In some cases camera movement in your project is desirable. Think about marketing purposes or just for internal usage. When thinking out of the box, Prespective could also be used for camera movements. When you combine this with the Prespective rendering pack you are able to create good looking real-time movements in your project that could be used for multiple cases.
- 1 Description
- 2 Install guide
- 2.1 Prespective Digital Twin Software
- 2.1.1 Tip:
- 2.2 Optional: Prespective Rendering Pack
- 2.2.1 Tip:
- 2.1 Prespective Digital Twin Software
- 3 Getting started
- 3.1.1 Tip:
- 3.2 Static position
- 3.3 Attach to an object
- 3.4 Rotate around a specific point
- 3.5 Over spline with Prismatic-Joint
- 3.5.1 Tip:
Install guide
Prespective Digital Twin Software
You can download and install the Prespective Digital Twin Software from the Unity Asset Store.
https://assetstore.unity.com/packages/tools/utilities/prespective-digital-twin-software-161664
Tip:
Do you need help installing the Prespective Digital Twin Software please visit: Getting started - Installing Unity & Prespective
Optional: Prespective Rendering Pack
Download and install the Prespective Rendering Pack from the Unity Asset Store.
https://assetstore.unity.com/packages/2d/textures-materials/prespective-rendering-pack-158091
Tip:
Do you need help installing the Prespective Rendering pack please visit: Prespective Rendering Pack
Getting started
Tip:
Make sure you know the basics of Prespective such as using the: Motor components, splines, prismatic joints and wheel joints. to get the best results. Tutorials can be found at: Tutorials for Prespective 2020.1.58.3
Create a camera: Go to GameObject>Camera
There are several ways you can setup your Camera.
Static position
Attached to an object
Rotating around a specific point
Along Spline with Prismatic Joint
Static position
This is a camera with no movement which you can place in a static position.
Attach to an object
In the Hierarchy you can move your created camera into a moving object as a Child object.
When looking in play-mode the camera is attached to that moving object and should look like this:
Rotate around a specific point
First you have to create an Empty game object in the middle of the point you want to rotate around. Here you can add a Wheel-Joint and a Motor-Component on to rotate. After that place a camera into this object. It should look like this:
When entering Play-Mode you can start the motor component and the camera will rotate with it.
Over spline with Prismatic-Joint
For this setup you need to start creating a Spline where the camera has to move over. The next step is to create an Empty game object where you add a Wheel Joint and a Motor Component.
Align the Camera with the first point[1] of the spline. It should look like this:
Prespective Documentation