moving dynamic lights

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
Deamonic
Posts: 19
Joined: Tue Oct 25, 2005 10:09
Location: Australia.

moving dynamic lights

Post 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?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
Deamonic
Posts: 19
Joined: Tue Oct 25, 2005 10:09
Location: Australia.

Post 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)
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
Deamonic
Posts: 19
Joined: Tue Oct 25, 2005 10:09
Location: Australia.

Post 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.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post 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.
Deamonic
Posts: 19
Joined: Tue Oct 25, 2005 10:09
Location: Australia.

Post 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.
Locked

Return to “GZDoom”