Discussion:
[hlcoders] Rendering arbitrary models transparently
Krzysztof Lesiak
2015-05-18 16:46:26 UTC
Permalink
Hello,

I'm currently looking for a way to render any model transparently when certain conditions apply. Is there any place I can specify an alpha override on a per-entity basis?
I've read about material proxies, but if I'm correct, I'd have to edit hl2's .vmt files for model textures that I want to render that way, which would be a lot of work. I've also found material_modify_control, but that requires a proxy to be set inside the .vmt too, and I'm not sure if many of hl2's materials use it by default. It'd also change all instances of the material in my map, which I don't want to happen.

It really seems like something that should be easily doable, but I just can't find the right option. Any suggestions?

Krzysztof
Ben Lubar
2015-05-18 16:47:47 UTC
Permalink
You can set the render amount and change the render mode to something
other than normal (texture looks about the same but supports alpha).
Post by Krzysztof Lesiak
Hello,
I'm currently looking for a way to render any model transparently when
certain conditions apply. Is there any place I can specify an alpha override
on a per-entity basis?
I've read about material proxies, but if I'm correct, I'd have to edit hl2's
.vmt files for model textures that I want to render that way, which would be
a lot of work. I've also found material_modify_control, but that requires a
proxy to be set inside the .vmt too, and I'm not sure if many of hl2's
materials use it by default. It'd also change all instances of the material
in my map, which I don't want to happen.
It really seems like something that should be easily doable, but I just
can't find the right option. Any suggestions?
Krzysztof
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
--
Ben Lubar

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
Loading...