[bzr] Light shines through doors
#59
Quote:If two cubes join, they share the Verecies the cubes ar econnected with. This makes for a certain amount of illumination.

And that's exactly what I wouldn't change. It causes glitches with closed doors, true. But open doors on the other hand or simple connections between tunnels look more 'realistic' this way if one might dare to call that realistic at all. And it does so because of this seemingly uncorrect behaviour.

A completely different story is the blue glow in D2 level 1 where faces are obviously lit from behind. That has to be dealt with, but the more I think about this, the stranger I find it. In any game engine I know, geometry is held in various lists, the most important being vertex lists containing the position information and face lists containing three indeces for each face that point to the vertex list and (normally) normal lists that store the face normal for each face.

In case geometry consists of only two adjacent rectangles that would make 6 vertices and 4 triangles, each with one normal. That is enough information to determine whether a triangle gets light from a light source or not depending on whether the light source is in front or behind the triangle. That has nothing to do with the 'shared' vertices. At least in a pure software engine one could always make an appropriate check before a triangle is drawn. Not sure though, how OpenGL handles this. But I somehow can't imagine that OpenGL ignores face normals when applying light.

Btw. Secondary light bounces have nothing to do with metallic reflections (at least not in the cgi sense). Try this (in the real world): in a dark room, take a bright flashlight and point it at a short distance to a white wall. Despite only a small fraction of the wall is lit by your flashlight, the whole room gets illumination due to light bouncing back from the wall into the room. The walls act as secondary, tertiary and so on light sources. While physically that is indeed some kind of reflection, in computer graphics this effect is handled idependently from metallic reflections. One relflects light (GI), the other one reflects surface geometry (metallic reflections).

It's only by accident that the very simple vertex lighting Descent uses, that is totally agnostic of such secondary lighting effects, partly creates something remotely similar due to its own inherent weaknesses.

But why fight something that does more good than harm?



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 Descenteer - 06-23-2011, 04:46 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)