Welcome to Cockpitbuilders.com. Please login or sign up.

January 13, 2026, 10:56:19 PM

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
1472 Guests, 0 Users
Members
Stats
  • Total Posts: 59,788
  • Total Topics: 7,895
  • Online today: 1,956
  • Online ever: 1,956
  • (Today at 10:53:05 PM)
Users Online
Users: 0
Guests: 1472
Total: 1472

COUNTDOWN TO WF2024


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

Welcome

Lightning, ambient 'pit lighting in X-PLane

Started by RayS, August 29, 2016, 09:46:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RayS


The DMX RGB project continues...

Using an RGB Light bar, a Teensy, and an RS-485 converter, I'm able to extract sky color, and also simulate lightning in stormy conditions.

No more dark 'pit when flying in broad daylight.

No video yet, but should have something available in the next few days...
Ray Sotkiewicz

bernard S


RayS

I put together some lightning profiles last night on the Teensy board. 16 different types of lightning strikes, on top of creating ambient lighting inside the pit..

I'll put it in the sim tonight and do a quick video.
Ray Sotkiewicz

bernard S

Okay i will be the one to ask ... ambient lighting, I assumed was the actual flight deck lighting in all conditions ..by way of example daylight dawn dusk etc... but what you are saying (doing ) is ambient  lighting from external sources such lightening .. thus it if there is'a'strike say on aft qtr  window thid'will reflect on the deck as it would in real world ..do I understand this correctly ? This being the case this project if yours is well cool and worthy or a single malt :-)

RayS

I fly X-Plane and X-PLane outputs 2 different types of lighting in terms of RGB coloration: Sky color & Cockpit color.

Both sets translate nicely to Ambient lighting inside the pit and the 2 RGB groups aren't really much different in terms of values.

I extract those values into a Teensy card, convert it internally into a DMX-compatible serial output, feed that teensy output into a TTL-to-RS485 converter, then feed THAT signal into a DMX RGB controller, which then controls an RGB LED Light bar. (Whew!)

When this project started I was hoping that "Ambient Lighting" also included X-Plane lightning strikes. I never saw that they do, which left me to model various types of strikes myself inside Teensy, then collect weather info on the basis that if there's severe weather in the flying area, there's probably lightning strikes.

One thing I thought of just now, is that I have a delay built into the Teensy of 1 second. That may be causing the teensy to miss the strikes entirely. I'll have to play more with that.

But for now, I'll put together that quick video tonight. :-)
Ray Sotkiewicz

Like the Website ?
Support Cockpitbuilders.com and Click Below to Donate