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

(TF2) Why aren't the vmt files actually loading onto the model? #115

Closed ShadowMan44 closed 8 months ago

ShadowMan44 commented 2 years ago

Describe the bug I know that in the FAQ, I was told to ignore "UNSUPPORTED MATERIAL PARAMS". But the problem at hand is that when I imported the VMT, it doesn't actually show anything on the VMT whatsoever. It's a cosmetic item from Team Fortress 2 called the "Ornament Armaments".

To Reproduce Steps to reproduce the behavior:

  1. Import Ornament Armaments model (any version will do)
  2. Import the VMT of the model
  3. See error

Expected behavior I expected the VMT shaders to appear or overlay on top the textures (since they are blank), instead they don't appear at all.

Related files _xms_soldierornaments.vmt

Logs

_[WARNING] UNSUPPORTED MATERIAL PARAMS: $lightwarptexture, $envmapcontrast, $envmapsaturation, $phongboost, $phongfresnelranges, $rimlight, $rimlightexponent, $rimlightboost, $yellow, $colortint_base, $colortint_tmp, $envmaptintmulti, $cloakpassenabled in xms_soldierornaments Read blend: C:\Users\USER\Desktop\ornament armanent.blend

Details:

lasa01 commented 2 years ago

Can you send exactly where the model/material is located in TF2 installation directory or alternatively, upload the file?

ShadowMan44 commented 2 years ago

ornament armament.zip alright, here's what I've got for the model.

ShadowMan44 commented 2 years ago

Can you send exactly where the model/material is located in TF2 installation directory or alternatively, upload the file?

Hello, it's been 2 months since I opened this and have had no response to it. I provided the zip file that I was having a problem with.

lasa01 commented 2 years ago

Sorry, must have forgotten about this.

Are you sure there are no errors in the console? I'm not having any issues with the material import.

Also make sure you actually have tf2 installed and configured in the addon even when importing extracted materials, since the textures can only be found from the game files, and missing textures will cause the whole material import to fail.

I would recommend you try the rewritten addon here and see if you have the same issue, since I will not be fixing issues with the old version anymore.

ShadowMan44 commented 2 years ago

Sorry, must have forgotten about this.

Are you sure there are no errors in the console? I'm not having any issues with the material import.

Also make sure you actually have tf2 installed and configured in the addon even when importing extracted materials, since the textures can only be found from the game files, and missing textures will cause the whole material import to fail.

I would recommend you try the rewritten addon here and see if you have the same issue, since I will not be fixing issues with the old version anymore.

I have installed the new version of your blender addon, I looked in the console and it says "vmt imported in 0.08 s" meaning there seems to be no error whatsoever.

But it still does not work. I have the textures already loaded onto the model, the parts that are supposed to be colored are white by default so that's why I need to import the vmt files. However when doing so, they remain white regardless of what I do.

I'm genuinely stumped on what the problem is because I've tried literally everything I can think of with no luck.

lasa01 commented 2 years ago

Ah, you mean only the white part is the problem, I thought you had no textures on the model at all.

The material is made so that it works with any color so you need to select the color manually, the default is the white color. You can do this in Blender by selecting the ornaments object and changing the color here: image

It's a bit confusingly under "Viewport display" but it actually changes the rendered color as well.

Looks like the material also contains some more advanced features like animated textures and detail blend modes which are currently not supported so it still won't be 100% accurate.

ShadowMan44 commented 2 years ago

why huh, mine doesn't have that!

lasa01 commented 2 years ago

Looks like you have the armature object selected, you need to select the mesh object inside the armature.

lasa01 commented 8 months ago

Closing due to inactivity.