Just a Quick Question Regarding Cameras.

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
willinator
Major
Major
Posts: 517
Joined: Sun Mar 13, 2011 3:11 pm
Projects :: [Coming of the Sentinels]
Games I'm Playing :: SWBF2 Minecraft Halo
xbox live or psn: PC pwns all!
Location: The rings of Saturn...

Just a Quick Question Regarding Cameras.

Post by willinator »

Is it possible to have a fixed camera view for an entire map? What I mean is, can you have your unit running around while the camera view remains in the same location, rather than following the unit like it usually does?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Just a Quick Question Regarding Cameras.

Post by Maveritchell »

No, camera positions are relative locations and not absolute locations in the world, as far as I know. An easy workaround would be to force your unit into a turret when it spawns, but then of course you lose control of the unit (you still have control of the turret, of course, but none of the moving around of the unit). Whether this is a viable workaround or not all depends on what you're trying to do.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Just a Quick Question Regarding Cameras.

Post by Marth8880 »

Well, the debugger has a console command called SnapCamera, but I'm not entirely sure what it does.
User avatar
willinator
Major
Major
Posts: 517
Joined: Sun Mar 13, 2011 3:11 pm
Projects :: [Coming of the Sentinels]
Games I'm Playing :: SWBF2 Minecraft Halo
xbox live or psn: PC pwns all!
Location: The rings of Saturn...

Re: Just a Quick Question Regarding Cameras.

Post by willinator »

Maveritchell wrote:No, camera positions are relative locations and not absolute locations in the world, as far as I know.
Okay, that makes sense. However, I notice that you used the term that it is relavent to an object's location. Is it then possible to have the camera relative to not the unit, but a different object? Then have that object remain stationary, while you control the unit?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Just a Quick Question Regarding Cameras.

Post by Maveritchell »

The camera is always relative to whatever the player is controlling.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Just a Quick Question Regarding Cameras.

Post by [RDH]Zerted »

willinator wrote:have your unit running around while the camera view remains in the same location
I'm fairly certain you can do that if you mess with free camera. I can't test it right now, so I can't give you the steps. I also assume there's a function that lets you attach the view to a non-controlled objet since galactic conquest does it. However, it's method might only work with shell maps.
User avatar
willinator
Major
Major
Posts: 517
Joined: Sun Mar 13, 2011 3:11 pm
Projects :: [Coming of the Sentinels]
Games I'm Playing :: SWBF2 Minecraft Halo
xbox live or psn: PC pwns all!
Location: The rings of Saturn...

Re: Just a Quick Question Regarding Cameras.

Post by willinator »

[RDH]Zerted wrote:I'm fairly certain you can do that if you mess with free camera. I can't test it right now, so I can't give you the steps. I also assume there's a function that lets you attach the view to a non-controlled object since galactic conquest does it. However, it's method might only work with shell maps.
I had a feeling if it was possible it would have something to do with free camera, so I was a secretly hoping you would post in this thread, as you are the god of all knowledge related to this kind of stuff. I hadn't thought of the GC thing though, we'll have to see if it works.
Post Reply