PROBLEM WITH RAIN LIGHT

Discussion in 'Car Modding' started by JorgeAH, Jan 7, 2020.

  1. JorgeAH

    JorgeAH Registered

    Joined:
    Jan 25, 2018
    Messages:
    83
    Likes Received:
    5
    Hi, i read the official lights tutorial (gauges and others) and rain light ist not working. I have failure in the materials and files because these message jump after rf2 fail loading. could you help me? i dont know what happen

    thanks
     
  2. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    Material name needs to be RAINLIGHT. Animation is 0,1, I guess manual animation type. Object needs to be in RAINLIGHT instance. Object can have a prefix, but needs to end in RAINLIGHT, example, JorgeAH_RAINLIGHT.gmt.
     
    JorgeAH likes this.
  3. JorgeAH

    JorgeAH Registered

    Joined:
    Jan 25, 2018
    Messages:
    83
    Likes Received:
    5
    and what about the files to the materials? rf2 say me that there is a problem with name00.bmp
     
  4. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    When you use texture animations, you need to have a texture for each animation frame.
    If the texture that you use, for example, has the name lights.dds and the animation has the frames 0,1, you should have the textures lights.dds, lights00.dds and lights01.dds.
     
    JorgeAH likes this.
  5. JorgeAH

    JorgeAH Registered

    Joined:
    Jan 25, 2018
    Messages:
    83
    Likes Received:
    5
    thanks, i will do it
     
  6. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    You can get rid of the lights.dds, you can just use the 00 or 01 or whatever, because the game will never look for lights.dds, so you can save a little space.
     
  7. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    Has there changed something?
    Since i've got error messages in such cases, about "error to load xxx material ..missing texture...." in the past, i always have included the "base" texture too.
     
  8. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    Here is how I did it for the indycar:
    Untitled-1.jpg
    IC18_LEDS.dds does not exist, and it still works.
     
    Bernd likes this.
  9. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    OK, then i will try it out, the next time when i create a material with texture animation. :)
     
  10. JorgeAH

    JorgeAH Registered

    Joined:
    Jan 25, 2018
    Messages:
    83
    Likes Received:
    5
    I Have this problems, what should i do?
     

    Attached Files:

  11. JorgeAH

    JorgeAH Registered

    Joined:
    Jan 25, 2018
    Messages:
    83
    Likes Received:
    5
    i called the material "rainlight" inside the main submaterial and its work; but its work with a kind of "common rainlight" texture not mine.
     
  12. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    To ensure that materials and textures are loaded properly, i would always recommend to give them "unique" names.
    For example "light" is no good name for a material or texture.
    It's better to use something like "[mycar]_light".
    Which names do you use for the rainlight material and texture?
    Check it and rename them accordingly to the suggested.
    That should avoid conflicts with materials and textures from other objects, that are loaded before your car gets loaded and that use the same names already.
     
  13. JorgeAH

    JorgeAH Registered

    Joined:
    Jan 25, 2018
    Messages:
    83
    Likes Received:
    5
    i called material "rainlight", but mine is p004_rainlight and 00 and 01 too for the .dds
     
  14. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    What are you saving it as? DXT5?
     
    JorgeAH likes this.
  15. Tommy78

    Tommy78 Registered

    Joined:
    Apr 3, 2012
    Messages:
    630
    Likes Received:
    725
    Try uncheck the "render target" option in the material.
     
  16. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    Rename the material name "rainlight" into something else that is more unique.
    The rainlight material don't has to be the name rainlight.
    And as @Tommy78 has said, the rainlight may not be tagged with "render target".
    I bet everything (almost :)) that your problem with the wrong texture that is used, is caused by the naming of the material or texture.
     

Share This Page