Monday 27 March 2017

lightning simulation with stroboscope

I have added a small and cheap stroboscope that give more realistic lightning effects by throwing flashes onto the screen. A LUA  switches the stroboscope on and off for 400 msec by a random function and if storms are present. In air it also gives flashes when cumulus, moderate or more turbulence and heavy precipitation are present. The LUA sets an user offset, which switches an user gate in Prosim. The user gate finally switches an Phidget relay card output. This Relaycard is used only for 220 Volts.

The in air function for cumulus clouds requires the .dll, that was programmed by Benny and reads weather parameters from AS16 and writes them into user offsets. See also this post:
http://b737sim.blogspot.de/2017/03/turbulence-in-buttkicker-for-as16.html
If you delete the second part for the cumulus clouds inside the LUA it will work without the.dll.

If you have any ideas for improving the LUA I would be happy, if you let me know that. Use the form on the bottom of the page to contact me. The LUA can be downloaded here:

The LUA parameters random, ipc.sleep and event.timer can be changed to tune it for your needs. I found the present adjustements fit very good to the lightning frequency of P3Dv3.4 and AS16.


You may see it in this video:





This is the stroboscope:



Here you can buy the stroboscope (Conrad/Voelkner):
https://www.voelkner.de/products/798627/Renkforce-Stroboskop-Weiss.html

I am also thinking off adding a second, much stronger stroboscope which gives very bright flashes, but then very rarely.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.