Camera Angle Rotation

Announcements, support questions, and discussion for the Dialogue System.
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

Camera Angle Rotation

Post by aaajiao »

I'm having a problem with the camera angle.

Here's the angle I've set up, with the Rotation
Screen Shot 2020-09-02 at 6.30.22 PM.png
Screen Shot 2020-09-02 at 6.30.22 PM.png (896.89 KiB) Viewed 1179 times
When I use the
Camera(NPC,protester-cursor-emoji,3);
Screen Shot 2020-09-02 at 6.31.48 PM.png
Screen Shot 2020-09-02 at 6.31.48 PM.png (152.23 KiB) Viewed 1179 times
All this leads to, I can't see the object because Rotation is the position of my departure cursor, I read the documentation, this shouldn't be happening, the Rotation of the cursor should be replaced by the camera angle!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Camera Angle Rotation

Post by Tony Li »

Hi,

Is NPC a GameObject in the scene or a child of the camera angles GameObject that is assigned to the Dialogue Manager's Camera & Cutscene Settings > Camera Angles?

What is protester-cursor-emoji?
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

Re: Camera Angle Rotation

Post by aaajiao »

NPC is Camera Angles
protester-cursor-emoji is GameObject in the scene
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

Re: Camera Angle Rotation

Post by aaajiao »

a short video to explain
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Camera Angle Rotation

Post by Tony Li »

If NPC is a child of your Camera Angles, then it is relative to Camera Angles.

Camera(NPC,protester-cursor-emoji,3);

will move the camera to a position that matches the position of protestor-cursor-emoji but is rotated 5.67 degrees around the Y-axis and offset in position by (-10.84, 2.071953, 46.55806).

(See the example picture here.)
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

Re: Camera Angle Rotation

Post by aaajiao »

As shown in the video above, the final shot is transient because it contains 5.67 degrees around the Y-axis. Is there any good way can get the Camera Angle without getting the Rotation position of the Current camera?
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Camera Angle Rotation

Post by Tony Li »

Let's take a step back. What do you want to accomplish?
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

Re: Camera Angle Rotation

Post by aaajiao »

I want to use the camera to see specific objects at specific locations in the scene in dialogue.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Camera Angle Rotation

Post by Tony Li »

Move the NPC GameObject out of your Camera Angles prefab. Put it in the scene as an empty GameObject. (You can keep the Camera component on it to check how it looks while designing, but disable the Camera component before playing.) Make sure it's exactly where you want the camera to end up, including position and rotation. Then use this sequencer command:

Code: Select all

Camera(NPC,,3)
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

Re: Camera Angle Rotation

Post by aaajiao »

Thank you for your patience, but as just now, the final position with Rotation position of the Current camera.
WechatIMG1583.jpeg
WechatIMG1583.jpeg (380.06 KiB) Viewed 1167 times
Screen Shot 2020-09-02 at 9.03.07 PM.png
Screen Shot 2020-09-02 at 9.03.07 PM.png (395.81 KiB) Viewed 1167 times
after Camera(NPC-emoji,,3)
Screen Shot 2020-09-02 at 9.03.16 PM.png
Screen Shot 2020-09-02 at 9.03.16 PM.png (348.04 KiB) Viewed 1167 times
Rotation still there.
Post Reply