Upcoming Events

Join TCR Virtual today! AC events on Simracing.GP ACC events on Simracing.GP Weekly rFactor 2 events

Cars How to define light cone for headlights?

Messages
75
Points
62
Hello together,

i have a question, how can i define the light cone of an "light face" from the headlights?
I choose a face with lights.ini and the sometime it creates the "normale" cone, like expected. But sometimes faces only create a very small light cone just in front of the car.

How can i control or influence this?

thx for your help
 

Ben O'Bro

Premium
Messages
1,749
Points
2,127
hi
i'm not sure how the cone itself can be defined
i guess light shader detects if there are lights or not, and put the cone itself

as for lights.ini, not much can be done there
you just put a name (mesh) and a color for brakes, lights, and dash equipement, pretty much
again, no cone parameter here

example:

[BRAKE_0]
NAME=taillight_emissiveA
COLOR=70,20,10
OFF_COLOR=10,3.5,1.5

[LIGHT_0]
NAME=mainlight_inner
COLOR=35,30,15

[LIGHT_1]
NAME=dash_emissive ; speedo & green
COLOR=0.7,3,0.7
 
Messages
188
Points
213
if you are using Shader light patch lights are controled via yourcar.ini in extentions/config/cars/
 
Messages
188
Points
213
Screenshot_urd_detroit_egt_2018_sebring_11-3-119-13-15-53_accumulation.jpg
you are talking about that right?
so it s there
overating light.ini
 
Messages
75
Points
62
Sorry i did not understand that completly. Is it in the light ini?

I have an example. Kunos Z4, both light Lamps create a cone, the outside ones and the inside ones, If i separe them per light ini.

Kunos R8 2016. Only the outside lamps in the headlights create a cone. The inside ones or the one in the fender did Not create a cone If i use them alone.
 

Ben O'Bro

Premium
Messages
1,749
Points
2,127
Sorry i did not understand that completly. Is it in the light ini?

I have an example. Kunos Z4, both light Lamps create a cone, the outside ones and the inside ones, If i separe them per light ini.

Kunos R8 2016. Only the outside lamps in the headlights create a cone. The inside ones or the one in the fender did Not create a cone If i use them alone.
show us a screenshot of your car and what it does exactly :)
 
Messages
188
Points
213
I see your example and i really dnt know why but
again if you are using the shader light patch you can add all lights you want (the config for now contains only headlights so its normal ingame you have only the cone for headlights)
 

Stereo

Premium
Messages
4,226
Solutions
1
Points
2,222
You get cones for the 2 brightest lights cause each extra cone costs a lot of framerate.
 
Messages
75
Points
62
to give this an end.

Yes the values of the "Color" of the lights will decide if there is a cone or not.
Like Stereo said, the 2 lights with highest value create the cone
 
Messages
31
Points
51
Thanks for this thread and resolution.

I'd like to add that the light cones do not update in real time in the CM showroom, you need to get the lights.ini the way that you want it, then close the CM showroom and then re-open, only then will you see the new cones (spent slightly more time than I'd like to admit changing values and cursing before I realised this!).
 
Messages
27
Points
110
to give this an end.

Yes the values of the "Color" of the lights will decide if there is a cone or not.
Like Stereo said, the 2 lights with highest value create the cone
I have 4 headlights with the same color, but still only two cast the cone
 
Messages
1,096
Points
1,975
One thing doesn't contradict the other. By default only two cones will be auto-guessed, not 4 even if all emissives match.
 
Top