Sun Light


(Ice-Colder) #1

Ok can someone plz explain to me how to add sunlight into my map in a fashion that any slack jawded jokel can understand. I searched the forum and couldnt find anything clear. Couldnt find any tuts either, i know it has sumthing to do with worldspawn but i dont understand the explanantion :angry: any ways plz help me out :smiley:


(hummer) #2

Start here: http://www.heppler.com/shader/

A basic understanding of shaders is a good thing when adding sunlight to your map
 since you’ll be playing with sky shaders.

After you get the jist, you could copy and modify and exisiting SD shader. You could also just use an SD sky shader for your sunlight, although you have no control over what it’ll look like.


(Ice-Colder) #3

hx for fast reply ill check it out


(Ice-Colder) #4

mmmmm, i dont understand a single that is written there, all i want is a light emitting sun, why does it have to be so difficult :banghead:


(hummer) #5

Then use one’s of Splash Damages sky shaders. I don’t know any off hand, since I’m at work, but I’d imagine they’re in “skies”, or maybe “sd_skies” under the texture menu.


(Ice-Colder) #6

I used battery_sky which is in skies, but i hardly emits light, and there is no sun


(HerrK) #7

Another question about this theme


Can somebody explain me how i can change by sky-textures the direction where the light comes!?

(NdK) :wink:


(Ifurita) #8

try this:

http://planetquake.com/qworkshop3/tutorials/light-help/index.html


(chavo_one) #9

This is controlled by the sky shader with the command “q3map_sun”.

From shaderlab.com:

q3map_sun
(red) (green) (blue) (intensity) (degrees) (elevation)

Color will be normalized, so it doesn't matter what range you use. The intensity falls off with angle but not distance. A value of 100 is a fairly bright sun.

degrees:            0ÂÂș = east.                      90ÂÂș = north.

elevation:          0ÂÂș = sunrise/sunset.       90ÂÂș = noon.


If you are writing your own shader then you may want to investigate “q3map_sunExt”. This allows you to blur the sun shadows a bit with the penumbra effect.

http://www.splashdamage.com/forums/viewtopic.php?t=4790&highlight=q3mapsunext


(HerrK) #10

Thx for help, i will test the skyshader
 :slight_smile:

(NdK) :wink:


(Ice-Colder) #11

I did what the tut told me to do and it still doesnt work, why cant they just make a box that you check Insert sun, why does it have to be so complicated :frowning: