Farming Simulator UK Forums

The biggest unofficial UK forums for Farming Simulator.

Search Rules Chat Wiki Gallery Privacy Policy

Ahoy there, guest!

Log in Register


[FS19] [Solved] How to get lights to flash?

Seen 1362 times - 0 Members and 1 Guest are currently viewing this thread

Pages: [1]
  Print  
Robert997
1000+
Joined August 2012
Apples and chocolate milk


« on: December 08, 2018, 10:12:54 pm »

So I'm trying to get the grips with all the new textures and I'm struggling with the lights. I can get them to turn on in every color I want but I can't seem to make the indicators flash. Could someone point me in the right direction?  
« Last Edit: December 08, 2018, 11:36:33 pm by Robert997 » Logged

We'll either find a way, or make one
FSModding_Gary
FSModding
Joined November 2015


« Reply #1 on: December 08, 2018, 11:08:02 pm »

more than likely a shader Parameter
Logged
Mattxjs
"some sort of genius"
Mattxjs Modding
Joined January 2013


« Reply #2 on: December 08, 2018, 11:15:57 pm »

So I'm trying to get the grips with all the new textures and I'm struggling with the lights. I can get them to turn on in every color I want but I can't seem to make the indicators flash. Could someone point me in the right direction?   
It's the UV offset Wink -1 I believe
Logged
Robert997
1000+
Joined August 2012
Apples and chocolate milk


« Reply #3 on: December 08, 2018, 11:36:17 pm »

Thank you very much. I got it working.
Logged

We'll either find a way, or make one
TSM
Formerly 'Tycoonspaceman'
1000+
Joined June 2013
"Trust yourself. You know more than you think"


« Reply #4 on: December 10, 2018, 03:42:20 pm »

out of interest how did you make the lights ?
Logged



In prosperity, our friends know us; in adversity, we know our friends.

"by John Churton Collins"
Robert997
1000+
Joined August 2012
Apples and chocolate milk


« Reply #5 on: December 10, 2018, 06:31:51 pm »

out of interest how did you make the lights ?

Just like any other model regarding modeling, uv map and gloss and normal texture. The only difference is for lights you have to add a Vertex Colors Channel (you can find it under object data in Blender). You have to paint that channel using the Vertex paint mode, you paint it in the color that you want your light to be when it's on (rear lights for example will have to be painted red). In GE in the shader menu you select static light, and it's a light. You can test it in GE by turning the first number for lightControl up (all the way up to 200).

This is the way I got it working but maybe there is a better way, I don't know.
Logged

We'll either find a way, or make one
TSM
Formerly 'Tycoonspaceman'
1000+
Joined June 2013
"Trust yourself. You know more than you think"


« Reply #6 on: December 10, 2018, 06:32:54 pm »

Just like any other model regarding modeling, uv map and gloss and normal texture. The only difference is for lights you have to add a Vertex Colors Channel (you can find it under object data in Blender). You have to paint that channel using the Vertex paint mode, you paint it in the color that you want your light to be when it's on (rear lights for example will have to be painted red). In GE in the shader menu you select static light, and it's a light. You can test it in GE by turning the first number for lightControl up (all the way up to 200).

This is the way I got it working but maybe there is a better way, I don't know.

Thanks it seems I was doing it that way already Cheesy , but i was forgetting to tick the vertex option!

  seems to be working!
« Last Edit: December 10, 2018, 07:09:32 pm by TSM » Logged



In prosperity, our friends know us; in adversity, we know our friends.

"by John Churton Collins"
Dimi3
Newbie
Joined December 2018


« Reply #7 on: December 24, 2018, 11:24:37 pm »

Hello Robert,can you explain how exactly did you do it? Smiley I have a light made but cant figure out how to make ot flash.
« Last Edit: December 24, 2018, 11:28:43 pm by Dimi3 » Logged
Mattxjs
"some sort of genius"
Mattxjs Modding
Joined January 2013


« Reply #8 on: December 24, 2018, 11:54:02 pm »

Hello Robert,can you explain how exactly did you do it? Smiley I have a light made but cant figure out how to make ot flash.
I posted the answer further up, it's UV offset -1
Logged
Dimi3
Newbie
Joined December 2018


« Reply #9 on: December 25, 2018, 04:03:23 pm »

But i cant find the UV Offset anywhere
Logged
Robert997
1000+
Joined August 2012
Apples and chocolate milk


« Reply #10 on: December 25, 2018, 06:05:43 pm »

But i cant find the UV Offset anywhere
For Blender I recommend using this plug-in:
https://nld-farmers.nl/files/file/368-material-selector-for-blender-279/
That will makes working with the uv maps a lot easier.
« Last Edit: December 25, 2018, 06:07:15 pm by Robert997 » Logged

We'll either find a way, or make one
Dimi3
Newbie
Joined December 2018


« Reply #11 on: January 02, 2019, 06:24:11 pm »

I still cannot get it to work with my model,i tried every single UV combination and it just wont work..
Logged
Robert997
1000+
Joined August 2012
Apples and chocolate milk


« Reply #12 on: January 02, 2019, 08:01:12 pm »

Have you added a Vertex Colors Channel in Blender? (see one of the posts above)
Have you painted this Vertex Colors Channel in Blender? (see one of the posts above)
Have you UV mapped the model in Blender?
Have you given the uv map the correct UV offset in Blender? (see one of the posts above)
Have you added the vehicleshader in GE?  (see one of the posts above)
Have you selected "staticlight" variation in GE?  (see one of the posts above)
Have you turned the light on by turning the first "lightcontrol"digit all the way up to 200?
Does the light turn on but doesn't it flash?
Logged

We'll either find a way, or make one
Dimi3
Newbie
Joined December 2018


« Reply #13 on: January 02, 2019, 10:15:02 pm »

I did it,seems the system is not perfect,sometimes it didnt register the uv's place.The lights turned out great.  Cheesy https://imgur.com/a/bsEJYBf
« Last Edit: January 02, 2019, 10:17:59 pm by Dimi3 » Logged
Pages: [1]
  Print  
 
Jump to:  

Back Top of page


Powered by SMF 1.1.21 | SMF © 2013, Simple Machines