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 switch smoothly between 2 cameras of 1 character

Hi guys !

I'm a 2 weeks beginner on UE my problem is probably not a big deal but I'm stuck ! I want my camera to smoothly slide backward when my character ("Grenat_characterBP") get outside of a Trigger volume. I duplicated the default camera of my character and pushed it backward, so I have to cameras : cameraClose (default one) and cameraFar I tried 2 ways that actually work, but I can't find a way to smooth the transition...

I tried a Level BP Version : alt text

And a Character BP version : alt text

So 2 questions :

Which one is "better" (or maybe none of them is T.T) ?

How can I smooth the movement between the two cameras ? "I tried with Set view target with blend but I can't plug my character cameras in the target socket and I don't know why !!! I cried a lot on that... alt text

Thank you mighty UE community :-)

Guillaume

Product Version: UE 4.13 Preview
Tags:
level_bp.png (251.1 kB)
character_bp.png (147.7 kB)
fail.png (214.2 kB)
more ▼

asked Aug 11 '16 at 05:51 PM in Blueprint Scripting

avatar image

GGUERILLOT
1 1 2 2

avatar image Adam Davis STAFF Aug 11 '16 at 05:54 PM

HI GGUERILLOT,

Instead of using two cameras, you could use one and lerp between the two relative locations. This would allow you to smooth the movement as necessary and control the camera location without needing additional cameras.

avatar image GGUERILLOT Aug 12 '16 at 07:29 AM

Thanks for the advice ! I'm gonna try this way, I suppose I will need a "Timeline" node and "set location and rotation" as well.

Is it better to do it in character BP or level BP (or whatever) ?

avatar image Adam Davis STAFF Aug 12 '16 at 01:09 PM

Both can work, though the level BP would be a better option for cameras placed in the level as opposed to cameras that will follow the player.

avatar image GGUERILLOT Aug 20 '16 at 06:54 AM

Hi ! I tried to move my camera with the "move component to" node, still triggered by an overlay event as so : ![alt text][1] [1]: /storage/temp/103700-movecomptofail.png

But it is not working... The overlap event nicely trigger the sound but it is not working with the character's camera movement :-/ I'm wondering why...

movecomptofail.png (170.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You could also try using a single camera and moving it between the two positions. I do this for aim-down-sights by controlling the length of the boom (SpringArmComponent). It's simple and it works really well. Note that "Position" in the Timeline is a single float track going from 1 to 0 over 0.25s. For a more complex motion, you could use a vector track instead of the float track. It's more complicated but still the simplest solution IMO. Also, CameraTrackLength is determined by subtracting AimingViewArmLength from the default boom length.

CameraTrack

cameratrack.png (81.5 kB)
more ▼

answered Nov 25 '16 at 10:41 PM

avatar image

Jin_VE
4.4k 32 77 42

avatar image Jin_VE Nov 25 '16 at 11:45 PM

Also, CameraTrackLength is determined by subtracting AimingViewArmLength from the boom length at the default camera distance.

(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