Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

Color lights in DP

| Inside3d Forums Forum Index -> Engine Programming

View previous topic :: View next topic
Author | Message
--- | ---
CocoT Joined: 14 Dec 2004 Posts: 599 Location: Belly-Gum |

Posted: Thu Nov 16, 2006 10:43 pm Post subject: Color lights in DP |

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

Back to top |

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

Posted: Thu Nov 16, 2006 10:52 pm Post subject: |

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 |

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

Posted: Thu Nov 16, 2006 10:55 pm Post subject: |

Thanks, scar I'll try that!

Back to top |

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

Posted: Thu Nov 16, 2006 11:10 pm Post subject: |

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.
_________________
woh... feelin woozy... too much cider...
http://entar.quakedev.com
games fascination - My Game Development Blog/Journal

Back to top |

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

Posted: Fri Nov 17, 2006 10:10 am Post subject: |

Cool! Yup, it's working... I got my little blue light, I'm happy 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 |

Display posts from previous:

| 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