x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to set view blend between two cameras within the character blueprint?

Hey guys I've been having lots of trouble trying to figure out a way to blend a first-person to third-person transition within blueprint. After player input, the blueprint runs through a flip-flop and then uses the Set View Target with Blend function. Flip-flop B (the return to first-person view) works perfectly fine and sets the new target to self. However flip-flop A sets the new target to a child actor that contains a camera (this is where the problem is). At the moment when I press "V" to change perspective, it goes to the center of the player character instead of the third-person camera. Any help would be greatly appreciated :)

Product Version: Not Selected
Tags:
more ▼

asked Aug 25 '18 at 07:11 PM in Blueprint Scripting

avatar image

ArcaneLemon
6 1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

[...]flip-flop A sets the new target to a child actor that contains a camera (this is where the problem is)

Blending to Child Actor Component's Actor will send the camera to that actor's component's location. Is the child actor component offset at all? Is the actor's camera offset? How many cameras does the child actor have, more than one?

This works well:

alt text

It works well until you interrupt the interpolation, that is. You will get much more control over the movement if you either:

  • have 2 cameras and interpolate between them manually

  • move 1 camera between 2 preset locations

vInterp To or Timeline + Lerp combo will both work nicely here.


tl;dr: Set View Target with Blend is evil.

capture.png (136.4 kB)
more ▼

answered Aug 25 '18 at 11:26 PM

avatar image

Everynone
15.2k 77 25 62

avatar image Limewax Sep 11 '18 at 11:49 PM

I'm having the same problems as OP and your solution did not work for me. As you've described, "Blending to Child Actor Component's Actor will send the camera to that actor's component's location" is exactly the common issue. I've been looking for a solution for this for the last few hours and it seems to be consistent, everyone struggles with this. Camera still goes to the belt/body of the player.

avatar image Everynone Sep 12 '18 at 06:15 AM

I disagree. I've used this method successfully in more than one project. Admittedly, I did not use it with a character, but with a regular actor. I might have a look later to see what's goiong on there.

What are you using it for? The view blend is pretty simplistic, in many cases you're better off with manual interpolation between camera locations, or even better, a timeline lerp.

avatar image Everynone Sep 12 '18 at 03:26 PM

@Limewax: Tested it, and it works absolutely fine with a character.

Camera still goes to the belt/body of the player.

Can you show how the camera is set up on the player?

avatar image Limewax Sep 12 '18 at 07:08 PM

alt text Edit: Discovered the culprit for my problem was that I had some conflicting stuff set up in the level blueprint. Removed that garbage and used what OP mentioned, everything worked properly immediately.

Not entirely sure if this is what you want, but here is how I have it set up.

camsetup.jpg (197.8 kB)
avatar image Everynone Sep 12 '18 at 09:15 PM

So is it working now?

I do not understand your camera setup - the secondary camera should be in the child actor.

If you want to alternate between 2 cameras. Have one in the character, and the second one in the child actor. There's no need for 2 child actors. Unless you need more than 2 cameras, that is.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question