DF-21 Forums Forum Index DF-21 Forums
The Dark Forces Community
 
DF-21.net Home | FAQ | Search | Memberlist  | Register 
Profile | Log in to check your private messages | Log in

Question about dynamic lights

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DF-21 Forums Forum Index -> DarkXL General Discussion
View previous topic :: View next topic  
Author Message
sheepandshepherd
Trandoshan

Joined: 01 Apr 2008

PostPosted: Jan 08, 2010 20:15    Post subject: Question about dynamic lights View user's profile Send private message Reply with quote

Hey, lucius, you've already demonstrated the dynamic lighting feature for sprites, but I have a question for the not-so-near future. When you implement 3D models, I'll probably redo the new enemies in my level in a Special Edition release, and I plan on adding some glowy effects. Right now, I assume the dynamic lights are centered at the sprite/model's origin, but will we in the future be able to put a light source anywhere in the model, in a way that the light moves with the animation? This likely depends on what model formats you decide to support, so I was just wondering if you had any plans (while I'm in the process of designing the enemy Razz ).

The MAZZTer
Death Star
Death Star

Joined: 25 Sep 2003

PostPosted: Jan 09, 2010 05:34    Post subject: View user's profile Send private message Send e-mail Reply with quote

Best way to do lights in models like that would be to use shaders like modern engines use. With shaders you just specify a texture and then effects to apply to it, and then any usage of that texture in DF is affected. Wouldn't work 100% just like that (the same texture may be used for different purposes and so might not look right in all cases) but it could take care of 99% of the hard work.

And the end result would be you would just give the right texture to the model and the texture would emit light.

Of course this is all MY ideas, not sure how lucius is doing lighting.

_________________
http://www.mzzt.net/ | I am a respectable admin with a respectable sig.

lucius
DarkXL Developer
DarkXL Developer

Joined: 17 Feb 2008

PostPosted: Jan 09, 2010 09:56    Post subject: View user's profile Send private message Send e-mail Reply with quote

Currently dynamic lights are placed using the logic scripts. This won't always be the only way though. Anyway the script places it at any point, they are not centered arbitrarily or anything like that. If you wanted to make a 3D lampost and put the light on the top, that is already supported. Proper attachments will also be supported for models, so you could attach to the hierarchy and have it move with the animations properly.

The glow/bloom effect is different. Any "emissive" pixels glow, so it is based on the textures. This works on any surface, it's not any different for models.

_________________
DarkXL....http://darkxl.wordpress.com

Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DF-21 Forums Forum Index -> DarkXL General Discussion 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 © 2001, 2005 phpBB Group