How do I fix this bug?

  • If you're asking a question make sure to set the thread type to be a question!

FrostyHoneyJuicy

L3: Member
Jun 12, 2014
146
109
So what happened?

Yesterday, I was making a ceiling for my map, which probably looked like this:

24VZiUt.jpg


So today, I opened the Hammer and I saw that my ceiling doesn't look right:

PU22U7w.jpg


So, I have decided to fix those brushes, but unfortunately when I re-open the Hammer OR when I compile my map, the bug will stay there.

Any help?
 
Last edited:

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
Those brushes might be invalid solids, which are created when you try to make a brush concave or move a vertex so a face is no longer flat. Try bringing up the problems dialog (Alt+P) and see if it finds invalid solids - if it does, then remake the brush and be careful with your vertices.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
This confuses me too, because from the looks of things, that should be a valid solid. It's just a flat trapezoid at a 45 degree angle, isn't it?
 
Mar 23, 2013
1,013
347
This confuses me too, because from the looks of things, that should be a valid solid. It's just a flat trapezoid at a 45 degree angle, isn't it?

well sometimes hammer is fucking up brushes which look like they should be alright. Captain_Clam's solution should help out in this case
 

MoonFox

L10: Glamorous Member
Mar 17, 2015
739
74
I had this happen as well when trying to make an embankment, I ended up just using a block to fill in the whole (looks ugly to me, but C'est la vie)
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
well sometimes hammer is fucking up brushes which look like they should be alright. Captain_Clam's solution should help out in this case
A better solution would be to make sure the corners are aligned correctly to start with. But I think I figured out what went wrong; it's the edge faces that are invalid, and fixing them could be tricky. What Valve usually does is pretend that 1.5 * sqrt(2) = 2 and make their 45-degree walls meet the straight ones on a 2:1 slant. If you did this, your proportions wouldn't be perfectly equal, but your corners should form a perfect straight line when viewed from above, which would be enough to ensure that your faces are valid.
 

FrostyHoneyJuicy

L3: Member
Jun 12, 2014
146
109
This confuses me too, because from the looks of things, that should be a valid solid. It's just a flat trapezoid at a 45 degree angle, isn't it?

Yup, that's just a trapezoid at 45 degrees, expect it's not flat.
But seriously, how in the world Hammer thinks that this brush is not solid? It has all 6 faces and especially all vertex points aren't "crossing" each other. Just look it:

FcwT9xol.jpg


At least this suggestion helped me the most:

You could also cut the brush into triangles, cutting between vertices, to avoid creating illegal solids.

I was going to start everything from 0, but I decided that I shouldn't give up and try my best to cut those triangles. I spent like 3 hours on this crap.
Luckly, I made it through. Here is the result:

MT2zkkDl.jpg



Thanks everyone for your help!