Forum: Vue


Subject: Proof of concept - Ecosystem of lights

yggdrasil opened this issue on Mar 29, 2005 ยท 19 posts


yggdrasil posted Tue, 29 March 2005 at 4:31 PM

Created a simple bollard out of 3 stacked cylinders, one with a milky glass type material, and saved as vob.

Added terrain (named T1) and populated with LOW density of bollards (160 instances).

Simple python script (below) and WAIT.

<br></br>def pyLightsCallback(k):<br></br><br></br>       T = ObjectByName("T1")<br></br><br></br>  Eco = GetEcosystemOnObject(T)<br></br><br></br>   strong = 20<br></br><br></br>     for i in range(0, Eco.GetInstanceCount()):<br></br><br></br>              pos = Eco.GetInstancePosition(i)<br></br><br></br>                l1 = AddPointLight()<br></br><br></br>            l1.SetPosition(pos[0],pos[1],pos[2]+27)<br></br><br></br>         l1.SetPower(strong)<br></br><br></br><br></br><br></br><br></br><br></br>T = ObjectByName("T1")<br></br><br></br>T.SetInitFrameCallback(pyLightsCallback)<br></br><br></br><br></br>

--

Mark

Mark