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"

Top down camera setup with crosshair

Hey there!

I would like to achieve this top-down camera setup with a crosshair, like exactly on this video: https://www.youtube.com/watch?v=Suj7rIgijoQ

I can't figure out how to make it in the third person blueprint.

Thanks for any help!

Product Version: UE 4.21
Tags:
more ▼

asked Jan 31 '19 at 04:59 PM in Blueprint Scripting

avatar image

emotivarts
3 1 5

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

6 answers: sort voted first

ah... first thing to do is... just go to the spring arm component and turn off inherit pitch / yaw / roll

see if this fixes everything :)

more ▼

answered Feb 01 '19 at 10:23 AM

avatar image

aNorthStar
923 7 17 19

avatar image emotivarts Feb 01 '19 at 12:26 PM

No luck, now it look like this: https://www.youtube.com/watch?v=MvwLRCp85Ao

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

ok...

  • on your Spring Arm Component: keep "Inherit pitch / yaw / roll" turned off

  • on your Camera Component: turn off '"Use Pawn Control Rotation"

  • on your player pawn/character BP: set the spring arm angle to the correct relative angle to give you the look you'd like

  • on your Spring Arm Component: set "Camera Lag" to a suitable value

more ▼

answered Feb 02 '19 at 06:58 AM

avatar image

aNorthStar
923 7 17 19

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

I think I see the other issue now... the beginning of your spring arm was moved from relative location 0,0,0... so just just reset the relative location to 0,0,0.... those numbers were offsetting the pivot of your spring arm (and, by extension, the camera) from your skeletal mesh.

This may give rise to another visual error: as far as I can tell, now your skeletal mesh and crosshair will now be in the same place... which may be undesirable... so you'll need to offset your crosshair in BP to look like your sample. It looks like, in your video sample, the skeletal mesh seems to stay at the center while the crosshair is offset.

more ▼

answered Feb 03 '19 at 03:46 AM

avatar image

aNorthStar
923 7 17 19

avatar image emotivarts Feb 03 '19 at 06:26 PM

Wow cool, the camera is just fine now! How can I offset the crosshair in BP exactly? I think thats the only think left for success! Thanks a lot!

avatar image aNorthStar Feb 04 '19 at 01:16 AM

good news!

I'm not quite sure, without looking at your BP in detail... but it may be the vector variable "Max Range" that is setting the crosshair offset length and direction. I'd suggest playing around with different values to see how it works exactly.

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

welcome @emotivarts ... this is fairly straightforward with a bit of UE4's built in functionality... for this I'd add a spring arm component with a child camera component to your player character or player pawn.

To smooth the movement a touch of rotation and movement lag on the spring arm component settings would be nice

here are a couple of tutorials that might also be useful..

https://www.youtube.com/watch?v=1pmPb_TWG-8&list=PLZlv_N0_O1gb5sdygbSiEU7hb0eomNLdq https://www.youtube.com/watch?v=VtMwSduToZg

more ▼

answered Feb 01 '19 at 03:43 AM

avatar image

aNorthStar
923 7 17 19

avatar image emotivarts Feb 01 '19 at 09:50 AM

Hi there!

Thanks for your quick reply.

I am working from a TPS Char template from the beginning and somehow I cannot achieve this even from a blank camera setting.

This is how my camera behaving right now and no idea why!

https://youtu.be/-87x2erwOMg

alt text:

I need this camera to be converted to the fix top down like shown in the video In the TPS blueprint, there is a "shoot to center" set up.

alt text

Thank for your help, this is really annoying :C

Andrew

01.png (271.9 kB)
02.png (202.3 kB)
03.png (550.8 kB)
04.png (641.2 kB)
(comments are locked)
10|2000 characters needed characters left

Yeah I am now halfway to joy :))) Camera is ok, now my only problem is I can't move my crosshair independently from the camera.

Video: https://youtu.be/b6OCXfBAtRo

more ▼

answered Feb 02 '19 at 11:59 AM

avatar image

emotivarts
3 1 5

avatar image aNorthStar Feb 02 '19 at 01:16 PM

good news.. progress! without seeing your setup, I'm not sure, but it looks like the spring arm and camera are children of the the crosshair at the moment... depending on what you are going for it may be best to child the spring arm/camera to the root, to which the skeletal mesh should be a child of too. Or you could child the spring arm/camera between the local position of the skeletal mesh and crosshair and to this... there are a variety of approaches, depending on the look/feel/gameplay you are aiming for :)

avatar image emotivarts Feb 02 '19 at 02:30 PM

I think it's beacuse the "shoot projectile to center" bp is referring to it, I added a screenshot of that bp earlier, check if you see something. Thanks for your time, I really appreciate it:)

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

I figured it out finally! I just changed the projectile linetracebychannel to get hit result under cursor and now the controller is also works fine. Thanks for you time and help! :)

more ▼

answered Feb 04 '19 at 10:54 AM

avatar image

emotivarts
3 1 5

(comments are locked)
10|2000 characters needed characters left
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