Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


How do video game cameras work?
darkely Offline
Posting Freak

Posts: 984
Threads: 87
Joined: Dec 2011
Reputation: 10
#1
How do video game cameras work?

How do video game cameras work? what I mean is the view point. Like in Gears of War the camerea is behind the player the whole time.

09-06-2012, 03:29 AM
Find
Ghieri Offline
Posting Freak

Posts: 2,374
Threads: 8
Joined: May 2012
Reputation: 60
#2
RE: How do video game cameras work?

I don't know about the "under the hood" rendering stuff but there is an actual camera entity that is attached to the player pawn(Main character), who's relative position and rotation can be set via scripting.

This camera entity is local to that specific pawn, and decides everything that is drawn on that player's screen.

[Image: tumblr_n6m5lsQThQ1qc99nxo1_250.gif]
(This post was last modified: 09-06-2012, 03:47 AM by Ghieri.)
09-06-2012, 03:46 AM
Find
darkely Offline
Posting Freak

Posts: 984
Threads: 87
Joined: Dec 2011
Reputation: 10
#3
RE: How do video game cameras work?

If the player goes off the map (like lets say in Amnesia there was an area where the player could get off the map accidentally) would camera be able to follow or it would the camera just glitch (because it cant find you)?

09-06-2012, 04:01 AM
Find
Ghieri Offline
Posting Freak

Posts: 2,374
Threads: 8
Joined: May 2012
Reputation: 60
#4
RE: How do video game cameras work?

I don't know about Amnesia, but in Unreal the camera is always attached to the pawn. Unless that pawn dies(through fall damage, weapon damage, or killz damage(Falling out of the map)), in which case the camera goes into spectator mode unless told otherwise.(Either respawn or pre-scripted special behavior.)

[Image: tumblr_n6m5lsQThQ1qc99nxo1_250.gif]
09-06-2012, 04:03 AM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#5
RE: How do video game cameras work?

(09-06-2012, 04:01 AM)darkely Wrote: If the player goes off the map (like lets say in Amnesia there was an area where the player could get off the map accidentally) would camera be able to follow or it would the camera just glitch (because it cant find you)?
In Amnesia's case, there is no "player", just an invisible cylinder with 1 hand that can hold a lantern. There is no possibility of the camera "detaching" from the player. You could use a few script functions to distort the angle and field of view, but it is still technically part of the player.

I rate it 3 memes.
09-06-2012, 04:04 AM
Find
darkely Offline
Posting Freak

Posts: 984
Threads: 87
Joined: Dec 2011
Reputation: 10
#6
RE: How do video game cameras work?

So pretty much in Amnesias case you technically are the camera. Well I am more interested in third person cameras like in Dead Space...

Image: http://i.imgur.com/JP7oI.jpg

The camera can spin around the player (all the way) however the camera when looking forward is always slightly to the right of the player. Is this to give the player room to see what is going on or what?

09-06-2012, 04:09 AM
Find
Ghieri Offline
Posting Freak

Posts: 2,374
Threads: 8
Joined: May 2012
Reputation: 60
#7
RE: How do video game cameras work?

I'd say the camera is angled in a way that gives you a clear shot at enemies.

It's also pretty engine specific. While I am pretty sure most engines use some sort of Camera entity, how they handle it may be completely different.

I don't know anything about HPL though. If that's what you are looking for, I'm afraid I cannot provide tech assistance.

[Image: tumblr_n6m5lsQThQ1qc99nxo1_250.gif]
09-06-2012, 04:15 AM
Find
darkely Offline
Posting Freak

Posts: 984
Threads: 87
Joined: Dec 2011
Reputation: 10
#8
RE: How do video game cameras work?

I'm not so much looking for tech. help but just something I notice in games and figured I would ask Tongue - thats why I put it in the off-topic section.

09-06-2012, 04:24 AM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#9
RE: How do video game cameras work?

(09-06-2012, 04:24 AM)darkely Wrote: I'm not so much looking for tech. help but just something I notice in games and figured I would ask Tongue - thats why I put it in the off-topic section.
Off-Topic = I see what you did there (signature)

Spoiler below!

Bulletstorm


On-Topic = I have no knowledge on how the camera in Dead Space works, but I also noticed that it works the same way in Resident Evil 5. They use the same engine.

I'm guessing it is scripted in the engine to work that way.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
09-06-2012, 08:32 AM
Website Find
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#10
RE: How do video game cameras work?

If I remember correctly, the now typical "over the shoulder" third person view was popularized after it's use in Resident Evil 4.

[Image: Tv0YgQb.gif]
Image by BandyGrass
09-06-2012, 08:37 AM
Find




Users browsing this thread: 1 Guest(s)