lasa01 / Plumber

A Blender addon for importing Source 1 engine maps, models, materials and textures. This addon makes it possible to import full CS:GO, TF2, CS:S or other Source 1 game maps into Blender.
MIT License
395 stars 29 forks source link

Addon does not properly support/import 4WayBlend materials | Plumber #128

Closed Carkidd closed 11 months ago

Carkidd commented 2 years ago

Plumber will fail to properly import Lightmapped_4WayBlend materials. These are only found in CS:GO and Black Mesa Source. It will currently only display one of the blend textures.

https://developer.valvesoftware.com/wiki/Lightmapped_4WayBlend

This is how a 4WayBlend looks when imported- issue plumber

And this is how the terrain looks in-game- issue ingame

lasa01 commented 2 years ago

The blending calculations seem to be implemented here, would need to figure out how to convert that to blender nodes.

Also a minimal example vmf file with a single 4WayBlended displacement would help with testing in case anyone wants to help.

Carkidd commented 2 years ago

Here is two examples from Black Mesa. One is filled out per the Source wiki, and the other appears to be auto-generated with Wall Worm Pro. Some values are missing from both- the Wall Worm Pro version has a different surfaceprop type per blended surface (not useful in Blender or implemented in Plumber AFAIK) and the Source Wiki version has evnmap, basealphaenvmapmask, envmaptint and color2 defined.

blend_4way_bnc_rock_srcwiki.txt blend_4way_st_b_rock_wallworm.txt

lasa01 commented 1 year ago

Implemented in the latest beta release.