Originally Posted By: the_clown
Makes sense. The demo itself works fine. Without having read through the code yet, can any mesh be used for the light models or does it have to be like the example ones?

EDIT: I tried to add a) another pointlight and b) another spotlight by just copying+pasting the existing ones; with two spotlights, I got an fps loss of about 50 percent. Have you tried it with more than two lights yet?


you can use any mesh, of course, but it will be invisible unless you write your own function. I added those dummy models because they get assigned automatically their actions and you can see the direction the spot will have.

About adding more lights, note that I set a resolution of 2048 for that spotlight (default value is 256), so if you add lot of lights with that huge resolution the performance will be really poor.

Last edited by painkiller; 12/06/11 16:34.

3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB