Plumber icon indicating copy to clipboard operation
Plumber copied to clipboard

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

Open ShadowMan44 opened this issue 2 years ago • 8 comments

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_soldier_ornaments.vmt

Logs

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

Details:

  • OS: Windows 10
  • Blender Version: 2.91
  • Addon Version: 0.6.0
  • Did you download a release or build the addon yourself: [e.g. downloaded a release]
  • Related Game: Team Fortress 2

ShadowMan44 avatar May 25 '22 06:05 ShadowMan44

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

lasa01 avatar May 27 '22 13:05 lasa01

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

ShadowMan44 avatar May 30 '22 07:05 ShadowMan44

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.

ShadowMan44 avatar Jul 14 '22 09:07 ShadowMan44

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.

lasa01 avatar Jul 14 '22 15:07 lasa01

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.

ShadowMan44 avatar Jul 14 '22 22:07 ShadowMan44

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.

lasa01 avatar Jul 15 '22 13:07 lasa01

why huh, mine doesn't have that!

ShadowMan44 avatar Jul 15 '22 23:07 ShadowMan44

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

lasa01 avatar Jul 16 '22 07:07 lasa01

Closing due to inactivity.

lasa01 avatar Dec 14 '23 00:12 lasa01