1 point light = ? spot lights
yimmasabi
Join Date: 2006-11-03 Member: 58318Members
Ok here is an equation for the use of better cpu/gpu load.
1 point light = N x spot light ; N = ?
If we consider point light is a sphere and spot light is 90 deg
N may be 8 but i m not sure. It should be somehow tested.
I need this answer cuz corridors need much more lights.
e.g. should have to use 3 spotlight for one point light in a corridor ?
1 point light = N x spot light ; N = ?
If we consider point light is a sphere and spot light is 90 deg
N may be 8 but i m not sure. It should be somehow tested.
I need this answer cuz corridors need much more lights.
e.g. should have to use 3 spotlight for one point light in a corridor ?
Comments
Just don't put lights in so that it lags a lot, if it lags take some out.
<!--quoteo(post=1743028:date=Dec 8 2009, 08:21 PM:name=Max)--><div class='quotetop'>QUOTE (Max @ Dec 8 2009, 08:21 PM) <a href="index.php?act=findpost&pid=1743028"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->The performance in the editor right now doesn't reflect the performance in the game or what it will be like in the final version of editor, so I wouldn't try to extrapolate too much from it.<!--QuoteEnd--></div><!--QuoteEEnd-->
That is... For better or worse? Surely you guys on certain number of lights/shadows per scene, right?
If we can use more than two shadow-casting lights in the editor without too much lag, that's already great news because those are looking great.
God knows why but in some situations the norm lights seem to try screw me over so I tend to use spotlights.
God knows why but in some situations the norm lights seem to try screw me over so I tend to use spotlights.<!--QuoteEnd--></div><!--QuoteEEnd-->
+1 I agree.
God knows why but in some situations the norm lights seem to try screw me over so I tend to use spotlights.<!--QuoteEnd--></div><!--QuoteEEnd-->
What exactly do you mean by "better" or "worse"?
Better in everyway.
You can move them independantly so you dont have to abide by true physics.
You can have them 2 different colours, 2 different intensitys and 2 different ranges.
You can have one that needs to be shadow causing to have shadows whilst the other doesnt, same with atmostspheriic.
Basically it is just better in all ways.
Tested it, it's an exact opposite for me. I'm quite sure there are geometry/shadows/distance properties we aren't taking into account here.
Also, like Max said, this may just be a quirk with the Alpha.
<!--quoteo(post=1743330:date=Dec 10 2009, 11:34 PM:name=PsympleJester)--><div class='quotetop'>QUOTE (PsympleJester @ Dec 10 2009, 11:34 PM) <a href="index.php?act=findpost&pid=1743330"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Better in everyway.
You can move them independantly so you dont have to abide by true physics.
You can have them 2 different colours, 2 different intensitys and 2 different ranges.
You can have one that needs to be shadow causing to have shadows whilst the other doesnt, same with atmostspheriic.
Basically it is just better in all ways.<!--QuoteEnd--></div><!--QuoteEEnd-->
That's actually a pretty neat trick if you need to do things that way. Of course you'll never get actual even spherical light distribution.
Also, like Max said, this may just be a quirk with the Alpha.
That's actually a pretty neat trick if you need to do things that way. Of course you'll never get actual even spherical light distribution.<!--QuoteEnd--></div><!--QuoteEEnd-->
Why would you EVER want that?
Why would you ever not want to is a better question. Spotlights are more of special-case tools for highly directional lighting, which rarely occurs when using actual light sources, lightbulbs, ambient and outdoors alike (although it may occur a lot more in NS2).
There are situations where you would use points, but a lot of the time you can get a better result by including a spotlight with a point light, you would rarely want the two to be visibly distinct, but often you will want to send light in one general direction for your primary light in any given area, because that creates good shadows and allows you to illuminate a room evenly using a light source that does not originate in the centre of the room.
For example: <img src="http://ns2.squarespace.com/storage/concept_railcar_room.jpg" border="0" class="linked-image" />
I think that light is supposed to be in the corner of the room judging from the shadows, now in order to make that look good I'd probably use a spot.
I'd put an omni in to give the basic glow around the light source, but for the actual casting into the room, I'd probably use a wide spot with a very blurry edge because if I used an omni it would overbrighten around the light itsefl, whereas using a spot I can create a bright area in the middle of the room without overpowering anywhere.
Of course if I was using pre-baked lighting I would probably place a lot of low power ambient omni lights around the place as well just to scatter it around a bit, but with dynamic lighting I would have to use as few lights as possible, which means the omni/spot pair you need to make most lights look good, and then one or two kickers to soften the shadows and set the general mood of the room.
Generally you want two primary lights from two different directions and a kicker (low, ambient light) lighting any object in order to make it look best, so that means six lights at most, two of which should be casting shadows and possibly one with the light beams enabled, or both if the engine blends it nicely and it doesn't lag.
Even in the image you can see a difference, the ceiling is quite a bit darker than the floor, so you'd at the very least put a spotlight pointing downward to create that effect, and that is true of any light really, regardless of where it's located in the scene. Ceilings should be dark because the horizontal space is where the level is located, and also it gives clever aliens a bit of an advantage because dark ceilings mean people don't look up.
Granted performance is no object in the situation, of course: say, Alpha right now can't handle more than three dynamic lights without lagging out on my machine, but that'll certainly change.