Source Filmmaker

Source Filmmaker

Nyx Jun 17, 2017 @ 12:17pm
Texture alpha help?
https://pp.userapi.com/c836532/v836532637/45626/6OX9t5IeDnU.jpg
What could be causing this and how to fix this?
~It's a SMRSCar for GMod
~There is a bodygroup that make windows go completely black but it also fixes the alpha thing
< >
Showing 1-3 of 3 comments
Pipann Jun 17, 2017 @ 12:21pm 
Ambient occlusion is interfering with the alpha. Adding $ambientocclusion "0" into the VMT should fix this, or you could make a separate texture for the windows.
Pte Jack Jun 17, 2017 @ 12:25pm 
The car most likely did not have a $mostlyopaque flag set when it was compiled. The vehicle does not know what materials are translucent or have Alphas included and makes the whole car appear that way (especially when there is $phong present in the mats. There is a fix that works sometimes but has to be done anytime the model is spawned. Add an override materials go into the materials in the element viewer and create a string (or boolean) attribute and call it $ambientocculsion and toggle it to 1 or 0. See if the car changes. If not try another string or boolean attribute and call it $phong and toggle that.

You may not end up with a model looking the way you expect it to. Sometimes you actually have to decompile and recompile the model with a $mostlyopaque 1 flag.
Nyx Jun 17, 2017 @ 12:40pm 
Okay so the glass.vmt has this:
"$bumpmap" "models/RusCars/Other/glass_nm" "$additive" "1" "$normalmapalphaenvmapmask" "1" "$envmap" "env_cubemap" "$envmaptint" "[0.4 0.4 0.4]" "$phong" "1" "$phongexponent" "220" "$phongboost" "3" "$phongfresnelranges" "[ 1 4 8 ]" "$acolor" "{255 255 255}" Proxies { Equals { srcVar1 $acolor resultVar $color } }
Removing all this at once makes the car look OK, but it also makes glass itself become non-transparent and gray
I'm null in all these material commands neither I understand why one glass bodygroup affects the transparency of the whole model, could you explain that?
~I still need to make the glass transparent. Removing the bodygroup (without editing the model ofcourse) would be OK too
~~What's the proper alphaness command? IIRC it is $basealpha set as string, but it's not working
~~~How do I un-do the $basealpha effect? I remember I did it to a model and made it invisible but I couldn't get it back visible by removing the var neither changing its values
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Jun 17, 2017 @ 12:17pm
Posts: 3