Page 1 of 1
moving dynamic lights
Posted: Thu Jan 05, 2006 5:56
by Deamonic
okay. so ive come up to a part in my map where there is a crapload of machinery working, and one of them is just like a looping sector behind a transparent wall (glass) and its meant to have dynamic lights moving around it.(for no darn reason. just to look pretty, i guess) how would i do this?
Posted: Thu Jan 05, 2006 10:06
by Graf Zahl
In your case I think the easiest way is to place some invisible things in the scrolling sector and assign lights to them.
But keep in mind that moving dynamic lights are a lot more costly than non-moving ones. Larger amounts may cause slowdowns.
Posted: Thu Jan 05, 2006 12:47
by Deamonic
okay. but... how do i assign dynamic lights? do i have to do this in the
doom light definitions lump or is it possible some other way? (FS, i think, has a setcorona function, but not sure if this could be used for dynamic lights)
Posted: Thu Jan 05, 2006 12:51
by Graf Zahl
Of course you need the light definition lump. That's what it is there for. And best forget about setcorona. I still haven't implemented it. The way Legacy did that it's an awful hack at best.
Posted: Thu Jan 05, 2006 13:06
by Deamonic
problem is: im using more than one color (ill be using blue and green) and i really dont want to sacrifice two things to use as lights. can i make a thing in DECORATE and define a light for it?
EDIT: DUH. thats how the NJFlare worked.
i just dont know how to define light to a decorate object.
Posted: Thu Jan 05, 2006 14:29
by Enjay
Deamonic wrote:i just dont know how to define light to a decorate object.
Exactly the same way that you do for a non-decorate object. In DOOMDEFS/GLDEFS you define the light type, identify the actor and say which sprite numbers you want to use it.
Posted: Fri Jan 06, 2006 3:21
by Deamonic
i dissected a wad to find out last night and was too tired to get back on and edit saying i did.
now i gotta learn decorate.
EDIT: Ive been trying for a while now to make a crona decorate thing but havent been able to succeed (its always the missing sprite image) so eventually i gave up on that and made it invisible, then tried adding a light to it. the light didnt show up.
i just gave up and tried invisible candles and they dont even move on the scrolling sector.
i need help.