lizz Posted February 17, 2013 Report Posted February 17, 2013 All,For my scenery project I used the LIGHT_SPILL_CUSTOM light to create an omni directional light that easily can be adapted in color by using the RGB parameters. This works great however these lights are always ON, day and night.Is there a way to let these lights be switched together with all other lighting in X-plane?I know there is a dataref involved in this light parameter but I'm not sure if that is the way to control it. Anybody her knows how to do this? Thanks Lizz Quote
scubajuan_new Posted April 26, 2013 Report Posted April 26, 2013 (edited) You should use "LIGHT_PARAM full_custom_halo_night" instead. You can customise the colour, shape and direction of the light beam exactly like with LIGHT_SPILL_CUSTOM. Use LIGHT_PARAM full_custom_halo for lights that are on all the time. It does not check for a dataref so it will also be a bit faster. LIGHT_PARAM full_custom_halo X Y Z A S Dx Dy Dz W X,Y, Z Position relative to the center of the objectA Master dimer or brightnessS SizeDx, Dy, Dz Direction in which the light shinesW Width (Cos(angle), I am not sure if you can use 1 for omnidirectional lights) Edited April 26, 2013 by scubajuan_new 1 Quote
lizz Posted April 26, 2013 Author Report Posted April 26, 2013 Thanks for the information.I will try this as soon as I'm finished modelling all of my objects and start defining the lights. Regards, Lizz Quote
MacCekko Posted January 14, 2014 Report Posted January 14, 2014 Lizz, first of all, sorry for the horrible delay in my answer, but I've read yhis thread only now.As for your answer, you may want to try the dataref "sim/graphics/animation/lights/normal" which is stated (inside Datarefs.txt inside X-Plane folder) that is "float" Dr with "[9]" indexes, non writable and affects lights so that they are ON at night, but i guess OFF at day.I have found that DataRef tied at LIGHT_SPILL_CUSTOM lights often inside lights.obj from Aerosoft sceneries. So, I guess it works after all...! I was looking deeper in the matter of LIGHT_SPILL_CUSTOM (as searched in Google with this whole word) and I found your post. I hope that you have solved your issue since almost a year ago, but if you did not, well... I hope I have been of some help. Ciao, Cekko™ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.