STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
233
IN-GAME
1,596
ONLINE
Founded
November 8, 2013
All Discussions > Help > Topic Details
ficool2 Jun 11, 2017 @ 3:00pm
Change material order in SMD?
Is there any way to change the order of the materials in the SMD? For example I have a weapon with a gun texture and the arms texture, I need the gun material to be listed first in the SMD because this model is for a plugin which overrides the first material in a SMD. However the arms texture is overriden as its first on top of the list. I tried moving the gun material up in Blender but it didn't work.

Any way to do this?
< >
Showing 1-2 of 2 comments
Zappy Jun 11, 2017 @ 11:06pm 
Not directly that I know of, as from what I know, the materials are listed in the SMD in the order of the first triangle to use them. This means you can possibly indirectly change it by duplicating the arm mesh and then remove the original arm mesh, but again, you can't directly set it, so it can't be relied on too much.

However, you can easily do something like -
$TextureGroup Skins { Weapon Arms }
- in the QC file (at some point before loading a(n) SMD/DMX with the materials) to add a "Weapon.vmt" material and then an "Arm.vmt" material (without necessarily adding multiple skins to the model in $TextureGroup), so the "Weapon.vmt" material is embedded into the model before the "Arm.vmt" material. This has worked in the case of someone wanting to layer copies of a mesh over itself in a specific order for a Source FilmMaker model.
ficool2 Jun 12, 2017 @ 3:00am 
Originally posted by Zappy:
Not directly that I know of, as from what I know, the materials are listed in the SMD in the order of the first triangle to use them. This means you can possibly indirectly change it by duplicating the arm mesh and then remove the original arm mesh, but again, you can't directly set it, so it can't be relied on too much.

However, you can easily do something like -
$TextureGroup Skins { Weapon Arms }
- in the QC file (at some point before loading a(n) SMD/DMX with the materials) to add a "Weapon.vmt" material and then an "Arm.vmt" material (without necessarily adding multiple skins to the model in $TextureGroup), so the "Weapon.vmt" material is embedded into the model before the "Arm.vmt" material. This has worked in the case of someone wanting to layer copies of a mesh over itself in a specific order for a Source FilmMaker model.

Thanks, the $Texturegroup trick worked.
< >
Showing 1-2 of 2 comments
Per page: 1530 50

All Discussions > Help > Topic Details
Date Posted: Jun 11, 2017 @ 3:00pm
Posts: 2