Problem

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
bradly
Corporal
Posts: 38
Joined: Sun Oct 26, 2003 3:09 pm

Problem

Post by bradly »

Sorry for for all the questions but I am new to mapping but understand it all, exept light. I made a map that is set in the out doors. I can get the sky workin ok but everything on the ground is black, no light. Do I have to put the light under the info covering the whole map?
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

no sir. u need sunlight. hit n and put in this key/value suncolor 60 60 60 (or whatever u want) ambientlight 20 20 20 sunflare 20 20 20 sundirection 45 90 0. mess with all those numbers to get what u want, what they are is pretty self explanitory.
Image
bradly
Corporal
Posts: 38
Joined: Sun Oct 26, 2003 3:09 pm

Post by bradly »

the light?
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

omniscient wrote:... sundirection 45 90 0.
rather -45 90 0, but take a look urself at VonderCrunch's tut:
http://www.freewebs.com/crunch/tutorials.htm
User avatar
Cheetohs
Brigadier General
Posts: 569
Joined: Sun Jan 04, 2004 6:01 am
Location: Minnesota
Contact:

Post by Cheetohs »

It seems a lot of people are having trouble with the lights and those Bloody Negatives in there values... Make sure you guys read carefully the information you put in the value box, and refer to a tutorial's information about lighting to compare. Just mess with those numbers until you get it the way you want it.

My question is...
Say if you build your 'ground floor' or the level itself higher (Front or side view) on the grid then gridpoint 0. Let's say up in the 4000-5000ish area. Can your lighting values still be the same as if you have your map on the gridpoint 0? or would you have to change them?
.:c|H|EE|TO|H|s|:.
Image
Need a thorough map tester? Shine the Cheetohs signal!
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

the sunlight values are describing the direction of the sunlight, like a vector, and not the position of the light source (i.e. the sun) in the map. all sunbeams in the map are parallel. So the position of the objects in your map will not matter.
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

bradly wrote:the light?
dunno what that means
-45 puts it under the map and i dont think that that is very good for a map that is supposed to be realistic. if looking at it pises u off put the flare lower, but and under ground sun is just wierd.
Image
User avatar
Axion
Major General
Posts: 683
Joined: Mon Sep 29, 2003 5:14 am
Location: Northern California
Contact:

Post by Axion »

Somebody correct me if I'm wrong, but -45 doesn't put the sun under the map.
"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

omniscient wrote:-45 puts it under the map
:shock:

and Axion, me, I won't be able to
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

@Bradley:
The values for your lighting need to be in worldspawn.
If you open the entity window, and scroll all the way to the bottom, you will see it. Click on it and then enter your lighting k/v pairs. Or, you can simply select a skybrush, and then when opening the entity window, worldspawn is automatically selected.
In the entity window you will see 2 white "entry fields". One is Key and the other is Value, also called "k/v pair" or just "k/v". SO:

These are the k/v pairs you need:
suncolor/60 60 60
sundirection/-45 90 0
sunflarename/sun


Start with those. Make sure you put the sunflare in so that you can verify that it is in fact a worldspawn mapping problem and not a compile issue.

@omniscient:

A POSITIVE First Value in sundirection will place the sun under the map.
A NEGATIVE First value will place it above the horizon.
These facts hold true as long as your third value is Zero.
Image
bradly
Corporal
Posts: 38
Joined: Sun Oct 26, 2003 3:09 pm

Post by bradly »

I gotcha, thanks again guys

And what about a working .30 cal machine gun?
Last edited by bradly on Thu Jan 15, 2004 1:45 am, edited 1 time in total.
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

hmm, wtf, mine always goes under. i will have to investigate this further. this comp is always givin me problems. (usually my faulyt :P )
Image
Post Reply