Page 1 of 1

Sunlight Problems

Posted: Sat Feb 07, 2004 11:42 pm
by jaz_3450
Ok here's my problem i read the create sunlight/skybox tutorial compiled it everything went fine but when i was in game there was no sun it was sunny out plenty of light there was shadows what am i doing wrong now? :cry:

Re: Sunlight Problems

Posted: Sun Feb 08, 2004 12:38 am
by Gen Cobra
jaz_3450 wrote:Ok here's my problem i read the create sunlight/skybox tutorial compiled it everything went fine but when i was in game there was no sun it was sunny out plenty of light there was shadows what am i doing wrong now? :cry:
If you are talking about the sunflare it goes like this.

In the worldspawn in the entity window where you set the sunlight values enter this.

key: sunflarename
value: sun

Hope that helps.

Posted: Sun Feb 08, 2004 3:52 pm
by crunch
Also, make sure you put
suncolor/ 50 50 50
and
ambientlight/ 15 15 15

in the worldspawn k/v fields. The numbers can be adjusted as you get used to it, the higher the number, the brighter the light.

The sky has it's own "light" that does not affect the world, so these other values are needed.

Posted: Mon Feb 09, 2004 12:30 pm
by M&M
im pretty sure that the sun affects the world without ambient light.but the ambient light is needed 2 light ares unreachable by the sun

Posted: Wed Feb 11, 2004 11:26 am
by ziptie2k2
This looks like a good thread to add my ? So here it goes. How do you remove the sun, sundirection, and sunflare values once they are put in? I realised after the fact that I didnt want a sun in my map and I cannot remove it. Is there a certain order in which you have to do this? Or am I forced into keeping it? :?

Posted: Wed Feb 11, 2004 11:37 am
by crunch
@ziptie2k2: Open your entity window and be sure you are in worldspawn.

Click on the k/v pair you want to delete so that it is highlighted, then click on the "Delete key/pair" button.
You can do that for any entry in the entity window.

Posted: Wed Feb 11, 2004 11:48 am
by ziptie2k2
Thanks crunch, thats what I try but when I highlight any of the entries, and click delete, nothing happens. Thats what I mean by possibly an order of deleting them. i.e. if I have to delete the first entry I made, first.
If that makes sense :P

Posted: Wed Feb 11, 2004 1:30 pm
by Jack Ruby
Ziptie, yeah I know the problem of deleting those worldspawn values.

To solve it open the .map in notepad, you will see the values at the top of the document, delete them in notepad, save and your good to go :)

(maybe make a copy of the .map before you destroy it in notepad)

Posted: Wed Feb 11, 2004 2:01 pm
by ziptie2k2
PERFECT!!!!!! :D Thats exactly what I was lookin for, thanx a bunch. :P
That's pretty cool, I never even thought of opening the map in notepad.