Inside3D!
     

Color lights in DP

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming
View previous topic :: View next topic  
Author Message
CocoT



Joined: 14 Dec 2004
Posts: 599
Location: Belly-Gum

PostPosted: Thu Nov 16, 2006 10:43 pm    Post subject: Color lights in DP Reply with quote

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 Embarassed
Back to top
View user's profile Send private message Send e-mail Visit poster's website
scar3crow
Inside3D Staff


Joined: 18 Jan 2005
Posts: 837
Location: Las Vegas, NV

PostPosted: Thu Nov 16, 2006 10:52 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
CocoT



Joined: 14 Dec 2004
Posts: 599
Location: Belly-Gum

PostPosted: Thu Nov 16, 2006 10:55 pm    Post subject: Reply with quote

Thanks, scar Smile I'll try that!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Entar



Joined: 05 Nov 2004
Posts: 422
Location: At my computer

PostPosted: Thu Nov 16, 2006 11:10 pm    Post subject: Reply with quote

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 Wink) 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.
_________________
woh... feelin woozy... too much cider...
http://entar.quakedev.com
games fascination - My Game Development Blog/Journal
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
CocoT



Joined: 14 Dec 2004
Posts: 599
Location: Belly-Gum

PostPosted: Fri Nov 17, 2006 10:10 am    Post subject: Reply with quote

Cool! Yup, it's working... I got my little blue light, I'm happy Razz
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!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group