Source Filmmaker

Source Filmmaker

Páv Jul 24, 2015 @ 5:30am
I can see through a model
I spawned a model, i see it, but it's like it's a bit opaque...
I'd like to know if the problem can be solved and how :)
Last edited by Páv; Jul 24, 2015 @ 5:58am
< >
Showing 1-12 of 12 comments
Detonatress Jul 24, 2015 @ 5:38am 
Originally posted by WazhaDoh:
Is spawned a model, is see it, but it's like it's a bit opaque...
I'd like to know if the problem can be solved and how :)
Two ways.
Temporarily: You can add override materials and then go to the materials and add attribute to it with boolean (called bool here) $ambientocclusion
Permanent: Open up the VMT of the item in question and add $ambientocclusion 0 or remove any transparency it might have and have the $ambientocclusion 1 but you lose transparency. You can keep the $phong with it for ambient occlusion.
Last edited by Detonatress; Jul 24, 2015 @ 5:43am
Páv Jul 24, 2015 @ 5:56am 
Originally posted by Detonatress:
Originally posted by WazhaDoh:
Is spawned a model, is see it, but it's like it's a bit opaque...
I'd like to know if the problem can be solved and how :)
Two ways.
Temporarily: You can add override materials and then go to the materials and add attribute to it with boolean (called bool here) $ambientocclusion
Permanent: Open up the VMT of the item in question and add $ambientocclusion 0 or remove any transparency it might have and have the $ambientocclusion 1 but you lose transparency. You can keep the $phong with it for ambient occlusion.
I tried the permanant one, but there isn't any $ambientocclusion in the .VMT of the material.
I don't really understand the first one ^^
The Resonte! Jul 24, 2015 @ 6:02am 
Originally posted by WazhaDoh:
I don't really understand the first one ^^
Right click the animationset, and press "Add Override Materials". Then, right click it again, and press "View in Element Viewer" -> "Model".
Páv Jul 24, 2015 @ 6:59am 
Originally posted by The Resonte!:
Originally posted by WazhaDoh:
I don't really understand the first one ^^
Right click the animationset, and press "Add Override Materials". Then, right click it again, and press "View in Element Viewer" -> "Model".
Oh ok, i found it, and now what i do ?
Also the model is from a garry's mod addon
Last edited by Páv; Jul 24, 2015 @ 6:59am
Detonatress Jul 24, 2015 @ 7:18am 
Originally posted by WazhaDoh:
Originally posted by Detonatress:
Two ways.
Temporarily: You can add override materials and then go to the materials and add attribute to it with boolean (called bool here) $ambientocclusion
Permanent: Open up the VMT of the item in question and add $ambientocclusion 0 or remove any transparency it might have and have the $ambientocclusion 1 but you lose transparency. You can keep the $phong with it for ambient occlusion.
I tried the permanant one, but there isn't any $ambientocclusion in the .VMT of the material.
I don't really understand the first one ^^
You have to write it $ambientocclusion 0. Also if there's something about $translucent, remove it if the model does not need transparency. If you remove the $translucent, the model might actually accept $ambientocclusion 1 instead and have better shadows on it.

Originally posted by WazhaDoh:
Originally posted by The Resonte!:
Right click the animationset, and press "Add Override Materials". Then, right click it again, and press "View in Element Viewer" -> "Model".
Oh ok, i found it, and now what i do ?
Also the model is from a garry's mod addon
Go to materials, click the +, look for the green text stuff and right click on it, Add Attribute > Bool. Name it $ambientocclusion and you will get it, along with a box that can be checked or unchecked. Leave it unchecked as it is.
Last edited by Detonatress; Jul 24, 2015 @ 7:23am
Páv Jul 24, 2015 @ 7:43am 
Originally posted by Detonatress:
Originally posted by WazhaDoh:
I tried the permanant one, but there isn't any $ambientocclusion in the .VMT of the material.
I don't really understand the first one ^^
You have to write it $ambientocclusion 0. Also if there's something about $translucent, remove it if the model does not need transparency. If you remove the $translucent, the model might actually accept $ambientocclusion 1 instead and have better shadows on it.

Originally posted by WazhaDoh:
Oh ok, i found it, and now what i do ?
Also the model is from a garry's mod addon
Go to materials, click the +, look for the green text stuff and right click on it, Add Attribute > Bool. Name it $ambientocclusion and you will get it, along with a box that can be checked or unchecked. Leave it unchecked as it is.
Mmh the model need transparency for a glass, but there is another .VMT for it, can i remove it then ?
EDIT: Worked, thanks a lot ;D
Last edited by Páv; Jul 24, 2015 @ 8:08am
Detonatress Jul 24, 2015 @ 7:46am 
Originally posted by WazhaDoh:
Originally posted by Detonatress:
You have to write it $ambientocclusion 0. Also if there's something about $translucent, remove it if the model does not need transparency. If you remove the $translucent, the model might actually accept $ambientocclusion 1 instead and have better shadows on it.


Go to materials, click the +, look for the green text stuff and right click on it, Add Attribute > Bool. Name it $ambientocclusion and you will get it, along with a box that can be checked or unchecked. Leave it unchecked as it is.
Mmh the model need transparency for a glass, but there is another .VMT for it, can i remove it then ?
If the glass is a separate material (uses another VMT) then just modify the VMT for the opaque parts if they're separate. If the separate one has any transparency, remove that and make sure it has $phong and $ambientocclusion 1, and if it still looks transparent then use $ambientocclusion 0.
Páv Jul 24, 2015 @ 8:08am 
Originally posted by Detonatress:
Originally posted by WazhaDoh:
Mmh the model need transparency for a glass, but there is another .VMT for it, can i remove it then ?
If the glass is a separate material (uses another VMT) then just modify the VMT for the opaque parts if they're separate. If the separate one has any transparency, remove that and make sure it has $phong and $ambientocclusion 1, and if it still looks transparent then use $ambientocclusion 0.
Anyway it worked, thanks ;D
Qarcus Apr 10, 2019 @ 8:44pm 
If you want something to be not transparent watch this https://www.youtube.com/watch?v=Dq2SK0DWT10:steamhappy:
muady Mar 27, 2020 @ 3:04am 
Originally posted by Detonatress:
Originally posted by WazhaDoh:
Is spawned a model, is see it, but it's like it's a bit opaque...
I'd like to know if the problem can be solved and how :)
Two ways.
Temporarily: You can add override materials and then go to the materials and add attribute to it with boolean (called bool here) $ambientocclusion
Permanent: Open up the VMT of the item in question and add $ambientocclusion 0 or remove any transparency it might have and have the $ambientocclusion 1 but you lose transparency. You can keep the $phong with it for ambient occlusion.

Thank you dudee it worked :D still helpfull in 2020!
Black Rose Apr 12, 2023 @ 12:14pm 
Originally posted by Detonatress:

Go to materials, click the +, look for the green text stuff and right click on it, Add Attribute > Bool. Name it $ambientocclusion and you will get it, along with a box that can be checked or unchecked. Leave it unchecked as it is.

This worked in SFM too but I'm trying to fix it permanently so I don't have to do it every time. I tried adding $ambientocclusion 0 to the vmt but it didn't change anything. Is there something I need to do different for SFM?
Last edited by Black Rose; Apr 12, 2023 @ 12:14pm
Spore Cannon Nov 19, 2023 @ 9:32pm 
Originally posted by Black Rose:
Originally posted by Detonatress:

Go to materials, click the +, look for the green text stuff and right click on it, Add Attribute > Bool. Name it $ambientocclusion and you will get it, along with a box that can be checked or unchecked. Leave it unchecked as it is.

This worked in SFM too but I'm trying to fix it permanently so I don't have to do it every time. I tried adding $ambientocclusion 0 to the vmt but it didn't change anything. Is there something I need to do different for SFM?
A previous commenter suggested following this video's instructions. https://youtu.be/Dq2SK0DWT10
< >
Showing 1-12 of 12 comments
Per page: 1530 50

Date Posted: Jul 24, 2015 @ 5:30am
Posts: 12