View Full Version : [Hammer] Vertex merging bug

25-05-2016, 09:01 PM
I just found a bug in Hammer's vertex merging
because I am currently replicating the functionality for unity
I found a nifty special case that invalidates the entire data structure if forgotten
if you merge two vertices in such a manner that a new face needs to be created, hammer fails to do this
and you are left with strange behaviour
an example of this would be merging two opposing vertices on the top of a 6-sided prism
it's actually extremely rare to get this in Hammer
because you get a concave brush at first
which mappers tend to avoid

25-05-2016, 11:56 PM
I wonder if this is what causes some of the prefabs I have to give a coplanar error. :o


26-05-2016, 12:54 AM
I've seen this kind of thing before too. I think it might happen when trying to squish the top of a cylinder or pyrimid into a single point. I'll see like a concave set of faces from certain view points in hammer, and then it turns black other times. Wait, I've never said this before and it shouldn't be in a quote.

26-05-2016, 01:07 AM
I can figure out how to fix this, but only if i can access its source code.

26-05-2016, 11:08 AM
I tried messing with it afterwards. I think this one is new.


26-05-2016, 11:10 AM
Never seen it before. Must be some error checking code somewhere.

26-05-2016, 12:37 PM
I'm surprised by how much code this ended up needing. http://pastebin.com/TB6Vsigx
It's sloppy, but sufficient for low-poly stuff I guess.