#Importing an Source Film Maker Model into Gmod, and this happens.

1 messages · Page 1 of 1 (latest)

jolly terrace
#

So i've imported this SFM model to GMOD and for some reason when i spawn it the gloves,eyes and ankles looks like this. Can anyone tell me what's going on with it and what can i do to fix it?

#

is there something i need to do here?

zealous raven
#

“CustomHero” shader doesn’t exist in Gmod.

You should use “VertexlitGeneric”. To fix it. Navigate into the material folder and open the VMT files. On top, you’ll see “CustomHero”. Change it to “VertexlitGeneric”.

Also, You should remove the parameters that don’t exist in “VertexlitGeneric” shader.

next citrus
jolly terrace
jolly terrace
zealous raven
#

I'll tell you what to do.

zealous raven
#
  • Replace CustomHero to VertexlitGeneric.
  • Replace $normalmap to $bumpmap.
  • Remove $maskmap2. If you show me what texture maskmap2 uses. I might be able to find a way to adapt it using Vertexlitgeneric. I guess it's a PBR map tho
  • Remove all specular parameters.
  • Remove $rimlightcolor, $rimlightscale and $ambientscale. They don't exist in the VertexlitGeneric shader. You can use $rimlight if you want rim lighting.
  • Remove $maskenvbymetalness & $metalnessblendtofull . It doesn't exist in VertexlitGeneric.
  • Replace $envmapintensity with $envmaptint. Also, replace "0.125" with "[0.125 0.125 0.125]" or leave it as it's. I haven't personally tested using single float in $envmaptint.
#

Do the same for other VMT and it'll be fine.

jolly terrace
#

what's PBR?

#

also how am i supposed to show you what texture maskmap2 uses

zealous raven
next citrus
zealous raven
#

Not supported in Gmod, but can use custom shaders in 32-bit.

jolly terrace
#

it's pointless to ask to get payed for something like this tbh

jolly terrace
jolly terrace
#

and so how am i supposed to show the texture for maskmap2

next citrus
zealous raven
jolly terrace
jolly terrace
zealous raven
zealous raven
jolly terrace
#

oh my bad, sorry G.

zealous raven
#

I can't read that alien language 💀 .

jolly terrace
#

yeah i know

zealous raven
# jolly terrace

Can you export it as a PNG or something and send it here? I want to check inside the color channels. Maybe there might be something useful.

#

Cuz' it looks like a multi-channel packed texture.

jolly terrace
#

to do?

zealous raven
#

Click "File". You'll see "Export".

jolly terrace
#

wait

#

woops

zealous raven
#

?

#

Tga is also fine

#

even better than PNG.

jolly terrace
#

oh okay i was

#

gonna change the format to png

#

but aight

zealous raven
#

ok. give me a bit of time.

#

Metalness mask in "Red" channel.

jolly terrace
#

aight?

zealous raven
#

Let me do some research.

jolly terrace
#

alr

zealous raven
#

Well, it's going to take a while to adapt it.

jolly terrace
#

huh?

zealous raven
#

You gotta unpack that metalness mask. and put them inside Phong exponent texture's green channel. and you might need to mess around with the Phong parameters..

#

but.

jolly terrace
#

that's

#

gonna be alot

zealous raven
#

It's not even worth to try.

#

as you only want metalness.

jolly terrace
#

also is this good?

zealous raven
#

You still need to remove $specularexponent, $specularcolor and $rimlightscale.

#

also, remove the spaces if you want to make it clean.

jolly terrace
#

like this?

#

or too much?

zealous raven
#

"$envmaptint" not $"envmaptint". btw.

#

also remove $maskmap2.

jolly terrace
zealous raven
#

Good.

jolly terrace
#

so like this?

#

it's correct?

zealous raven
#

yes.

jolly terrace
#

so do i just try now?

#

maybe?

zealous raven
#

Yes.

#

Do the same for other materials that uses "CustomHero".

zealous raven
#

check VMT files.

jolly terrace
#

wait wait

#

which vmt files

#

which ones

#

i'll have to check every single one

zealous raven
#

Just open each one and do the same step you just did for current one if it uses 'Customhero" shader.

#

It's not that hard :)

jolly terrace
#

i checked every single one

#

and none of them as the custom hero shader

zealous raven
#

Alright then. Should be good to go.

jolly terrace
#

hold on though

#

let's not get our hopes high yet

#

Okay uh

#

i think something did happen

#

but it's still not right

#

from before

#

the eyes are still white

#

and the gloves are also still white

zealous raven
#

send me the VMT.

jolly terrace
#

so open the vmt of both?

#

or just send it here?

zealous raven
#

Yes.

jolly terrace
#

yes what?

#

the 1st or 2nd?

zealous raven
#

Both.

jolly terrace
#

this happens when i try to open it

#

wait i am confusing things?

#

vtm are supposed to be open with notepad right

zealous raven
#

Damn. I got timeout for a min for posting same files.?

jolly terrace
#

bruv

#

what now?

#

hello?

#

You there?

zealous raven
#

Check Dm.

#

I got timeout for 5 mins for sending the files :|