Discussion:
Question about lights
(too old to reply)
Robe
2008-07-08 13:53:01 UTC
Permalink
Hi there,

I'm working with OpenGL and I want to migrate to DirectX. In OpenGL the
number of lights are limited to 8.

The question is

How many lights I can use in DirectX?

Thanks.
Armin Zingler
2008-07-08 16:29:57 UTC
Permalink
Post by Robe
Hi there,
I'm working with OpenGL and I want to migrate to DirectX. In OpenGL
the number of lights are limited to 8.
The question is
How many lights I can use in DirectX?
Have a look at the MaxActiveLights member of the D3DCAPS structure that is
filled by calling the
Device's GetDeviceCaps function. Or, if you really use managed directX, look
at the Device's DeviceCaps.MaxActiveLights property.


Armin
Phil Taylor[MS]
2008-07-15 14:37:52 UTC
Permalink
those are vertex lights, of course. and that is hardware lights. in software
the number is different. and they suffer the usual limitations of vertex
lighting.

you may want to consider per-pixel lights using shaders.
Post by Robe
Hi there,
I'm working with OpenGL and I want to migrate to DirectX. In OpenGL the
number of lights are limited to 8.
The question is
How many lights I can use in DirectX?
Thanks.
Loading...