Jump to content
  • Advertisement
Sign in to follow this  
TheMan22

Why the maximum number of lights is 8,and what to do if i need more then 8 lights?

This topic is 3755 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
There are some solutions, depending on situation. Render the scene more than once if you need more lights. Or decide, for each object for example, which lights contributes the most and use only those. With distance based attenuation for example, very distant lights may have an insignificant contribution on your model, so you don't have to use it.

Share this post


Link to post
Share on other sites
Or use shaders. That might allow you to either implement more than 8 lights in a forward renderer or use a deferred renderer that basically has no limitation on lights (since they are just a post-processing effect).

Share this post


Link to post
Share on other sites
8 lights is already a LOT, in fact, few games ca afford to have that much (ususally it's like 3-4) That's a per object limitation though, you scene can contain 1,000,000 lights if you want it to, provided you're able to select which lights (at most 8) lights which object. So, do you really need more that 8 lights per object?

Share this post


Link to post
Share on other sites
Quote:
Original post by TheMan22
Can you recommend me some readings on this topic please?
It depends what you are doing specifically. Some game levels don't use the built in lighting at all, and instead use lightmaps or vertex colors, or even shaders to do it in real time, and then just the characters or game objects themselves are lit by the nearest x lights, and have ambient light on them too.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!