Multiple lights per frame

Bugs that have been resolved.

Moderator: Graf Zahl

SlayeR
Posts: 120
Joined: Wed Aug 31, 2005 6:23
Location: Somewhere

Multiple lights per frame

Post by SlayeR »

It seems binding multiple lights to a sprite frame doesn't work in gzdoom, for example, this will only bind CACOBALL2 to the frames:

Code: Select all

object CacodemonBall
{
	frame BAL2A 
	{ 
		light CACOBALL1
		light CACOBALL2
	}

	frame BAL2B
	{
		light CACOBALL1
		light CACOBALL2
	}
...
I'm pretty sure this worked in zdoomgl, so there must be something that's changed to stop this working.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Re: Multiple lights per frame

Post by Graf Zahl »

Why is this report still here?

No, the code is completely unchanged from ZDoomGL and it clearly does not allow multiple light definitions as done here.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia

Re: Multiple lights per frame

Post by Nash »

No multiple lights? Then how come rockets have yellow and red lights at the same time?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Re: Multiple lights per frame

Post by Graf Zahl »

You can have one light definition have multiple effects combined - but you can only add one light definition to a frame.
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: Multiple lights per frame

Post by Gez »

Fortunately. Sometimes, mods include for a reason or another a copy of lights.pk3. If you have it autoloaded as well, imagine the engine attaching the same light twice to each frame...

Return to “Closed Bugs”