Lightmask does not work

Post Reply
OneSpeaks
Posts: 2
Joined: 03 Jul 2024 16:03

Lightmask does not work

#1 Post by OneSpeaks » 09 Nov 2024 17:29

Hey, I have been trying to make a auxiliary light for quite a while now, but I have ran into an issue with trying to make the lights work.
kuva2.png
The red circled areas are meant to be yellow DRLs, but have not gotten them to work. Nor even white DRLs work. The lightmask for them is black, and the UV tile is middle
kuva1.png
kuva1.png (2.19 KiB) Viewed 552 times
The green aka highbeams work just as they are meant to. Have tried everything from new materials to different textures and everything inbetween. Any help is appreciated, so wouldn't have to scrap the project.
User avatar
KrysEmlyn
Posts: 522
Joined: 17 Mar 2017 12:32
Contact:

Re: Lightmask does not work

#2 Post by KrysEmlyn » 09 Nov 2024 23:42

From the SCS Modding Wiki:
Auxiliary lights

Auxiliary lights on vehicles can also have separate second mask texture but they use only two channels from light mask texture:

R - dimmed beam
G - full beam
B - not used and must be zero (black)
A - not used and must be zero (black)

There is also possible to use two different colors for auxiliary lights with offsetting UV mappings for second mask texture. Tile offset here is also done on the right side of the texture:

original texture - white color
first texture tile - orange color
You'll need to slightly redesign your lamps to work within the constraints of SCS Software's lighting system for auxiliary lamps.
OneSpeaks
Posts: 2
Joined: 03 Jul 2024 16:03

Re: Lightmask does not work

#3 Post by OneSpeaks » 10 Nov 2024 16:27

Oh what, they really work from a different principle? Well, must say this is an interesting design choice by SCS, never noticed this in 2 years. Thank you so much! How does the game differentiate which light uses the auxiliary lights principle and which the normal vehicle lights principle?
Last edited by OneSpeaks on 10 Nov 2024 16:36, edited 2 times in total.
User avatar
KrysEmlyn
Posts: 522
Joined: 17 Mar 2017 12:32
Contact:

Re: Lightmask does not work

#4 Post by KrysEmlyn » 11 Nov 2024 01:07

That part, I do not know. I presume it has something to do with where the lamp is allowed to be mounted.
If it is mounted on the bull bars or roof bars, they are considered auxiliary lamps to the best of my knowledge.
User avatar
MehdiAnti
Posts: 49
Joined: 22 Jan 2017 12:47
Location: Shahsavar, Mazandaran, Iran
Contact:

Re: Lightmask does not work

#5 Post by MehdiAnti » 11 Nov 2024 08:32

OneSpeaks wrote: 10 Nov 2024 16:27 How does the game differentiate which light uses the auxiliary lights principle and which the normal vehicle lights principle?
In addon_hookup file, an entry callled electric_type, this part switched between vehicle or aux_light and game knows, check that

electric_type: aux_light
OneSpeaks
Posts: 2
Joined: 03 Jul 2024 16:03

Re: Lightmask does not work

#6 Post by OneSpeaks » 12 Nov 2024 20:36

I-it was just that simple? I had been stuck on this for a month, thank you!
Post Reply

Return to “Blender Tools”

Who is online

Users browsing this forum: No registered users