lfnetwork.com mark read register faq members calendar

Thread: A good lighting tutorial?
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 08-20-2003, 06:32 PM   #1
MightyM
Rookie
 
Join Date: Aug 2003
Posts: 109
A good lighting tutorial?

I did the one at rich deisels and i know how to use radial and spot lights now, but are there any other kinds of lights to use? How about a 'sun' light a light you can apply to a sky box that makes it light up your level as the sun would?
MightyM is offline   you may: quote & reply,
Old 08-20-2003, 06:35 PM   #2
Shotokan
 
Shotokan's Avatar
 
Join Date: Jan 2003
Posts: 899
Well you could add a light command thing to your skybox (I'm sorry, but you gotta ask rgoer about those). I'm not very good with skyboxes and shaders though, sorry. It is possible though. I'm pretty sure...


Online name: _Leviathan_
Shotokan is offline   you may: quote & reply,
Old 08-20-2003, 08:37 PM   #3
Shadyz
 
Join Date: Aug 2002
Posts: 146
I also need this for my custom skybox.
Shadyz is offline   you may: quote & reply,
Old 08-21-2003, 01:52 AM   #4
wedge2211
Commander, Rogue Squadron
 
wedge2211's Avatar
 
Join Date: Jul 2002
Location: Ithaca, NY
Posts: 2,320
Excerpt from my Terragen Custom Skies Tutorial (check JK2Review/tutorials or my site for the full text):

Quote:
If you want your sky to emit light, this is what you need:

textures/yourmap/sky_light
{
qer_editorimage textures/skies/sky.tga
q3map_skylight <amount> <iterations>
q3map_sun <R> <G> <B> <light> <heading> <elevation>
surfaceparm sky
surfaceparm noimpact
surfaceparm nomarks
notc
q3map_nolightmap
skyParms textures/yourmap/yoursky 512 -
}

The skylight command tells the game that your sky emits light. Replace <amount> with the amount of light (100 is fairly bright), and make <iterations> about 3-4. Note that q3map_skylight only works with the q3map2 compiler, if you are using SOF2MAP, you must use q3map_surfacelight <amount>.

q3map_sun controls the sun that emits light in game. Enter the color of the sunlight in RGB normalized values (they range from 0 to 1), and input the light strength (100 is fairly bright), heading of the sunlight in degrees, and the elevation in degrees (0 is sunrise/set, 90 is noon).
Edit: You can also write your own light-emitting shaders. To make a shader emit light, just add the line "surfacelight <amount>" to the code. You'll have to play with <amount> to get it right (it's a numeric value, think of it as the shader's light key).


wedge2211 is offline   you may: quote & reply,
Old 08-21-2003, 02:33 PM   #5
Shadyz
 
Join Date: Aug 2002
Posts: 146
Thanks alot that worked!
Shadyz is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JO Mapping > A good lighting tutorial?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:21 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.