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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Where is the default camera component?

This is probably a basic lack of understanding, but maybe someone can help me:

When I create a new default level, with a spectator pawn, where is the camera component? Is it included by default in the pawn? Or in the CameraManger? The PlayerController?

I've been creating blueprints based on each of these objects, and looking around the Scene Outliner with the game paused, but for the life of me I can't figure out where the camera component is created by default.

Product Version: Not Selected
Tags:
more ▼

asked Apr 08 '14 at 01:08 AM in Using UE4

avatar image

natemartinsf
48 9 14 15

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

5 answers: sort voted first

As far as I understand it: In the default case the PlayerController uses the Location/Rotation of the Pawn as default Camera Target (that means the location/rotation of the Camera). There are multiple places that can be used to override the camera behavior (see chain of responsibility in the link)

It might be helpful to read the Camera documentation at:

https://docs.unrealengine.com/latest/INT/Programming/Gameplay/Framework/Camera/index.html

more ▼

answered Apr 08 '14 at 08:10 AM

avatar image

DarthB
715 32 26 55

avatar image natemartinsf May 22 '14 at 05:08 PM

Thank you, this is more clear now. I was used to the unity way of thinking, where the "camera component" is the actual object doing the rendering. Instead, the camera component is just one of many ways to get the appropriate POV/location/rotation information to the rendered.

Thank you!

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

There does not have to be a CameraComponent anywhere by default. The PlayerController creates a PlayerCameraManager which is all that is needed. However, most projects want control over camera parameters and that is done via a CameraComponent. The PlayerCameraManager's default parameters are overridden by a CameraComponent via the documented responsibility chain. In the samples, e.g. "Top Down", the CameraComponent can be found inside the character's Blueprint under the Components tab, possibly nested under a SpringArmComponent.

more ▼

answered May 10 '14 at 09:42 PM

avatar image

darrinm
56 4 5 12

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

the_camera_was_done with coding not kismet if i'm understanding_correct and you could most probably_find the code by your pawn class;

more ▼

answered Apr 08 '14 at 01:38 AM

avatar image

SoVeryNiceToYou
6 6 7 14

avatar image natemartinsf Apr 08 '14 at 02:19 AM

Looking through the pawn classes in the source, I don't see any spot that adds a camera actor, or a camera component.

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

I'm still new to UE4 so I may be misunderstanding the question but from my understanding this looks like what you're looking for. If so, then right click where you want, go to place actor, and camera.

alt text

ans.jpg (69.7 kB)
more ▼

answered Apr 08 '14 at 01:36 AM

avatar image

Saudademaru
18 5 6 9

avatar image natemartinsf Apr 08 '14 at 02:08 AM

Thanks for responding, but that's not quite what I was asking.

When you create a new project, there already is a camera somewhere in the level; this is evident the scene gets rendered when you press play.

I am wondering which one of the default actors is creating the camera component.

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

The default spectator mode (which is not really spectator as you can turn on gravity with LCtrl) is default behavior of base classes. The camera is managed by CameraManager, but you don't need to override it in order to change camera blueprint got locks for that

more ▼

answered Apr 08 '14 at 01:44 AM

avatar image

Shadowriver
36.6k 930 169 1111

avatar image natemartinsf Apr 08 '14 at 02:20 AM

Unless I'm missing it, I don't see anywhere in PlayerCameraManager.c that creates either a camera component or a camera actor.

avatar image clyburnw May 25 '14 at 07:57 PM

Yeah, I'm confused by this as well. As an experiment, if I create Pawn, and PlayerController, Blueprints and do not add any camera components, why is the scene still rendered at all? Where's the camera?

(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