#how do i get rid of this wireframe

1 messages · Page 1 of 1 (latest)

sturdy jasper
#

ive imported a sfm model into the game but it has this white grid, the only reddit post i found vaguely explains but i still dont get it

sturdy jasper
#

its probably something obvious but im new to the game

thin tangle
sturdy jasper
#

what do i do to fix it

thin tangle
#

could use the submaterial tool to change it to some invisible material

sturdy jasper
#

alright ill try

sturdy jasper
thin tangle
#

what's your VMT files look like?

sturdy jasper
#

wdym

thin tangle
#

you said you imported it from SFM

#

what's in your vmt files

sturdy jasper
#

i downloaded the model using a workshop downloader website and theres a bunch of vmt files here

thin tangle
#

yes what's in the-dear god

#

anyways

#

this model uses two faces stacked on top of eachother to achieve some effect source isn't usually capable of, but the shader only exists in SFM or some external shader dll

#

at least the overlay material does

#

so you have two different material shaders (vmts) basically occupying the same space in 3d

#

the submaterial tool lets you pick out these materials, and use any other material you know of, and replace specific materials on the model.

#

if it's replacing all materials, then you're using the submaterial tool wrong.

#

the first option is all materials. scroll down the list to replace just that material.

#

alternatively, edit your broken vmt files so that they do nothing (like an empty vtf vertexlitgeneric I guess? I'll check the dev wiki real quick)

sturdy jasper
#

oh yeah i can change individual parts

#

some of them have the default wireframe texture, can i find these vmts and just delete them?

#

or do they need to be there

thin tangle
#

they don't have wireframe textures

#

wireframe is the error fallback for broken shaders

sturdy jasper
#

it shows this

thin tangle
#

yep, that's one of the broken vmt files.

#

don't delete it, you'll just get pink checkers instead

sturdy jasper
#

how do i fix it

thin tangle
#

edit the vmt file to do nothing

sturdy jasper
#

alright

#

so i have to find each one and just make them empty, right?

thin tangle
#

empty.... i'm pretty sure also just gives a pink/black checker

sturdy jasper
#

this is what the vmt looks like

#

what do i edit

thin tangle
#

Yep, CustomHero is not a shader that exists in gmod

#

anyways

#

replace all of it with this:

{
    "$basetexture"        "null"
    "$vertexcolor"         1
    "$vertexalpha"         1
    "$nolod"             1
}```
sturdy jasper
#

okay

#

can i have gmod open

thin tangle
#

yeah, it will refresh the materials when you save them

sturdy jasper
#

alright

thin tangle
#

customhero isn't even on the valve community wiki lmao

#

it's a Dota 2 shader (Source 2)

sturdy jasper
#

its still the wireframe

#

nvm it works