Area portal on doors only one way [SOLVED]

Discussion in 'Mapping Questions & Discussion' started by ThirdEye, Jul 14, 2019.

  1. ThirdEye

    ThirdEye L1: Registered

    Messages:
    25
    Positive Ratings:
    1
    Hello,
    I have created a brush with func_areaportal and assigned the texture to the whole brush. The brush itself is the size of the door and aligned with the wall. The problem is that I can see the void from the inside of spawn, however once I get close to the door and it opens the problem isn't there anymore. (the areaportal is linked with the door and is closed by default). But from the outside it seems to work how it should.

    What do I need to do to fix the void issue, image examples below (i used r_drawothermodels 2 to show that it does hide the props behind it):

    20190714215125_1.jpg 20190714215133_1.jpg 20190714215140_1.jpg 20190714215143_1.jpg
     
  2. henke37

    aa henke37

    Messages:
    2,020
    Positive Ratings:
    484
    When an areaportal is closed (and there are none other open ones) so that two areas can't see each other, the engine will not draw the other area. That's the "area" part of the name,

    As such, you should only close areaportals when the player can't see into it. Such as when there is a door in the way. Your problem is that the specific door prop you use isn't suitable for hiding a closed areaportal.
     
  3. ThirdEye

    ThirdEye L1: Registered

    Messages:
    25
    Positive Ratings:
    1
    There are 3 doors on each side of the map for the spawns like in the last image. The area portal is tied to that door and is set to closed state as the door by default is closed.

    Valve maps have the area portal in the doorway and set to open at the start so I will see what that is about.
     
  4. FloofCollie

    aa FloofCollie asshole

    Messages:
    483
    Positive Ratings:
    380
    It looks like you're having the same problem I did yesterday. You need to make the Areaportal 1 unit wide and position it inside the sliding door prop. What's happening right now is that the Areaportal is hiding the area behind it, including the door. It needs to be inside the door so that the door hides the culling.
     
    • Agree Agree x 1
  5. ThirdEye

    ThirdEye L1: Registered

    Messages:
    25
    Positive Ratings:
    1
    It works now, thank you very much!
     
    • Like Like x 1
  6. FloofCollie

    aa FloofCollie asshole

    Messages:
    483
    Positive Ratings:
    380
    No probs! Happy mapping!