tobinator 41 Posted October 27, 2016 Hey guys, I'm just trying to imitate a light tube in a garage but I don't know what I'm doing wrong because it's just shining onto the ceiling but not onto the bottom. I'm using a bunch of small objects which I placed in a row into the tube and this is in the init of these objects: if (isServer) then {this setPos [getPos this select 0,getPos this select 1,12]; this setVectorUp [0,0,1]}; light1="#lightpoint" createVehicle [0,0,0]; light1 setLightBrightness 0.15; light1 setLightAmbient [1,1,0.7]; light1 setLightColor [1,1,0.7]; light1 lightAttachObject [this,[0,0,0]]; this setPos [getPos this select 0, getPos this select 1,4.2]; light1 setLightUseFlare true; light1 setLightFlareSize 0.1; light1 setLightFlareMaxDistance 500; light1 setLightAttenuation [2,4,80,0]; this hideObject true; and this is how it looks: I already tried several things like: light1 setVectorUp [0,0,-1]; but that doesn't change anything. Does anybody know how to flip the light direction? Or maybe someone has a better idea to imitate the light tube. Thanks for every help in advance! Share this post Link to post Share on other sites
Tajin 349 Posted October 28, 2016 The light has no direction. As the classname #pointlight indicates, it is an omnidirectional point light. I guess your best bet is to simply place it a bit lower, maybe halfway between the lamp and the floor. You should also probably make it bigger and a lot softer, those flurescent lamps are pretty bright but rather diffuse. Share this post Link to post Share on other sites
tobinator 41 Posted October 28, 2016 The light has no direction. As the classname #pointlight indicates, it is an omnidirectional point light. I guess your best bet is to simply place it a bit lower, maybe halfway between the lamp and the floor. You should also probably make it bigger and a lot softer, those flurescent lamps are pretty bright but rather diffuse. Okay thank you for your help. Now it's looking better! But... ...it seems like there's a limit of lightpoints that can be shown at the same moment + it looks a bit weird that the light shines so intense onto the ceiling...I think I need a alternative method to imitate the flurescent lamps. Does anybody knows a alternative? Share this post Link to post Share on other sites