Head- and taillights.

Discussion in 'Car Modding' started by SharD, Oct 19, 2021.

  1. SharD

    SharD Registered

    Joined:
    Apr 17, 2019
    Messages:
    374
    Likes Received:
    437
    Hi, so, I have this car, but I do not know how to make working head and taillights. I have tried to find a guide, but I have not found one that was actually coherent.

    I assume that functional lights require additional graphics + a .gen file entry?

    Can anyone describe how to make proper headlights?

    Thanks in advance.

    car3.png
     
  2. Bjørn

    Bjørn Registered

    Joined:
    Oct 4, 2010
    Messages:
    1,821
    Likes Received:
    919
    This my crude way of doing it:

    You need GMT's - I name mine HLGLO_DS_C8
    HeadLightGLOw_DriverSide_CARNAME
    Then you need one for the PassengerSide, So that would be HLGLO_PS_C8

    Then you need brakelights

    Those I'd name BLGLO_DS_C8.

    You use the shader High Luminance Sun and then you set it to glow to get the bloom effect.

    Then you set up the animation - have a black DDS for when it's off and one for when they're on. Set the animation type to Event and set the figures below (the cycle) to 0,1

    Then when you flip your headlights button, they will turn on.

    Then you get to the process of fine-tuning the DDS-files to set the intensity and colour of the lights...

    It takes a while to understand how it works to be honest, but when you get it, it's simple. As it is with so much else :)
     
    Emery and SharD like this.
  3. SharD

    SharD Registered

    Joined:
    Apr 17, 2019
    Messages:
    374
    Likes Received:
    437
    Does it need a .gen entry?
     
  4. Bozak

    Bozak Registered

    Joined:
    Nov 22, 2016
    Messages:
    70
    Likes Received:
    56
    https://docs.studio-397.com/developers-guide/car-development/car-art/car-lights
    Lights need to be in the gen file like this:

    Light=HeadlightL
    {
    Type=Spot Pos=( 0.678, 0.535,-1.958) Dir=(-0.05,-0.15,-0.99) Range=(0.0, 400.0) Active=False Attenuate=(0.25, 0.25, 0.0005) Hotspots=(1.0, 150) Falloff=(25) Intensity=(12) Color=(255, 247, 238)
    }
    Light=HeadlightR
    {
    Type=Spot Pos=(-0.678, 0.535,-1.958) Dir=(0.05,-0.15,-0.99) Range=(0.0, 400.0) Active=False Attenuate=(0.25, 0.25, 0.0005) Hotspots=(1.0, 150) Falloff=(25) Intensity=(12) Color=(255, 247, 238)
    }
    Light=TailLight
    {
    Type=Spot Pos=(0.0, 0.7, 2.4) Dir=(0.0,-0.2, 0.85) Range=(0.0, 4.5) Active=False Attenuate=(0.55, 0.06, 0.048) Hotspots=(115, 165) Falloff=(0.75) Intensity=(1.0) Color=(255, 5, 5)
    }

    Instance=HLIGHTDS
    {
    Moveable=True
    MeshFile=hlglo_ds.gmt CollTarget=False HATTarget=False LODIn=(0) LODOut=(350) Reflect=True
    }

    Instance=HLIGHTPS
    {
    Moveable=True
    MeshFile=hlglo_ps.gmt CollTarget=False HATTarget=False LODIn=(0) LODOut=(350) Reflect=True
    }

    Instance=BLIGHTPS
    {
    Moveable=True
    MeshFile=blglo_ps.gmt CollTarget=False HATTarget=False LODIn=(0) LODOut=(250) Reflect=True
    }

    Instance=BLIGHTDS
    {
    Moveable=True
    MeshFile=blglo_ds.gmt CollTarget=False HATTarget=False LODIn=(0) LODOut=(250) Reflect=True
    }
     
    SharD likes this.

Share This Page