GameMaker: Studio

GameMaker: Studio

Ver estadísticas:
MrBadWithNames 12 DIC 2016 a las 13:13
Overcome 8 light points limit?
How would I go about having more that 8 lights at a time?
Game is 3D
Not all lights need to be seen at once
Perferably not shaders
< >
Mostrando 1-3 de 3 comentarios
The Winter Bud 12 DIC 2016 a las 13:33 
The rule is that you can only have 8 "active" lights at a time.

I would make an object that acts as a Light Manager. Define all your light types and their parameters in an 2 dimensional array. Then have the light manager destroys lights that are not in use and create lights if not already created for the player. The array gives the light manager what lights to to create and gives them their parameters. You could use a priority que to hold lights that are created and prioritiezed either by how far or near they are to the player. Then pull the id's from the que to know which ones to destroy if they are {X} amount of distance away from player. The 8 lights available should give you good coverage and not look as if things are blinking on and off if you design the level properly.
Blind 12 DIC 2016 a las 15:35 
I haven't worked with the 3d, but I think it's 8 light TYPES. So all overhead lamps can count as a singular light and so on.
The Winter Bud 12 DIC 2016 a las 15:41 
That's correct BBX, It's like particle types. You define it and then create them where you need them. But you can't have more than eight types, but you can put that type all over the room.
Última edición por The Winter Bud; 12 DIC 2016 a las 15:41
< >
Mostrando 1-3 de 3 comentarios
Por página: 1530 50

Publicado el: 12 DIC 2016 a las 13:13
Mensajes: 3