Forum

Color lights in DP

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Color lights in DP

Postby CocoT » Thu Nov 16, 2006 10:43 pm

Sorry, another DP-newbie question...

Is there a way I can attach particular values to lights in my map editor for them to appear colored in DP?
If not, do I have to use .lit files to have colored lights in my maps? Are there other ways to do it?
If I do need them, how do I create .lit files?

Thanks for your patience :oops:
User avatar
CocoT
 
Posts: 695
Joined: Tue Dec 14, 2004 5:39 pm
Location: Belly-Gum

Postby scar3crow » Thu Nov 16, 2006 10:52 pm

Once upon a time in BSP, iirc, I merely added the field of "_color" to the light entity, and then in that would have 3 numerical values, like 150 0 25 or something of the sort. Then compiled with LordHavoc's tools and the BSP had colored light in the lightmap when ran in DP.
User avatar
scar3crow
InsideQC Staff
 
Posts: 1054
Joined: Tue Jan 18, 2005 8:54 pm
Location: Alabama

Postby CocoT » Thu Nov 16, 2006 10:55 pm

Thanks, scar :) I'll try that!
User avatar
CocoT
 
Posts: 695
Joined: Tue Dec 14, 2004 5:39 pm
Location: Belly-Gum

Postby Entar » Thu Nov 16, 2006 11:10 pm

In GTKRadiant, for example, you select the light, hit K, and a little display will pop up so you can change the color.

As for colored lightmaps, you'll need to get a compiler that can export .lit files - hmap2 works, just do hmap2 -light mapname as your command line.

DP (and Vr2 ;)) will load colored lights as .rtlights directly from the BSP, as long as the compiler doesn't strip them out. You might not want these lights as .rtlights (just using the lightmap) so you'll need to do the .lit route if not.
User avatar
Entar
 
Posts: 439
Joined: Fri Nov 05, 2004 7:27 pm
Location: At my computer

Postby CocoT » Fri Nov 17, 2006 10:10 am

Cool! Yup, it's working... I got my little blue light, I'm happy :P
In fact, it looks like some of the "natural" lighting has been stripped away in the process, but then I'll just have to work on adding some white light here and there and it should work. Thanks, guys!
User avatar
CocoT
 
Posts: 695
Joined: Tue Dec 14, 2004 5:39 pm
Location: Belly-Gum


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest