Digital Paint Discussion Board

Development => Mapping => Topic started by: Lapppy on November 21, 2008, 10:51:23 PM

Title: Problems with lighting
Post by: Lapppy on November 21, 2008, 10:51:23 PM
While i have been trying to make some small maps to test out lighting, i cant seem to get the sun light working. Here is what i mean.

(http://img509.imageshack.us/img509/3806/lighthelppu9.th.png) (http://img509.imageshack.us/my.php?image=lighthelppu9.png)(http://img509.imageshack.us/images/thpix.gif) (http://g.imageshack.us/thpix.php)

The floor is black, but the sky works and stuff. Can anyone help? ???
Title: Re: Problems with lighting
Post by: Eiii on November 21, 2008, 11:12:42 PM
The sun lighting probably isn't 'working'-- the skybox is just always fullbright. Can you post the worldspawn parameters you're using?
Title: Re: Problems with lighting
Post by: Laged on November 22, 2008, 06:28:16 AM
Also, did you add a light value of 150 to the sky sufraces?
Title: Re: Problems with lighting
Post by: Lapppy on November 22, 2008, 09:39:05 AM
Quote
The sun lighting probably isn't 'working'-- the skybox is just always fullbright. Can you post the worldspawn parameters you're using?
I am using:

"classname" - "worldspawn"
"sky" - "pbsky4"
"_sun_light" - "500"
"_sun_angle" - "75 -30"
"_sun_diffuse" - "200"
"_sun_ambient" -"30"

of course, i am only testing out lights, so i just chose some random numbers that i found on the fourms to test.

Quote
Also, did you add a light value of 150 to the sky sufraces?


I dont know how to do that yet. :o

EDIt: I got it working. Thanks ;D
Title: Re: Problems with lighting
Post by: Laged on November 22, 2008, 12:52:40 PM
So, what was wrong with it? How did you fix it?
Someone might have the same problem and he might find this if (I highly doubt this will happen) he decides to search the forums instead of making a new thread.
Title: Re: Problems with lighting
Post by: Lapppy on November 25, 2008, 06:43:48 PM
I simply checked the light flag, and added the value of 150. :)