Can someone explain Portals and sectors

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
jojo3450
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 317
Joined: Fri Jul 18, 2014 12:29 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsBattlefront2
xbox live or psn: No gamertag set

Can someone explain Portals and sectors

Post by jojo3450 »

Can someone explain Portals and Sectors? I read the documentation but still have no clue, they sound useful but I don't know what they are?
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: Can someone explain Portals and sectors

Post by Marth8880 »

They're for level efficiency. Basically, when you're in one sector, the props in particular other sectors won't be rendered. Obviously it's a bit more complicated than that, but yeah.
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: Can someone explain Portals and sectors

Post by [RDH]Zerted »

Say you have two rooms connected by a door. Each room can be a sector and the door becomes the portal. When the door/portal is closed, the game will understand that it's impossible for you to see into the other room so it no longer has to do any rendering calculations for that room. When the door/portal is open/active, you may be able to see from one room to the next (from one sector into another sector), so SWBF2 has to spend the processing time rendering the graphics for both rooms instead of just one.

If don't use sections and portals, SWBF2 doesn't know you can't see into the other room when the door is closed, so it always takes the time to render both rooms.
User avatar
Ginev
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Thu Apr 02, 2009 7:02 am
Projects :: Remaking FR Battlefront 3 Tatooine map.
Games I'm Playing :: nothing for now
xbox live or psn: No gamertag set
Location: Bulgaria

Re: Can someone explain Portals and sectors

Post by Ginev »

So for example if i have a very very big map it could cause performance problems so if i add such things we can make the map to work more smoothly.
Thats very good idea.It will be good to get some tutorial :D
User avatar
Locutus
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Fri Jun 04, 2010 10:08 am
Projects :: Stargate Battlefront Pegasus
Location: Germany
Contact:

Re: Can someone explain Portals and sectors

Post by Locutus »

Ginev wrote:It will be good to get some tutorial :D
Those come shipped with the ModTools and can be found in the documentation folder;)
(Or here...)
Post Reply