STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
399
游戏中
2,353
在线
成立于
2013 年 11 月 8 日
所有讨论 > Help > 主题详情
ficool2 2017 年 6 月 11 日 下午 3:00
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?
< >
正在显示第 1 - 2 条,共 2 条留言
Zappy 2017 年 6 月 11 日 下午 11:06 
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 2017 年 6 月 12 日 上午 3:00 
引用自 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.
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情
发帖日期: 2017 年 6 月 11 日 下午 3:00
回复数: 2