Dynamic Lighting Question!!!

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Irrlicht_Rocks
Posts: 25
Joined: Sun Aug 14, 2005 4:35 am

Dynamic Lighting Question!!!

Post by Irrlicht_Rocks »

I am wondering...
Are the dynamic lights in Irrlicht harware lights... or software lights???
Thanks :wink:
Guest

Post by Guest »

Hardware.
Irrlicht_Rocks
Posts: 25
Joined: Sun Aug 14, 2005 4:35 am

Post by Irrlicht_Rocks »

Thanks for the info. :wink:
I wish they were software lights. :(
disanti
Posts: 367
Joined: Sat Jan 17, 2004 1:36 am
Location: California, US
Contact:

Post by disanti »

Then use the software renderer...
________
Finnish Cooking
Last edited by disanti on Thu Feb 24, 2011 10:38 am, edited 1 time in total.
Irrlicht_Rocks
Posts: 25
Joined: Sun Aug 14, 2005 4:35 am

Post by Irrlicht_Rocks »

disanti wrote:Then use the software renderer...
LOL, that would be rediculous. :wink:
I wish that the DX9 renderer had software dynamic lights so that we don't have the 8 light harware limitation. :)
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

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.

Crucible of Stars
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

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.
Irrlicht_Rocks
Posts: 25
Joined: Sun Aug 14, 2005 4:35 am

Post by Irrlicht_Rocks »

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! :D
Guest

Post by Guest »

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.

Dan
Murphy
Posts: 290
Joined: Mon Dec 13, 2004 12:06 am
Location: United States
Contact:

Post by Murphy »

Irrlicht_Rocks wrote:
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! :D
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.
Irrlicht_Rocks
Posts: 25
Joined: Sun Aug 14, 2005 4:35 am

Post by Irrlicht_Rocks »

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.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

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!
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
Post Reply