Garux / netradiant-custom

The open-source, cross-platform level editor for id Tech based games.
https://garux.github.io/NRC/
Other
300 stars 52 forks source link

mbspc - entity issues #92

Closed BlackShadow closed 1 year ago

BlackShadow commented 2 years ago

Entity brushes decompiled with multiple faces and texture alligment issues.

For example this trigger has many faces:

image

Original brush:

image

Fence texture replaced with that green box texture.

image

Door texture replaced by some stone texture

image

Map Crossfire - HL1

Garux commented 2 years ago

HL bsp doesn't store original brushes, this is what bspc winkles out of such bsp structure. I don't think that restoring originals is possible at all. As for wrong textures & alignments, this looks fixable, can you lend me original .map?

BlackShadow commented 2 years ago

Sure, i've attachted it on attachements. I think enhancements can be made to trigger brushes. Like forcing specific trigger textures to single faces? It'll be like a guess work, but still can be handy if it's possible? crossfire.zip

BlackShadow commented 2 years ago

There's a another decompiler for Goldsource called BSP2Map. It creates trigger brushes really close to original. Geometry is a bit flawed but not bad results.

Garux commented 2 years ago

I need original .map file (not .bsp) to ease check of what's wrong.

Found tools comparison https://valvedev.info/guides/goldsrc-map-decompilers-bsptwomap-vs-winbspc/

BlackShadow commented 2 years ago

Oh sorry, here.

Although this is not the original map file for that map, it's the closest one you can find to the original. (Except one small part)

crossfire.zip

Garux commented 1 year ago

Addressed shown issues, algorithm implementation was not quite correct. Can test with autobuild binaries https://github.com/Garux/netradiant-custom/releases/tag/latest