Les – your swarm light effet Mark II

I’ll start a new thread as the other didn’t load properly – probably too long or something. andnbsp;Richard showed me how to use rotatePoint and it makes an easy way to randomly orient the planes. andnbsp;Code follows. andnbsp;Basically I make a plane at the origin on the xy plane, rotate it randomly around the y axis, then rotate that plane randomly around the vector along the first side of the plane. andnbsp;Goddit? andnbsp;then the plane is moved to a random position in the sphere. andnbsp;The attached pics show my distribition looks more hemispheric, but getting there:-)

Code follows in the next thread to andnbsp;make copying easier, as it’s getting longer.

Hope you follow.


You must be logged in to reply in this thread.