Portal file

Discussion in 'Mapping Questions & Discussion' started by Grim Tuesday, Apr 25, 2010.

  1. Grim Tuesday

    aa Grim Tuesday

    Messages:
    1,257
    Positive Ratings:
    371
    What is it, and what do I use it for? Thanks!
     
  2. megawac

    megawac L4: Comfortable Member

    Messages:
    180
    Positive Ratings:
    29
    Portal file is what your visleafs look like and basically how the engine will render your map from any given point. Portal file is generated at the end of vbsp and is used in the vvis process which does the visibility optimization.
     
  3. Grim Tuesday

    aa Grim Tuesday

    Messages:
    1,257
    Positive Ratings:
    371
    So therefore I dont need to use this method for viewing visleafs?
     
  4. megawac

    megawac L4: Comfortable Member

    Messages:
    180
    Positive Ratings:
    29
    No but there are some advantages to doing it that way as you can see everything the engine is rendering and what your fps is.
     
  5. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,568
    You can load the portal file prior to testing your map ingame to check your visleaf formations directly from Hammer. The portal file will display the visleafs and you can then determine whether there are too many, whether some are too big, small or efficiently shaped. Allowing you to determine whether or not some brushes need func_detailing or whether some additional hint brushes may be required to cut existing leafs in order to resolve any potential issues that the aforementioned situations could cause. All before you even run HL2.exe and several debugging console commands.
     
    Last edited: Apr 25, 2010