3D Cockpit Lighting
From X-Plane Wiki
Third Party Development > Aircraft Development > 3D Cockpits
Third Party Development > Aircraft Development > Lighting
Starting with X-Plane 931, you can create up to 3 3-d lights in the cockpit 3-d cockpit.
Setup
3-d lights are configured per airplane. Go to the "Viewpoint" dialog box, "int lights" tab, "3-d cockpit lighting" pane. Three interior lights are supported and can be controlled by the associated datarefs. Lights may be directional or omni-directional. Setting the width to zero degrees makes them omni-directional. Pressing the space bar in the window toggles the light viewing mode which graphically shows the configuration of the lights.
The extent of the 3-d lights is shown in the wireframe view as a set of spheres or cones showing where the light radiates to.
You can tie each of the 3 lights' brightness to any dataref; the popup menus let you select common controllers for link building service brightness (e.g. instrument brightness, panel brightness, etc.).
Application
- 3-d cockpit lights will apply to attached objects when their lighting mode is "inside" in the "misc objects" screen.
- 3-d cockpit lights will apply to the cockpit object when the "cockpit object gets interior lighting" check-box is checked.
- 3-d cockpit lights will apply to the panel texture when the "cockpit object gets interior lighting" check-box is checked and you use ATTR_cockpit_region to create panel texture.
The 3-d cockpit lights cannot affect scenery.