Props going through skybox?

Discussion in 'Mapping Questions & Discussion' started by trees, Dec 18, 2017.

  1. trees

    trees L2: Junior Member

    Messages:
    50
    Positive Ratings:
    9
    So I found something a bit puzzling while looking at a vmf of granary.
    https://imgur.com/a/KipV8

    I don't quite understand how this works. How is the whole prop being rendered even though part of it goes into the skybox? It also appears that the prop's 'middle point' is outside the skybox, wouldn't this cause a leak (I read somewhere that an entity's origin outside the map will cause that)?

    Also this on cp_badlands.
    https://imgur.com/a/PvENq

    Would this pipe still be visible from here in game, if a part of it wasn't sticking out this side of the skybox?
     
  2. iiboharz

    aa iiboharz Meme Queen

    Messages:
    720
    Positive Ratings:
    1,052
    Their origins are inside the map, that's all that matters for the prop to render.
     
    • Thanks Thanks x 1
  3. trees

    trees L2: Junior Member

    Messages:
    50
    Positive Ratings:
    9
    What is 'origins', then? I though that was just the entity's middle point, and in the case of that granary prop it's quite clearly outside the map.
    edit: I think I got it. It's that thing with the green, red and blue line, isn't it? Can you move that around or is it always in a fixed spot for each prop?
     
    Last edited: Dec 18, 2017
  4. VEssex

    VEssex L2: Junior Member

    Messages:
    76
    Positive Ratings:
    58
    The origin is the point at which the model is, relative to the x y z plane, which doesn't have to be the center median. In hammer, the X on the entity indicates the origin. As long as the origin is in the map, it won't cause leaks.
     
    • Thanks Thanks x 1
  5. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,035
    Positive Ratings:
    3,992
    No, it's this yellow X: https://gfycat.com/ImpressiveDefensiveBull

    It is fixed unless you recompile the prop. But you can just cover it in nodraw or skybox and it's fine (I do this for rocks a lot).
     
    • Thanks Thanks x 1
  6. Lampenpam

    aa Lampenpam

    Messages:
    1,019
    Positive Ratings:
    337
    both represent the origin. the yellow x is just the red, green, blue cross in the 2D view.

    But I think OP is a bit confusing because the origin is not full inside. It is fine if the origin is inside the skybox brush (or any other solid brush). as long it's not in the void, it's not a leak. Now, while the bounding box of the prop is actually inside the map, the prop will be rendered since not the origin but the bounding box is needed to determine if a prop is in a PVS.
     
    • Thanks Thanks x 1
  7. trees

    trees L2: Junior Member

    Messages:
    50
    Positive Ratings:
    9
    Alright thanks guys. I'm still wondering though about that badlands pipe example. You can see it from both sides of that building in game. How does that work?
     
  8. VEssex

    VEssex L2: Junior Member

    Messages:
    76
    Positive Ratings:
    58
    The skybox, according to the wiki, is not visible, why I'd assume is why you can see the prop from both sides and see the prop rendering when it extends beyond the map. It really just represents a playable space where if nothing can be seen except for the skybox where, when you look at it, it draws the skybox where there is nothing.
    I'd assume that the skybox there functions to split visleaves and accommodate the area portals.

    But I'm going off piecing it together, I want to be corrected if I'm not right.
     
    • Thanks Thanks x 1
  9. trees

    trees L2: Junior Member

    Messages:
    50
    Positive Ratings:
    9
    Thanks. I actually compiled a little test map to try things out and it's clear now. As long as the prop even slightly sticks out from the skybox it will be rendered.