LIGHTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
LIGHTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FOR GOD SAKE HOW MANY LIGHTS ARE THERE IN IRRLICHT !! i AM WORKING ON A HUGE PROJECT WITH IRLLICHT NOW I CAN FIND ONLY TWO ACTIVE LIGHTS AND THE REST OF IT ARE NOT WORKING !!!
As most 3D engines do, Irrlicht supports 8 dynamic lights at the same time. For special materials like parallax mapping, this is amount reduced to 2.
However, it is still possible to render your world with >2000 active lights at the same time. Just implement a scene node for this, which renders the scene in a intelligent way, and only uses 8 lights per pass at maximum. I did it this way.
And btw: NOBODY WOULD NORMALLY ANSWER YOUR QUESTION WHEN POSTING IN UPPER CASE CHARACTERS ONLY.
However, it is still possible to render your world with >2000 active lights at the same time. Just implement a scene node for this, which renders the scene in a intelligent way, and only uses 8 lights per pass at maximum. I did it this way.
And btw: NOBODY WOULD NORMALLY ANSWER YOUR QUESTION WHEN POSTING IN UPPER CASE CHARACTERS ONLY.
hehehehe..... Netiquette
http://www.albion.com/netiquette/corerules.html
http://www.albion.com/netiquette/corerules.html
-
- Posts: 93
- Joined: Tue Feb 08, 2005 12:19 pm
write a shader that does the light computations and pass the lights as uniform parameters. Note that you'd probably only want to do per-vertex lighting with a large number of lights and also that you'd want to implement some sort of light occlusion and culling because there is no way you can process >200 (let alone 2000) lights for every vertex in realtime unless you have a very small scene and a very fast machine. Other optimizations, like doing only diffuse lighting for lights not right nearby could also help speed things up. Lights take a quite large performance hit, however. I'm really not sure how many you can realistically have.
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.
Crucible of Stars
Crucible of Stars
-
- Posts: 23
- Joined: Thu Apr 14, 2005 6:59 pm
- Location: Bushland
Back in blitz we'd have 8 lights and a bunch of pivots marking lighting positions. Then just find the closest 8 pivots, position the lights, set the color, distance, etc and render.
I'm sure that when you have access to all the code for the engine it should be possible to select the closest/most affecting lights for each object.
I'm sure that when you have access to all the code for the engine it should be possible to select the closest/most affecting lights for each object.
-
- Posts: 93
- Joined: Tue Feb 08, 2005 12:19 pm
im trying to find something maybe a little easier, but it has to be over 8. so what you are saying you did in Blitz wouldnt work because you still would only have 8.
examples of what i am looking for is like a long tunnel with flickering torches on the wall, NPCs walking around with lamp/torches, shooting a plasma-gun that the bullets glow and light up the world, etc... just some simple ideas that ive been thinking of that would require more than 8 lights, dont need >2000, was just saying that as a number. more realistically i would need like 20-80 or so (as a guess).
examples of what i am looking for is like a long tunnel with flickering torches on the wall, NPCs walking around with lamp/torches, shooting a plasma-gun that the bullets glow and light up the world, etc... just some simple ideas that ive been thinking of that would require more than 8 lights, dont need >2000, was just saying that as a number. more realistically i would need like 20-80 or so (as a guess).
Heh, why don't you just make your tunnel a little more curvy and use the distance formula to check which lights to display?
________
HONDA MANUFACTURING OF ALABAMA SPECIFICATIONS
________
HONDA MANUFACTURING OF ALABAMA SPECIFICATIONS
Last edited by disanti on Thu Feb 24, 2011 10:32 am, edited 1 time in total.
Could you tell me what formula that would be?genesisrage wrote:im trying to find something maybe a little easier, but it has to be over 8. so what you are saying you did in Blitz wouldnt work because you still would only have 8.
examples of what i am looking for is like a long tunnel with flickering torches on the wall, NPCs walking around with lamp/torches, shooting a plasma-gun that the bullets glow and light up the world, etc... just some simple ideas that ive been thinking of that would require more than 8 lights, dont need >2000, was just saying that as a number. more realistically i would need like 20-80 or so (as a guess).
JOIN MY (100mbs 2x 3GHZ CPU) IRRLICHT FORUMS
http://irrlicht.halo4you.com/forums/
For all your programming quesitons and irrlicht ones!.
My fan site: http://www.halo-center.com
http://irrlicht.halo4you.com/forums/
For all your programming quesitons and irrlicht ones!.
My fan site: http://www.halo-center.com