8 hardware lights at one time=fairly slow as it is. Think about more than 8 software lights. That's rediculous. If you really need more than 8 lights, and will be running on fast hardware, then do lighting on a shader. Can have as many dynamic lights as you want and will be a heck of a lot faster than software lighting
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.
I already did a test implementation with more than 8 lights in a huge Irrlicht scene. Actually it were about 500 lights. It worked quite fast, and when I have time, I think I'm going to add this as new feature to Irrlicht.
niko wrote:I already did a test implementation with more than 8 lights in a huge Irrlicht scene. Actually it were about 500 lights. It worked quite fast, and when I have time, I think I'm going to add this as new feature to Irrlicht.
Isn't the 8 light limit only meant per object? So you can have as many lights in the scene as you want, but only the 8 nearest to a mesh matter. And this should suffice for almost all needs, since the difference between 8 or 9 lights is neglectable for most cases.
niko wrote:I already did a test implementation with more than 8 lights in a huge Irrlicht scene. Actually it were about 500 lights. It worked quite fast, and when I have time, I think I'm going to add this as new feature to Irrlicht.
That's awsome!
Agreed! I think this is one of the most valuable sorts of features an engine like Irrlicht can have -- relieving you a bit from the limitations of the hardware and abstracting the details of implementation giving you a more orthogonal interface.
Isn't the 8 light limit only meant per object? So you can have as many lights in the scene as you want, but only the 8 nearest to a mesh matter.
No. This is a hardware limitation.
You can only have 8 lights rendering at the same time even if you cannot see them in the level.
The only fix for this right now is to toggle on/off the lights depending on distance.
niko wrote:I already did a test implementation with more than 8 lights in a huge Irrlicht scene. Actually it were about 500 lights. It worked quite fast, and when I have time, I think I'm going to add this as new feature to Irrlicht.
Awesome man!
Site development -Rock and metal online --- etcaptor.com ------freenetlife.com