Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm still learning DirectX from a book. It says that a graphiccards can only handle 15 lights. I'm just a bit confused , there are a lot of games using more lights, or are this just some alpha blending tricks or what ever?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Your title mentions DirectX 9, which is almost a decade old and a lot has happened in the graphics space since then.

I assume your book is referring to a limit on lights in the fixed function pipeline (FFP). I always thought there was a maximum of 8 lights in DirectX9 class FFP. But remember that this was 8 'active' lights, you could have many more lights but they did not have any effect until they were made active.

Current versions of Directx (and Opengl) have removed the FFP so they don't implicitly support any lights. All the lighting is done in the shader.

However modern shader programming, pretty much allow for unlimited number of lights.

Back in the day, a lot of lights would be simulated by things like "light mapping" (basically baking in the lighting into textures).

share|improve this answer
    
Well it says maximum of 15 for newer cards. So I can use more lights now? Or do I have some to render the lights in 2 frames? –  Techie Nov 10 '12 at 23:54
    
These days, the current version of DirectX doesn't have any lights. The FFP has been deprecated. All the lighting is done in the shader. As I said, the shader can have almost any amount of lights. –  Ken Nov 11 '12 at 0:01
    
So it's also for the old HLSL 3 shader? fine. You've helped me –  Techie Nov 11 '12 at 0:03
    
Lightmapping is still very useful! Talk about performance (runtime cost=texturing!) and that's important for mobile platforms nowadays! –  bobobobo Nov 11 '12 at 1:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.