Programming Question please help with engine flicker effect

Mr Martian

Orbinaut/Addon dev/Donator
Addon Developer
Donator
Joined
Jun 6, 2012
Messages
382
Reaction score
254
Points
78
Location
Sydney, Australia, Earth, Sol
Website
www.orbithangar.com
i am coding a simple vessel but i want to give it an engine flicker effect, like the one seen on the XR-2. i was wondering what code i should use. any help would be much appreciated. :cheers:
 
Take a look at VESSEL::AddPointLight in the Orbiter SDK docs. Just add a PointLight at each main engine and vary the intensity each engine's LightEmitter based on the current throttle level. :tiphat:
 
Take a look at VESSEL::AddPointLight in the Orbiter SDK docs. Just add a PointLight at each main engine and vary the intensity each engine's LightEmitter based on the current throttle level. :tiphat:

That would create a solid, unflickering light. For an exhaust flickering effect, it's part of the EXHAUSTSPEC struct, specifically the 'modulate' attribute.
 
That would create a solid, unflickering light. For an exhaust flickering effect, it's part of the EXHAUSTSPEC struct, specifically the 'modulate' attribute.

Isn't that a beta2012 feature of the API?
 
I don't believe so -- I just checked the XR source and the EXHAUSTSPEC structure's modulate field is set in the code, which runs under Orbiter 2010 P1.

Thanks, Izack, for the reminder. :tiphat:
 
Nope, it's existed at least since 2010, and is in that SDK's documentation.

Seem to have always missed that part of the P1 SDK.
 
Seem to have always missed that part of the P1 SDK.

It's easy to miss if you aren't looking for it. I had happened to be wondering how the Deltaglider's light-flicker effect was achieved after seeing it in the new UCGO Arrow, and, finding nothing operating on the exhaust in the DG source, went to Class List -> EXHAUSTSPEC. Hey, what do you know, it's built in! :P
 
Back
Top