#Help with exporting textures

1 messages · Page 1 of 1 (latest)

boreal tendon
#

I got a model in blender thats rigged and textured, I just can't figure out how to export the textures to garrys mod if anyone would be willing to help, I'll credit you on the workshop as well

keen basin
#

For Garry’s mod, you’ll want to translate the Blender materials into several VTF images

#

Typically, this would be the base texture, bump map, and then you’d apply reflectivity/roughness/color tint mask textures as the bump’s alpha channel or the base alpha.

boreal tendon
#

yea I just cant figure out out how to convert it to VTF correctly

keen basin
#

Rip, vdev wiki is down right now…
But anyways, look into VTFEdit Reloaded to start with.

#

This will allow you to open/save VTF image files.

#

Then, you use VMT scripts to tell the game how to display those images

#

When you have a Material applied in blender, GMod will look for a VMT of the same name as the material, in the .qc’s $cdmaterials path.

#

In your VMT, you’d then point to which VTF you want to use like this:
metal.vmt

VertexLitGeneric //the shader to use
{
    "$basetexture" "models/MyName/MyModel/metal.vtf"
}
#

For an example model that uses
$cdmaterials "models/MyName/MyModel"
in its .qc

#

Both metal.vmt and metal.vtf should go in /garrysmod/GarrysMod/addons/MyAddon/materials/models/MyName/MyModel

#

Or you can use the game root /materials folder instead of an addon folder if you wish.