What's best (performant) way to animate light bulbs?

I want to create a certain effect with animating lights, but I’m not quite sure on how to approach it the most optimized way. I’ve allready considered a couple of techniques, but I really need to have full control over every light, so I can make custom animations. Spritesheets are really not an option, because that’s very limited.

Here’s an example of what I’m trying to achieve:

alt text

(lights around the text ‘casino’)

It’s really important to know that I want to have full control over every light, but I’m not sure how to do this. I will probably need a plane for every light seperately, but maybe there’s another way…

Thoughts and tips are greatly appreciated.


The easiest way would be to have a single “lights” spritesheet, and each light be a plane with its uvs set to the right spot in the sheet (animating UV values is quite doable). i.e. On, Off, White, Yellow, Blue, etc.

If you have to control each one individually, there’s no way to do it other than make them all separate. :slight_smile:

You could use actual Light objects but I’d recommend against that for performance / visual reasons.