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"

When using 2 camera modes, how do I reset the angle correctly?

Hey guys, I'm working on a blueprint project, recreating an oldschool N64 game, Banjo-Tooie. Handy to know, I put everything on gamepad controls, no keyboard here. In this gameplay, there are 2 camera modes possible: Third Person (default) and First Person. I started off with making 2 cameras and by pressing a button, you could swap between them. The problem is that the right joystick, who controls the angle of the camera, applies to both cameras, even when I put one of the cameras active/disable the other. I found no way to differentiate the controls in a separate way, so to overcome this, I came to the conclusion that I could reset the position and angle of the camera when swapping between TP and FP mode. This is where it messes up totally. I can't seem to find a way to reset the pitch properly. When you start with a over the shoulder view, go to FP mode, move up or down, go back to TP, THAT is the moment where the TP camera takes over the angle from the FP camera, so you don't reset back to the correct over the shoulder view. I looked up tons of tutorials, information, asked friends who worked with unreal engine, tried a different approach (like just using 1 camera, and change the position of that sole camera, same issue came back) but all in vein. So I'm asking you, guys, please, does anyone have some major expertise with multiple cameras? Thank you very much!

Product Version: UE 4.11
Tags:
more ▼

asked Jun 05 '16 at 11:06 AM in Blueprint Scripting

avatar image

Ssergit
1 1

avatar image Ssergit Jun 07 '16 at 06:43 PM

Hello again, I'm happy to announce that I didn't solve this specific question, but I did found an alternative to make my camera work the way I want. I used my project where I only had 1 camera and where the latter just changed between 2 relative positions thanks to the Move Component To node. This did not solve the pitch reset issue, but I just deleted the Add Controller Pitch Input node and basically set the rotation of the camera manually, also done with its relative rotation. Cheers!

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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