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
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Portals and Sectors?

Post by Blade »

I'm trying to figure out what exactly Portals and Sectors do in the game... I read the FAQ about it, but it didn't really say anything about them, just how to get them to work.

Basically, what are Portals and Sectors, what do the do, how do they affect the game? etc.

Thanks
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Portals and Sectors?

Post by Fiodis »

I'll be following this closely because I just realized, with a shock, that I know nothing about them either.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Portals and Sectors?

Post by ryukaji »

I thought they were for maps like tantive so that not all the rooms are loaded unless your in a certain sector so that you get good performance
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Portals and Sectors?

Post by Maveritchell »

From the documentation that comes with the modtools:
This is a relatively simple visibility system that can cut down rendering time significantly on levels with heavy occlusion (indoor levels mainly). The system relies on breaking up the world into regions of visibility called Sectors and then linking them together through Portals. Sector A is visible from Sector B if and only if there is a path through visible portals leading from A to B. The real-time rendering book has a more in-depth explanation along with pretty pictures which can provide greater clarity.
We do not have documentation for every possible thing, but for those things we do have clear documentation on, it certainly can't hurt to give them a readthrough every once in a while.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Portals and Sectors?

Post by AceMastermind »

The real-time rendering book has a more in-depth explanation along with pretty pictures which can provide greater clarity.
http://www.amazon.com/Real-Time-Renderi ... merenderin

In SWBF2 the portal and sector data is saved to a pvs file in the world1 folder, pvs more than likely stands for Potentially Visible Set, a quick google search for potentially visible set reveals this:
http://en.wikipedia.org/wiki/Potentially_visible_set
http://www.tml.tkk.fi/Opinnot/Tik-111.5 ... Laakso.pdf
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Portals and Sectors?

Post by FragMe! »

I think I'll just stick to playing around to see how they react.
Hidden/Spoiler:
From the one document
Image
Actually I have played around with them, word of advice they don't work so well on outside maps :funny2:
Post Reply