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
389 stars 30 forks source link

[Enhancement] Import Model Skins #145

Open joshuafhiggins opened 1 year ago

joshuafhiggins commented 1 year ago

Describe the bug Models, that have skins, only have one of their textures imported, the rest of the skins use this texture. Turning off "Reuse old materials/models" has no effect.

To Reproduce Steps to reproduce the behavior:

  1. Import 'models/props_gameplay/sign_gameplay01' (found on ctf_2fort from Team Fortress 2)

Expected behavior Models using different skins should import the skins they use and apply them to the specific instance of that model.

Related files ctf_2fort_d.vmf

Logs

Logs reveal no helpful information about the models/materials skins being imported.

Screenshots image image

Details (please complete the following information):

Tomobobo710 commented 6 months ago

Any chance of this being added? All of the maps I have made utilize the skin feature for my models, and apparently some of valves official models use the same technique. It would be amazing to have this working, because I currently can only mangle the materials in blender, I am not good enough to figure out how to fix them. :(

lasa01 commented 6 months ago

Unfortunately I don't currently have any plans to add new features :(

Tomobobo710 commented 6 months ago

Dang, that's understandable though.

I tried to look into it a little bit but I got lost pretty quick.

In asset/model.py import_mesh() is what I got to and got lost. If you have any hints on where I should look I'd appreciate it.

lasa01 commented 6 months ago

Adding support would be a fairly complex task. The mdl parser is implemented in a separate library here, so support for skins would first need to be added there. Currently it does not read the skin data from the mdl.