Number of Lights
Dear All
I read the below thread:
http://www.gamedev.net/topic/645569-shader-unlimited-lights/
What is a realistic limit for number of lights in D3D9 condidering the size of the constant buffers and the shader size?
And in D3D10?
Thanks
Federico
I read the below thread:
http://www.gamedev.net/topic/645569-shader-unlimited-lights/
What is a realistic limit for number of lights in D3D9 condidering the size of the constant buffers and the shader size?
And in D3D10?
Thanks
Federico
It depends on how much information you have per light.
There are the resource limits for directx 10. Of course, those values are the minimum. Some hardware will go higher.
If you are using forward rendering, you can in theory have an infinite number of lights by using multiple passes.
If you are using deferred rendering, something I would recommend if you plan on having lots of small point lights, then you can easily render many point lights.
Thanks for the information and clarification.
Do you have a link or information about the resources limit on D3D9?
Thanks!
Federico
Do you have a link or information about the resources limit on D3D9?
Thanks!
Federico
The exact limits for a particular card can be optained through IDirect3D9::GetDeviceCaps. "Funnily" even my DX11 capable card doesn't exceed the constant register limit of 256. Seems a hard limit.
As others have pointed out, you can always break such limits with a different approach: Using textures (on DX10+ transparently using typed or structured buffers) or multiple render passes.
As others have pointed out, you can always break such limits with a different approach: Using textures (on DX10+ transparently using typed or structured buffers) or multiple render passes.
You might wanna check this out too:
http://www.gamedev.net/topic/657701-most-efficient-way-for-lighting-in-forward-rendering/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement