SOLVED nightlights problem

Discussion in 'Track Modding' started by GBJsch, Dec 1, 2020.

  1. GBJsch

    GBJsch Registered

    Joined:
    Aug 4, 2020
    Messages:
    82
    Likes Received:
    252
    I tried a lot and still don't know what I'm doing wrong in this Nightlights. They just don't light up! I even tried to use a nightlight from other tracks and nothing. help.

    upload_2020-12-1_16-27-49.png

    I already tried to put lights on the entire track but still doesn't illuminate anything.

    Nightlights on the SCN file:
    Instance=nightlight1glow
    {
    VisGroups=(1024)
    MeshFile=nightlight1glow.gmt CollTarget=False HATTarget=False Reflect=True
    }
    Instance=nightlight2glow
    {
    VisGroups=(1024)
    MeshFile=nightlight2glow.gmt CollTarget=False HATTarget=False Reflect=True
    }

    Object Instance in 3DSimED:
    upload_2020-12-1_16-40-24.png

    Material in 3DSimED:
    upload_2020-12-1_16-40-56.png

    what do I do?
     
  2. Goanna

    Goanna Registered

    Joined:
    Jan 19, 2012
    Messages:
    1,405
    Likes Received:
    953
  3. Normark

    Normark Registered

    Joined:
    Oct 5, 2010
    Messages:
    237
    Likes Received:
    58
    Your lights are the glow part, the ones that lit up the track is omnilights, and they are just coordinates and informations about there color and intensity
    Just informations in the scn. file, no mesh or materials.
    It could look like this, they are slightly blue in color:
    }
    Light=Omni006
    {
    Type=Omni Pos=(-11.077601, 6.000000, 30.696203) Range=(0.000000, 100.000000) Active=True Intensity=(7.000000) Color=(176, 248, 245)
    }
    Light=Omni007
    {
    Type=Omni Pos=(-34.383919, 6.000000, 76.361427) Range=(0.000000, 100.000000) Active=True Intensity=(7.000000) Color=(176, 248, 245)
    }
    Light=Omni008
    {
    Type=Omni Pos=(48.641163, 6.000000, 54.889946) Range=(0.000000, 100.000000) Active=True Intensity=(7.000000) Color=(176, 248, 245)
    }
    Light=Omni009
    {
    Type=Omni Pos=(88.221588, 6.000000, 4.834601) Range=(0.000000, 100.000000) Active=True Intensity=(7.000000) Color=(176, 248, 245)
    }
    Light=Omni010
    {
    Type=Omni Pos=(116.245651, 6.000000, -49.343662) Range=(0.000000, 100.000000) Active=True Intensity=(7.000000) Color=(176, 248, 245)
    }
     
  4. GBJsch

    GBJsch Registered

    Joined:
    Aug 4, 2020
    Messages:
    82
    Likes Received:
    252
    sorry but I still don't know what to do, I tried but idk what I could have done wrong on it

    I tried 2 things on the SCN:

    1:
    Instance=ilumgrande01
    {
    MeshFile=ilumgrande01.gmt CollTarget=False HATTarget=False
    }
    Instance=nightlight01glow
    {
    MeshFile=nightlight01glow.gmt CollTarget=False HATTarget=False LODOut=(500.0)
    }
    Instance=nightlight02glow
    {
    MeshFile=nightlight02glow.gmt CollTarget=False HATTarget=False LODOut=(500.0)
    }
    Instance=ilumgrande02
    {
    MeshFile=ilumgrande02.gmt CollTarget=False HATTarget=False
    }
    Light=Omni001
    {
    Type=Omni Pos=(-18.799999, 400.000000, 22.400000) Range=(0.000000, 100.000000) Active=True Intensity=(12.000000) Color=(176, 248, 245)
    }
    Light=Omni002
    {
    Type=Omni Pos=(25.000000, 400.000000, 22.400000) Range=(0.000000, 100.000000) Active=True Intensity=(12.000000) Color=(176, 248, 245)
    }

    2:
    Instance=ilumgrande01
    {
    MeshFile=ilumgrande01.gmt CollTarget=False HATTarget=False
    }
    Instance=nightlight01glow
    {
    MeshFile=nightlight01glow.gmt CollTarget=False HATTarget=False LODOut=(500.0)
    Type=Omni Pos=(-18.799999, 400.000000, 22.400000) Range=(0.000000, 100.000000) Active=True Intensity=(12.000000) Color=(176, 248, 245)
    }
    Instance=nightlight02glow
    {
    MeshFile=nightlight02glow.gmt CollTarget=False HATTarget=False LODOut=(500.0)
    Type=Omni Pos=(25.000000, 400.000000, 22.400000) Range=(0.000000, 100.000000) Active=True Intensity=(12.000000) Color=(176, 248, 245)
    }
    Instance=ilumgrande02
    {
    MeshFile=ilumgrande02.gmt CollTarget=False HATTarget=False
    }

    in the 1 the lights just don't worked, and in the 2 it doesn't illuminated anything, just like in the screenshot below
    upload_2020-12-1_23-18-39.png
     
  5. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    Have you placed an omni light in the scene? The omni lights need to be named NIGHTLIGHT00(01, 02, etc), the glows, you can have them all as one object, or many, but they need to be called NIGHTLIGHT00GLOW, it turns on when the NIGHTLIGHT00 omni does.
     
  6. GBJsch

    GBJsch Registered

    Joined:
    Aug 4, 2020
    Messages:
    82
    Likes Received:
    252
    I tried to do it in 3DSimED but it does not worked.

    my SCN was like this:
    Instance=nightlight03
    {
    Type=Omni Pos=(-18.799999, 400.000000, 22.400000) Range=(0.000000, 100.000000) Active=True Intensity=(10.000000) Color=(250, 250, 250)
    }
    Instance=nightlight03glow
    {
    VisGroups=(32)
    MeshFile=nightlight03glow.gmt CollTarget=False HATTarget=False
    }
    Instance=ilumgrande03
    {
    MeshFile=ilumgrande03.gmt CollTarget=False HATTarget=False LODOut=(10000.0)
    }
     
  7. Goanna

    Goanna Registered

    Joined:
    Jan 19, 2012
    Messages:
    1,405
    Likes Received:
    953
    Try this... the only thing I've changed from yours is in blue

    Light
    =nightlight03
    {
    Type=Omni Pos=(-18.799999, 400.000000, 22.400000) Range=(0.000000, 100.000000) Active=True Intensity=(10.000000) Color=(250, 250, 250)
    }
    Instance=nightlight03glow
    {
    VisGroups=(32)
    MeshFile=nightlight03glow.gmt CollTarget=False HATTarget=False
    }
     
  8. GBJsch

    GBJsch Registered

    Joined:
    Aug 4, 2020
    Messages:
    82
    Likes Received:
    252
    nothing
    upload_2020-12-2_11-29-13.png
     
  9. GBJsch

    GBJsch Registered

    Joined:
    Aug 4, 2020
    Messages:
    82
    Likes Received:
    252
    I tried to put some more lights, put it closer to the ground, increase the light intensity but nothing
     
  10. Brent

    Brent Registered

    Joined:
    Nov 5, 2015
    Messages:
    236
    Likes Received:
    111
    Don't use ilumgrande for the name if that's your glow mesh.
    I noticed originally you had Light=Omni001
    This should be this:
    Light=NightLight001

    It's important the naming lines up between the light omni and instance of the glow mesh.

    Light=NightLight001
    {
    Type=Omni Pos=(15.029381, 9.138912, -406.351288) Range=(0.000000, 40.000000) Active=True Intensity=(4.500000) Color=(255, 238, 193)
    }

    And your glowmesh should be this:
    Instance=NightLight001Glow
    {
    MeshFile=NightLight001Glow.gmt CollTarget=False HATTarget=False
    }

    Also, I believe for the material in 3DsimED, Specular RGB needs to be set to 000000.
     
  11. GBJsch

    GBJsch Registered

    Joined:
    Aug 4, 2020
    Messages:
    82
    Likes Received:
    252
    ilumingrade is not the glow mesh, and the names are lining up but still the same thing

    Instance=NightLight003Glow
    {
    MeshFile=nightlight003glow.gmt CollTarget=False HATTarget=False LODOut=(10000.0)
    }
    Instance=NightLight003
    {
    Type=Omni Pos=(-19.234119, 400.000000, 12.500000) Range=(0.000000, 100.000000) Active=True Intensity=(3 0.000000) Color=(250, 250, 250)
    }
     
  12. Brent

    Brent Registered

    Joined:
    Nov 5, 2015
    Messages:
    236
    Likes Received:
    111
    Ok, wasn't sure if ilumingrade was a glow mesh. One thing I'm noticing is the same Goanna pointed out. Instance should be replaced with Light highlighted in blue below. I always put the Light omni section first in the scn then the instances for glow after. I don't know if that order is important, it's just the order I've always listed them. I also noticed for the Omni true intensity you have a space between the 3 and 0 of 30.0000 that should be removed.

    Light=NightLight003
    {
    Type=Omni Pos=(-19.234119, 400.000000, 12.500000) Range=(0.000000, 100.000000) Active=True Intensity=(3<remove space>0.000000) Color=(250, 250, 250)

    Instance=NightLight003Glow
    {
    MeshFile=nightlight003glow.gmt CollTarget=False HATTarget=False LODOut=(10000.0)
    }


    Try this and making sure specular RGB is 000000 for the glow material setting in 3DsimED
     
  13. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,346
    Likes Received:
    6,572
    Guys, use the CODE tags to post what you're pasting, it keeps things neater and avoids added spaces etc. Press the + to get to it.
     
  14. GBJsch

    GBJsch Registered

    Joined:
    Aug 4, 2020
    Messages:
    82
    Likes Received:
    252
    FINALLY! LIGHTS! upload_2020-12-2_21-50-1.png

    I think that the problem was the XYZ order, I was putting X Y Z in this order, but now I realized that the order in the SCN needed to be XZY and not XYZ!

    anyway, thanks to y'all that commented and helped me!
     
    davehenrie, Lazza and Goanna like this.
  15. Brent

    Brent Registered

    Joined:
    Nov 5, 2015
    Messages:
    236
    Likes Received:
    111
    Glad you got it sorted. I and I think a few us thought the issue was the glow mesh wasn't glowing, the lower set of lights appear that way. Didn't realize it was the omni position you had the issue with.

    One of my very first experiences with modding was trying to add omni lights to an existing track. Should be simple enough, right? Center of the track was 0,0,0 so it shouldn't be so difficult. I spent HOURS scratching my head why the light location was going off in random directions and then was then trying to guess what the coordinates were. I hope someone adds this bit of information in the dev guide.
     
    Schumi likes this.

Share This Page