Using a camera for a conversation

Announcements, support questions, and discussion for the Dialogue System.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Using a camera for a conversation

Post by hrohibil »

Hey Toni

Going through the Cutscene tutorials. I cant seem to find how to use a specific camera for a specific conversation.
I don't want to put a camera inside the sequencer camera as I will use different cameras for different conversations.

I also tried with camera Transform, I get same result. The camera view just goes totally different place then where I have set either my camera or camera transform.

Please see this video capture below.
And yes I have setup all the Invector integration

User avatar
Tony Li
Posts: 22085
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using a camera for a conversation

Post by Tony Li »

Hi,

Do you just want to move the camera to a different position during the conversation? Or do you want to use an actual different camera, for example to use a camera with different post-processing effects such as a strong depth of field effect?

If you want to use a different camera, then at the beginning of your conversation use the SwitchCamera() sequencer command.

If you only want to move the camera, the Camera() command should work to move the Invector camera. If it's not working, then the two likely possibilities are:

1. Invector is keeping control of the camera. Make sure the integration is releasing control of the camera during conversations. To test this, try moving the camera manually in the Scene view during a conversation.

2. The camera position (e.g., position of CameraRoof that the camera will try to match) needs to be adjusted.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Using a camera for a conversation

Post by hrohibil »

Tony

The the SwitchCamera() sequencer command works perfectly, it instantly changes to my camera.

But due to performance I don't want to use this option on every conversation, so I would rather have the move camera transform working.

I recorded another video showing the use of a transform. The transform is for sure in the right place.
As for moving the camera, firs when i try to manully move the camera with the gizmos, nothing happends, but when i use the transform sliders from the transform component i can move the camera..

User avatar
Tony Li
Posts: 22085
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using a camera for a conversation

Post by Tony Li »

With the editor tint that's applied in play mode, I can't tell if play mode is paused or not while you're adjusting the transform by manually changing the field values. It's strange that you can't adjust the transform using the gizmos in the Scene view.

Please explain this:

"I don't want to put a camera inside the sequencer camera as I will use different cameras for different conversations."

Do you mean different camera positions? If not, why are you using different cameras for different conversations? You can assign a camera to the Sequencer Camera field, set its Depth to a higher value than the Invector camera, and then move it using Camera() commands in any conversation.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Using a camera for a conversation

Post by hrohibil »

Toni it was in play mode.

Yes I meant different cameras for different positions.

Maybe 3 cameras with 3 different post process.

Let me know if you need a screenshot or a video of something else?
User avatar
Tony Li
Posts: 22085
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using a camera for a conversation

Post by Tony Li »

Please clarify: 3 camera positions, or 3 differently-configured cameras with different post-process effects?
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Using a camera for a conversation

Post by hrohibil »

Like in 3 situations:


1:
In a shop I want a camera in specific place in the shop with a specific angle to it and with some specific post process effects.

2:
On top of the roof, again another angle and with some other post process effects.

3:...... You get the point..

But now as I know the Switchcamera works, I want to understand why the camera transform don't work? I know i wont be able to have different post process with transform cameras but i still want it to work as I will also have places where post process not needed..
User avatar
Tony Li
Posts: 22085
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using a camera for a conversation

Post by Tony Li »

Maybe Invector is preventing the camera from moving to the correct position. Double check your integration setup.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Using a camera for a conversation

Post by hrohibil »

Is there anything specific with the integration I should focus on?
Cause I already checked like twice according to the documentation.

Maybe worth mentioning that I am using the Invector Top Down controller. Though it would not make sence if that has any impact
User avatar
Tony Li
Posts: 22085
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using a camera for a conversation

Post by Tony Li »

Hi,

I'm not familiar with the top down controller, only the basic and shooter/melee third person ones that the integrations are written for.
Post Reply