Sun?

Tutorials for Call of Duty 4 mapping

Moderator: Core Staff

Post Reply
DMShadow
CJ Wannabe
CJ Wannabe
Posts: 5
Joined: March 27th, 2009, 8:38 pm

Sun?

Post by DMShadow » March 27th, 2009, 8:43 pm

Hey guys, I've had your page bookedmarked for awhile but this is my first post. I was wondering if you could give me some help with my lighting? Oh K, so I was working on this map. I read the IW web page about how to insert a sun. I did what they told me to but for some reason the program won't read my .txt files. I need to copy another file and edit it. I had to with my .gsc and my .csv. I didn't have any other .sun files and naming it .sun doesn't work.... My work around for this was to open the mp_test.map delete everything and go from there. I don't think the mp_test.map use's a .sun file but it's in the worldspawn. I was able to get my lighting to sorta work from there.

So my question now is what settings do what? My outdoor lighting has a blue tint. Sorta like a moon light. I'm using sky_pripyat. The sun in that sky is located about x 1808 y 2018 on my map. Would they be my settings for sundirection? I want it coming away from that point? I'm a little confused on why each value has 3 #'s behind it. Not sure on the differance between _color and suncolor. Also, ambient is set to 0?

My light preview and in game lighting has a pretty drastic differance.

my settings look like this

_color .4 .3 .2
ambient 0
classname worldspawn
contrastGain .40
diffusefraction 0.40
suncolor 0 0 0
sundifusecolor 0.5 0.6 1
sundirection 900 900 0
sunlight 5
sunRadiosity 1

While compileing the map I also get.

"WARNING Increasing sunradiosity from 1 to 2 to match ambient + diffuse"

Any help would be greatly appreciated!

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Sun?

Post by Drofder2004 » March 27th, 2009, 8:57 pm

To get started, I have always 'copied' a official maps wolrldspawn settings. Remember, there are people employed to simply adjust the lighting on maps.

Linky

Copy those settings from one of the similar maps to your own.

I have never used 'sunRadiosity' and some of your values seem way out.
Direction - 900 900 0

Direction is a basis of 3D direction, the maximum any of those values can be is 359.

(x, y, z)
x - Between (-90) and (90)
y - Between (0) and (180)
z - Always 0.

Sunlight of 5 seems extremely high, between 0.5 and 2 is usually recommended.

Also, create a GRID file.
Linky
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

DMShadow
CJ Wannabe
CJ Wannabe
Posts: 5
Joined: March 27th, 2009, 8:38 pm

Re: Sun?

Post by DMShadow » March 27th, 2009, 9:02 pm

Thank you for that link! I did create a GRID file. Question about that..Does it always say error in game when you're running around eating them dots? The error comes up in pink and it's followed by ********** or something similar? Thanks again for your help.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Sun?

Post by Drofder2004 » March 28th, 2009, 2:53 pm

I would need to know the exact error.
To save some time there is a texture called "lightgrid". If you make large boxes in areas around your map where the player CAN travel, it will save you a lot of time 'eating' the dots.
Also, when making a grid file, put your run speed (or timescale) up to x3 and save yourself a long process :)
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

DMShadow
CJ Wannabe
CJ Wannabe
Posts: 5
Joined: March 27th, 2009, 8:38 pm

Re: Sun?

Post by DMShadow » March 31st, 2009, 1:07 am

The error must be normal, it does update the grid file so I'm not to worried about it. Thanks tho :)
Next step is the minimap and the loading screen. Uhg..hope I can find some good tuts. Took me a few days to do the custom decals. Hopefully I'll be done bye the end of the week. :) Thanks for your help!

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Sun?

Post by Drofder2004 » March 31st, 2009, 2:06 am

No problem.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest