Help with func_brush's disappearing for no apparent reason?

Discussion in 'Mapping Questions & Discussion' started by Werewolf, Jan 31, 2017.

  1. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    792
    Positive Ratings:
    234
    I have various func_brush's that I am using around my map because they all receive the 'color' input at various points.

    My problem is that some of these brushes keep disappearing when viewed from certain points in the map. I had assumed it was a visibility issue and checked my portal file, and could not see anything out of order - As in, I could stand in one visleaf that should be able to see a specific brush, but in game it won't render the brush. I've even tried adding a func_viscluster to the effected areas and it doesn't change anything.

    What's also confusing me is that its not all the func_brush's, or where I have 2 identical (bar their names) func_brushes acting differently.

    Can anyone suggest why this is happening and how to fix it?
     
  2. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    792
    Positive Ratings:
    234
    Just done another compile and ran the map with mat_leafvis 2. I found one area where I'm not even leaving the visleaf and I can see a func_brush pop in and out of existence!
     
  3. Egan

    aa Egan

    Messages:
    1,318
    Positive Ratings:
    1,512
    You are running the full vvis compile right, not running it on fast? It could be a number of problems, which map is it - can you supply the bsp/vmf?
     
  4. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    792
    Positive Ratings:
    234
    1) I was still getting the issue with full compiles.

    2) I kinda forgot about this post and found the problem - I had combined some of the func_brushes into single entities as they all would received the same inputs at the same time. That mean the origins for the brushes weren't in the same place as the actual visible part of the brush, so walking far enough away meant they stopped rendering.

    Fixed it by essentially dividing the func_brush's into small clusters of brushes. Like one set that had brushes, one off on its lonesome is just an individual func_brush, another set of 3 somewhere else, etc.

    Thanks for replying though!
     
  5. Egan

    aa Egan

    Messages:
    1,318
    Positive Ratings:
    1,512
    Origins, makes sense -

    Something maybe to look into just for your project is the FireUser io - could be useful for a lot of different objects doing relatively similar things. Like sending out to the brushes to change color, and some change to slightly different colors but all from one input sent across.