Adding in a lamp?

Im using scene.addObject to add a point lamp into my scene and each time I add another instance of that same lamp, the new lamp appears but the previous one dissapears. Is this a bug? Im using UPBGE 0.1.8

This is because of how lamps are handled. They are compiled into the shaders, and thus when you add a new lamp, it would need to recompile the shaders (which is very very slow).

The solution is to have, say, 10 lamps, and assign those where needed.

Or wait until the ge_eevee branch gets done, because there they use a UBO to get lighting information into the shader - so it doesn’t need to be recompiled (probably).

I see. I guess I’ll have to do without them for now. Thanks for the help.