Page 1 of 2

Sunlight but no light on textures

Posted: Fri Jan 03, 2003 2:05 am
by Tempered
I added the sunlight using the tutorial but for some reason when I compile my map the textures of the buildings is black. I've also made a bridge that is elevated from the ground but it's pitch black. I've put in a light and it works but I want it to be day time and not have a bunch of little lights. Please help.

Also, how can I tell what my suncolor is set too? Is there a way to tell in the worldspawn settings?

Thanks!

Posted: Fri Jan 03, 2003 2:08 am
by General Death
Highlight your skybox and input

Value: Suncolor
Key: 80 80 80

80 80 80 is just a start...play with those numbers for different levels of light.

hmmm

Posted: Fri Jan 03, 2003 2:09 am
by Shifty
I havn't tried sunlight yet at the moment im using ambient light

Just in case u dont know how

press n to bring up the console

select worldspawn and enter the following

ambientlight:80 80 80 (you can experiment with this figure)

Posted: Fri Jan 03, 2003 2:11 am
by General Death
Suncolor will give you a real world feel in your lighting and can be directional.

Ambientlight is not directional can gives a map a unreal lighting effect.

Cool

Posted: Fri Jan 03, 2003 2:14 am
by Shifty
I'll try that out then :D

Posted: Fri Jan 03, 2003 2:19 am
by General Death
May take longer on complie but imho its well worth it...

Posted: Fri Jan 03, 2003 2:23 am
by Guest
It's still not working. I tried both the suncolor and the ambientlight but neither is working. I'm sure I'm doing something stupid.



Image

Posted: Fri Jan 03, 2003 2:27 am
by General Death
Are you useing sundirection?

Looks like the angles maybe set so that the sun is under the map...

This link works good for loging in:
http://dynamic4.gamespy.com/%7Emap

hmmm

Posted: Fri Jan 03, 2003 2:28 am
by Shifty
I can only think of giving it a bigger value

but im sure Gen Death will have a better Idea

Posted: Fri Jan 03, 2003 2:30 am
by Tempered
Yes, I tried to set the direction at -45 90 0. I tried some other values too. What should I try to set it too? What about the value?

Posted: Fri Jan 03, 2003 2:33 am
by General Death
The first number in the set controls the left to right placement of the sun.

The Second number in the set controls the height of the sun off the horizion.

The last number does nothing.

Try -45 180 0

Posted: Fri Jan 03, 2003 2:40 am
by Tempered
Would it have something to do with the lightmap density? What should I try setting that to?

Posted: Fri Jan 03, 2003 2:42 am
by General Death
Tempered wrote:Would it have something to do with the lightmap density? What should I try setting that to?
:(..never messed with that so I dont know. Seemed like to me it could have been the second number of 90 in your sundirection since that dead set on the horizion. Thats why I suggested 180 since that would be like 12 noon light.

Posted: Fri Jan 03, 2003 2:50 am
by Tempered
When I compile it says the following. See the part where it says initial lighting - 0 emmitting surfaces? Is that something there?




======== MOHlight Version 1.48 ========
----- FS_Startup -----
----------------------
26866 files in pk3 files
reading C:\PROGRA~1\EAGAME~1\MOHAA\maps\bridge2.bsp
reading C:\PROGRA~1\EAGAME~1\MOHAA\maps\bridge2.vis

====== Initial Lighting ======
0 light emitting surfaces
(0.21) seconds.

====== Radiosity Lighting ======
(0.02) seconds.
(0.47) seconds.
(0.69) seconds.
(0.01) seconds.
(0.00) seconds.
(0.00) seconds.
(0.00) seconds.
(0.01) seconds.
(0.00) seconds.
(0.01) seconds.
(0.00) seconds.
(0.00) seconds.
(0.00) seconds.
(0.01) seconds.
(0.00) seconds.
(0.00) seconds.
(0.00) seconds.
(0.01) seconds.
(0.58) seconds.
(0.00) seconds.
(0.47) seconds.

====== Calc Static Models ======
Total Models Lit: 0
Total Vertecies Lit: 0
Total Vertecies that were in Solid Leafs: 0
Data Size: 0 bytes

====== Calc Light & Diffuse Grids ======
(0.03) seconds.
(0.16) seconds.

====== Compress Light & Diffuse Grids ======

====== Final Lightmap Assembly ======
(0.00) seconds.

====== Entity Lighting Lights ======

====== Write Out BSP File ======
writing C:\PROGRA~1\EAGAME~1\MOHAA\maps\bridge2.bsp
4 seconds elapsed

Posted: Fri Jan 03, 2003 3:01 am
by General Death
Nope...thats normal..:(

Everything looks good in your complie there :?