Game Development Community

Relighting

by AIDan · in Torque Game Engine · 12/31/2001 (6:39 pm) · 6 replies

I know there are many threads about real-time relighting in missions.

Is it possible to relight a single object like a building??
As I know, Torque lights up each object in a single task.

greetings
Daniel

#1
01/01/2002 (10:52 am)
I don't think there is a way to relight a single object by itself. The mission lighting does light each building one at a time though, so it might not be hard to add.
#2
01/02/2002 (12:14 am)
I'm going to work on relighting only so many objects per second. So you can have near real-time lighting. Then I'll work on night/day transitions, and a moving sun and moon.

Which brings me to a question. Is the sun supposed to be visible like it was in T1? I can't see it in the sky, but I can see the effect it has on shadows. Is there something I need to do to see it, or will I have to make it myself?


Dark
#3
01/02/2002 (1:36 am)
There might be a problem with relighting.

I don't think that non-static objects are lighten up.
So, you need some kind of non-moveable objects which are not static, but can be lightend, because you cannot change their position.

greetings
Daniel
#4
01/02/2002 (10:02 am)
I don't think there is a visible sun in T2, I think they were rolled into the sky boxes.
#5
01/11/2002 (5:28 am)
that may pose a problem with dynamic lighting:

The sky box texture itself will need to changed significantly throughout the average day. currently the only dynamic aspect of the sky is the moving clouds, this approach may exploit that.

1: map the sky box with a gradient eg:pastel horizon up to rich blue above. the colours would need to be dynamic but the mapping could remain the same.

2: this could have a radial gradient white-black located where the sun is, similar to the dynamic weapon light decal. As day passes this will need to move to track the sun. also colour values altered, eg gradient will be amber at sunset instead of just of white at lunch.

3: to have clouds react accordingly each current standard layer may need to be built out of two layers. both layers would be the same or similar, but one will be offset slightly in the direction of the sun. by having them interact eg leading edge brighter, where they both double up a neutral cloud colour, and the trailing edge fractionally darker.

im not sure about the logistics of remapping like this but sounds promising to me, then again it is 3:00 am.

it may pay to check out operation flashpoint, they did a solid job of dynamic light....

good luck keep us posted.
#6
04/25/2002 (8:09 pm)
Sorry to resurrect an old topic, but I was wondering if Chris has made any progress on relighting a scene.