i heard niko overcome the 8 light limit
does any one have some code please
8 light limit
-
genesisrage
- Posts: 93
- Joined: Tue Feb 08, 2005 12:19 pm
i keep hearing everyone say 8 lights is enough... but im having a HUGE problem trying to find out when 8 light would be enough...
for a game like Doom3 1 light is enough
but one thing ive been trying to find out for a long time, what if you want a large room with 10 lights on each side wall... and give off dynamic shadows... but you can shoot the lights out and they go dark... and you have a plasma sci-fi gun where the bullets have a glow that lights up around them... and you can shoot 10 bullets in one second...
granted this example is a little more elaborate than one might need... but for a sci-fi shooter this is something that you would very likely see. there is a hundred examples i could think of that 8 lights would never be enough. i know hardware lighting takes a lot of computer power to do, but i know many games out there have ways of doing this. i know they arent using DX lights, but what options do we have to create that many dynamic lights?
and if anyone out there has actually done something that acts as if there were more than 8 dynamic lights it would be awesome if you could "share the wealth"
for a game like Doom3 1 light is enough
but one thing ive been trying to find out for a long time, what if you want a large room with 10 lights on each side wall... and give off dynamic shadows... but you can shoot the lights out and they go dark... and you have a plasma sci-fi gun where the bullets have a glow that lights up around them... and you can shoot 10 bullets in one second...
granted this example is a little more elaborate than one might need... but for a sci-fi shooter this is something that you would very likely see. there is a hundred examples i could think of that 8 lights would never be enough. i know hardware lighting takes a lot of computer power to do, but i know many games out there have ways of doing this. i know they arent using DX lights, but what options do we have to create that many dynamic lights?
and if anyone out there has actually done something that acts as if there were more than 8 dynamic lights it would be awesome if you could "share the wealth"
In Quake 2 and 3, for example, this is done using what is basically lightmapping. The glows don't cast shadows, but then... there's only just so much computing power per frame.genesisrage wrote:and you have a plasma sci-fi gun where the bullets have a glow that lights up around them... and you can shoot 10 bullets in one second...
heared Niko talking about 500 dynamic lights
http://irrlicht.sourceforge.net/phpBB2/ ... =500#48064
http://irrlicht.sourceforge.net/phpBB2/ ... =500#48064
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
I think you can have as many lights as you want if you implement your own lighting model with shaders and pass on the closest light positions to the shaders, but as in everything this means a greater performance cost.
About Doom3 i believe there no lights at all in that game. The stuff you use in the game, the flashlight is actualy done with a shader and the flickering lights, i belive are some sort of clever lightmap animation trick.
About Doom3 i believe there no lights at all in that game. The stuff you use in the game, the flashlight is actualy done with a shader and the flickering lights, i belive are some sort of clever lightmap animation trick.