![]() |
|
Setting a client side model using a VMT - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Starfall (https://teamscm.co.uk/forum-7.html) +--- Thread: Setting a client side model using a VMT (/thread-3823.html) |
Setting a client side model using a VMT - Caprica - 31-07-2026 I am working on a SGU dialing interface, and I have a client side model for both the stargate and the chevrons. Unlike the chevrons for SG1 and SGA they are not skins, but rather it is a different material. Using mat_texture_list in the console I found the material that it uses: the_sniper_9/universe/stargate/universechevronon When I try to set the client side model to the texture it does not work. Looking at the CAP code its a .vmt Is there a way to set the texture of this client side model? RE: Setting a client side model using a VMT - Person8880 - 01-08-2026 Client-side models can only use materials from the material whitelist. If you want to light up the chevrons, you can just render a white box behind the relevant chevron. That's all the texture is doing (with the rest of the ring being the same as the "off" texture). EDIT: I forgot that the outer gate texture also doesn't use a skin, so lighting that up won't work. As it's not in the whitelist there's not a supported way to set the texture. RE: Setting a client side model using a VMT - Person8880 - 02-08-2026 I've made client-side models no longer be restricted to the material whitelist, you should be able to set the material now. RE: Setting a client side model using a VMT - Caprica - 02-08-2026 Thanks that is really helpful, I now have a working screen and this was helpful because the horizon for SGU uses a different material as well (Working video https://nextcloud.astralconstellation.space/s/xw2n9HRfSmGQiPH, ignore horizon after open I forgot to clear render) |