Headlight texture
-
- Posts: 64
- Joined: Sun Apr 30, 2023 5:47 pm
Headlight texture
Hi, I'm trying to create this type of lights, but the first texture appears transparent in the game. What can I do?
https://imgur.com/a/BhedEzz
https://imgur.com/a/BhedEzz
Re: Headlight texture
show a screenshot from the game.
the "vehicle_badges" shader probably uses cut-out alpha technique (either visible pixel or fully invisible). It might not use texture's alpha for semi-transparent render. Just a guess, I'm not into modding and can't remember all the details and aspects.
the "vehicle_badges" shader probably uses cut-out alpha technique (either visible pixel or fully invisible). It might not use texture's alpha for semi-transparent render. Just a guess, I'm not into modding and can't remember all the details and aspects.
-
- Posts: 64
- Joined: Sun Apr 30, 2023 5:47 pm
Re: Headlight texture
https://imgur.com/a/5s18oIu (scroll down)
I checked a car, and it also has the same veh_badges, and I used the car's texture on my model, but the shader doesn't work for me, while it works on the other car.
I checked a car, and it also has the same veh_badges, and I used the car's texture on my model, but the shader doesn't work for me, while it works on the other car.
-
- Posts: 64
- Joined: Sun Apr 30, 2023 5:47 pm
Re: Headlight texture
dnOleg wrote: ↑Fri Aug 30, 2024 11:39 am show a screenshot from the game.
the "vehicle_badges" shader probably uses cut-out alpha technique (either visible pixel or fully invisible). It might not use texture's alpha for semi-transparent render. Just a guess, I'm not into modding and can't remember all the details and aspects.
Re: Headlight texture
try "vehicle_decal" and check in game whether it has the same result as "vehicle_badges".
-
- Posts: 64
- Joined: Sun Apr 30, 2023 5:47 pm
Re: Headlight texture
extract all the "top glass" polygons into a separate object/part (e.g. misc_t) and put it in the bottom of hierarchy. just for test. does this make any changes in game?
-
- Posts: 64
- Joined: Sun Apr 30, 2023 5:47 pm
-
- Posts: 64
- Joined: Sun Apr 30, 2023 5:47 pm
Re: Headlight texture
https://imgur.com/a/uB6kvOP
The game seems to have something, but it's super transparent. I haven't modified the textures at all, and it works perfectly on the other model.
Re: Headlight texture
what's about the texture's alpha channel? may be it's way too dark and makes rendered material too transparent? paint texture's alpha to some brighter shades of grey color to increase opacity.
-
- Posts: 64
- Joined: Sun Apr 30, 2023 5:47 pm
-
- Posts: 64
- Joined: Sun Apr 30, 2023 5:47 pm