Re: How to create a down light embedded in the ceiling
here are some details.Last attempt of the day, a directional downlight withPoint is, concept works, but the two variables are hard to handle. For me, anyway. LightSource diameter, LightSource placement in model. Which is the better generic model?Code: Select all
<light catalogId='okh#spot_dir_cut' name='Spot_focus_dir' creator='okh' model='1/downlight_directional.obj' icon='0' x='69.5' y='290.55923' width='20.0' depth='10.0' height='10.0' modelSize='14936' staircaseCutOutShape='m .52,0.5 a .23,.46 0,0,1 .46,0 a .23,.46 0,0,1 -.46,0 z' power='0.4'> <lightSource x='0.25' y='0.5' z='0.7' color='00BB9854' diameter='0.125'/> </light>
Code: Select all
<lightSource x='0.25' y='0.5' z='0.7' color='00BB9854' diameter='0.125'/>Code: Select all
lightSourceX#n=0.25*lightWidth
lightSourceY#n=0.5*lightDepth
lightSourceZ#n=0.7*lightHeight
lightSourceColor#n=#BB9854
lightSourceDiameter#n=0.125Code: Select all
modelXplan = modelWidth / 2
modelYplan = -(modelDepth / 2)Code: Select all
modelElevationProperties = modelElevationPlan
lightSourceXproperties = lightSourceXplan
lightSourceYproperties = -(lightSourceYplan)
lightSourceZproperties = (lightSourceDiameterPlan / 2) + lightSourceElevationPlan - modelElevationPlan