Multiple dynamic light defs on one frame

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
Blue Shadow
Global Moderator
Global Moderator
Posts: 308
Joined: Sun Aug 29, 2010 6:09

Multiple dynamic light defs on one frame

Post by Blue Shadow »

Does the DECORATE method of attaching dynamic lights support attaching more than one dynamic light on a single frame? I know that with the GLDEFS method, you can do the following, but what about the aforementioned DECORATE way?

Code: Select all

PULSELIGHT NCArmor1
{
  Color 0.0 0.0 1.0
  DontLightSelf 1
  Interval 2.0
  SecondarySize 48
  Size 32
}

PULSELIGHT NCArmor2
{
  Color 0.5 0.0 0.35
  DontLightSelf 1
  Interval 2.0
  SecondarySize 32
  Size 24
}

OBJECT NC_NCArmor
{
  Frame NCAR { Light NCArmor1 }
  Frame NCARA { Light NCArmor2 }
}
Also, is it possible (whether from GLDEFS or DECORATE) for two or more frames to have two or more dynamic lights that are different from each other attached to them?

Let's say that I have three frames (NCARA0, NCARB0 and NCARC0), and six dynamic light definitions (NCArmor1, NCArmor2, ..., NCArmor6), can I have lights NCArmor1 and NCArmor2 attached to frame NCARA0, lights NCArmor3 and NCArmor4 attached to frame NCARB0, and lights NCArmor5 and NCArmor6 attached to frame NCARC0?
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: Multiple dynamic light defs on one frame

Post by Gez »

I'm pretty sure only one light can be attached to a frame. In your example, NCARA has only NCArmor2 attached to it, and NCARB (or any other non-A frame) has only NCArmor1.
Locked

Return to “GZDoom”