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
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.
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.
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.
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.
i called the material "rainlight" inside the main submaterial and its work; but its work with a kind of "common rainlight" texture not mine.
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.
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.