Light problem

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
[AoD]beefy[UK]
Private
Posts: 6
Joined: Thu Feb 26, 2004 1:00 am
Location: neath, south wales
Contact:

Light problem

Post by [AoD]beefy[UK] »

When I compile my map with Mbuilder the lights in the map turn in to a kind of rectangular shape and looks terrible is that just a problem with Mbuilder or am I doing something wrong with my light placement?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Could you maybe post a screenshot? I'm not quite sure what you mean...

If you are unable to upload a screenshot anywhere, you can e-mail it to jv_map@mods-r-us.net and I'll post it for you, but I can't do that before tomorrow :(
Image
[AoD]beefy[UK]
Private
Posts: 6
Joined: Thu Feb 26, 2004 1:00 am
Location: neath, south wales
Contact:

Post by [AoD]beefy[UK] »

Image
Thats how i've placed the light in radient. I've got a feeling it should be lower but then some patches of the light go dark.
Image
Thats how it looks after its been compiled in Mbulider. As you can see its all gone a bit of a funny shape.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

light

Post by tltrude »

Sorry, can't see the screenshots. But it may be the video settings you are using in the game.

Point lights should be placed where the bright part does not shine through to the other side of a wall, floor, or ceiling brush. It is ok for the bright part to stick into the wall, just not all the way through. If need be, you can resize them with Key: light and Value: 100 (300 is the default size).

Have you made any other entity settings (key N) for the lights?
Tom Trude,

Image
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

i also have a question about light ,what is linear light?how can light be linear?
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think it means the relation between distance from the light and intensity of the light becomes linear (instead of the more realistic inverse square)... hence if you'd move from the light away the 'amount of light' decreases in a lineair way.

:)
Image
[AoD]beefy[UK]
Private
Posts: 6
Joined: Thu Feb 26, 2004 1:00 am
Location: neath, south wales
Contact:

Post by [AoD]beefy[UK] »

Hmm, it obviously doesn't allow remote linking. I'll just put links to them instead.
http://atlantic.photoisland.com/session ... 3081lg.jpg
This is how I placed it in Radient. Is there something wrong with the placement maybe?
http://atlantic.photoisland.com/session ... 3080lg.jpg
thats how it looks when its built in Mbuilder.
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post by Splaetos »

those links dont work either...

are you sure you have te full address to the image?

try right clicking, going to properties... and select the WHOLE address to copy.... I use snapfish, and the adresses are like 3 lines, so jsut copying out of the browser wont get you anywhere.
When I am king, you will be first against the wall~
Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

jv_map wrote:I think it means the relation between distance from the light and intensity of the light becomes linear (instead of the more realistic inverse square)... hence if you'd move from the light away the 'amount of light' decreases in a lineair way.

:)
right there'd be an equation like light = x -1
or something

I guess you could have quadratic light

x^2 - x - 1

...
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Well I'd think of something like this (just a guess):
Let:
I: light intensity
r: distance from source
c: some constant defining the light decay
L: the light key as set in radiant

Then:
I = L - c * r

(obviously as long as I > 0)

Whereas the default equation (non-linear) would be:
I = L / r^2

Makes sense? :wink:
Image
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

yeah i guess so :?
Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

jv_map wrote:Well I'd think of something like this (just a guess):
Let:
I: light intensity
r: distance from source
c: some constant defining the light decay
L: the light key as set in radiant

Then:
I = L - c * r

(obviously as long as I > 0)

Whereas the default equation (non-linear) would be:
I = L / r^2

Makes sense? :wink:
Yes.


Linear, not exact but you get the point

Code: Select all

I             R
300        0
250         50
200         100
150         150
100         200
50           250
0             300

Standard:

I               R
256           1
128           2
64             4
32             8
16             16
8               32
2               64
1               128
0               256

Very bad example, I understand it but it's hard to explain...
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

linear

Post by tltrude »

Linear lights suck, don't use them.
Tom Trude,

Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Righto the linear lights are too flat looking, standard gives you a smooth look.
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Entity lights suck :idea: Best use surface lights or sunlight :wink:
Image
Post Reply