Comments on: Customizing Spill Lights – Two Ways https:/2013/04/customizing-spill-lights-two-ways/ Developer resources for the X-Plane flight simulator Mon, 13 Oct 2014 15:36:53 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Ben Supnik https:/2013/04/customizing-spill-lights-two-ways/#comment-7200 Wed, 17 Apr 2013 18:49:00 +0000 http://xplanedev.wpengine.com/?p=4827#comment-7200 In reply to vonhinx.

Pretty close. For the dataref, you do not need to init the dataref with the same values as the light – rather in your XPLMGetDatavf callback, you need to simply change the values that you wish to change and leave the rest alone.

See here.

http://wiki.x-plane.com/Custom_Lights#Usage_Models_for_Custom_Lights_and_Datarefs

It’s the same idea for custom spills and custom billboards – dataref gets a chance to change all, some, or none of the 9 params.

And…XYZ is _not_ part of the 9 params. If you want to change the XYZ, just use animation. You don’t even need the full custom lgiht for this!

]]>
By: vonhinx https:/2013/04/customizing-spill-lights-two-ways/#comment-7198 Wed, 17 Apr 2013 17:35:20 +0000 http://xplanedev.wpengine.com/?p=4827#comment-7198 Let me get this straight. Create a light, say, in ac3d. Edit light type to LIGHT_SPILL_CUSTOM and add the parameters and dataref in a text editor. I suppose the plugin must initialize the dataref with the same values, then rewriting any parameter, the x-position, for example, would move the light?

]]>