[bzr] Light shines through doors
#22
Well we must also consider that this lighting does easily spoil secrets.

Take D2 level 1 for example:
Just towards your starting position there is a secret door on the floor leading to shield powerups. Their light affect the floor. It's very easily visible with Colored Lights on. With the "normal" lighting code (the one we have now - the whole floor glows blue slightly.
With the improved lighting it's not sod bad anymore but the secret door itself and the joining edges still glow blue and gives a pretty good hint that a secret is located here.

This is all just a question of realism vs. performance. The line can be VERY slim however and whatever step I'll take I must be very careful to make this code highly optimizable.

EDIT:
As we are on the door-realism topic let me ask some more questions please. Smile
1) Are the doors hermetically sealed? If yes, that could explain that no light could go through.
2) Why does weapon fire actually open doors? Do the doors have a similar nervous system to the eyes of a slug?
3) In that regard why does MY and the Guide Bot's fire open the doors but bots are unable to?
4) When we fire at doors or walls in general, why are there no scorch marks?
5) Why are doors thin as paper but even my Earthshaker missiles cannot blast them away?

Of course I only do this for the laughs but in general I also want to point to the actual level of realism in the game.
Still the issue in this topic is a very valid one.

The game just bases on vertex lighting - i.e. the edge points of the cubes in a level. Still these edge points can be connected to up to 4 different cubes. This actually causes this "light shines through doors" issue. However based on this system we do have the ability to case more soft light to edges of these sides/walls that are not directly in sight of the light source. Fixing door issues might affect that as well and regarding the level od detail in the levels itself it might look a bit more choppy from there on. So this is what I laso gotta address in the future.
Asi said before there are a bunch of solutions to make lighting more realistic - also with doors - but I really gotta pay attention that the system requirements do not jump from ~150Mhz to 1,5Ghz. Just look at the comparison Screenshot again (three posts above) and compare the FPS values both screens show.

This almost makes a reason for true OpenGL lighting (which would still increase the demands on your graphcis chip however) while I'd STILL tend to let the main game engine work independent from OpenGL as long as the whole "3D accelleration" is still ruled by monopoly and not every device does have the necessary capabilities.

Anyways I hope you can understand why I will rather pay attention to this while developing 0.58 instead of rushing this into the last days of the 0.57 development cycle.
The greatest pleasure in life is to do what people say you cannot do.
Uhm... Honey, there's a head in the toilet!
Reply


Messages In This Thread
[bzr] Light shines through doors - by tryone - 05-05-2011, 04:51 PM
RE: Light shines through doors - by Ryusei117 - 05-05-2011, 05:01 PM
RE: Light shines through doors - by tryone - 05-06-2011, 01:24 PM
RE: Light shines through doors - by Ryusei117 - 05-06-2011, 08:57 PM
RE: Light shines through doors - by Hawkins - 05-06-2011, 09:02 PM
RE: Light shines through doors - by Ryusei117 - 05-06-2011, 09:29 PM
RE: Light shines through doors - by Ryusei117 - 05-06-2011, 09:58 PM
RE: [bzr] Light shines through doors - by tryone - 05-07-2011, 10:53 AM
RE: [bzr] Light shines through doors - by tryone - 05-31-2011, 07:04 PM
RE: [bzr] Light shines through doors - by Hawkins - 05-31-2011, 08:11 PM
RE: [bzr] Light shines through doors - by tryone - 06-13-2011, 02:25 PM
RE: [bzr] Light shines through doors - by Hawkins - 06-16-2011, 07:13 AM
RE: [bzr] Light shines through doors - by Hawkins - 06-16-2011, 09:27 PM
RE: [bzr] Light shines through doors - by Hawkins - 06-23-2011, 01:14 PM
RE: [bzr] Light shines through doors - by Hawkins - 06-23-2011, 01:20 PM
RE: [bzr] Light shines through doors - by Hawkins - 06-23-2011, 04:56 PM
Re: [bzr] Light shines through doors - by zico - 07-07-2011, 09:06 AM
Re: [bzr] Light shines through doors - by Hawkins - 07-07-2011, 10:10 AM
Re: [bzr] Light shines through doors - by zico - 07-07-2011, 10:11 AM
Re: [bzr] Light shines through doors - by lloyd - 05-30-2012, 09:48 PM
Re: [bzr] Light shines through doors - by zico - 05-30-2012, 09:58 PM
Re: [bzr] Light shines through doors - by lloyd - 05-30-2012, 11:50 PM
Re: [bzr] Light shines through doors - by zico - 05-31-2012, 08:59 AM
Re: [bzr] Light shines through doors - by lloyd - 05-31-2012, 05:31 PM
Re: [bzr] Light shines through doors - by zico - 05-31-2012, 06:53 PM
Re: [bzr] Light shines through doors - by lloyd - 05-31-2012, 07:22 PM
Re: [bzr] Light shines through doors - by Hawkins - 06-01-2012, 03:02 AM
Re: [bzr] Light shines through doors - by lloyd - 06-02-2012, 01:03 AM
RE: Light shines through doors - by zico - 05-05-2011, 06:06 PM
RE: Light shines through doors - by zico - 05-06-2011, 01:49 PM
RE: Light shines through doors - by zico - 05-06-2011, 09:36 PM
RE: [bzr] Light shines through doors - by zico - 06-01-2011, 02:40 PM
RE: [bzr] Light shines through doors - by Zealot - 06-06-2011, 08:32 PM
RE: [bzr] Light shines through doors - by zico - 06-06-2011, 08:45 PM
RE: [bzr] Light shines through doors - by Zealot - 06-07-2011, 06:00 AM
RE: [bzr] Light shines through doors - by zico - 06-07-2011, 07:52 AM
RE: [bzr] Light shines through doors - by Zealot - 06-07-2011, 09:44 AM
RE: [bzr] Light shines through doors - by zico - 06-07-2011, 09:59 AM
RE: [bzr] Light shines through doors - by zico - 06-16-2011, 06:58 AM
RE: [bzr] Light shines through doors - by zico - 06-16-2011, 07:20 AM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 10:10 AM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 10:39 AM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 11:05 AM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 12:22 PM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 12:42 PM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 01:12 PM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 01:25 PM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 01:45 PM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 02:07 PM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 02:45 PM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 04:59 PM
RE: [bzr] Light shines through doors - by zico - 06-23-2011, 06:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)