microsoft / WindowsCompositionSamples

The Windows Composition Samples have moved here: https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/SceneGraph
https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/SceneGraph
MIT License
1.13k stars 287 forks source link

Allowing multiple spotlights #305

Closed aroenK closed 5 years ago

aroenK commented 6 years ago

Issue Type

[ ] Bug Report
[x] Feature Request Removing the limitation of having only 2 lights
[ ] Sample request
[ ] Documentation issue or request
[ ] Other – Please describe:

UserVoice link

Current Behavior

I have a cad drawing of a house that has multiple spot lights on a given floor. This drawing is converted to a path that is added to a grid container.

When i add in code behind more then 2 spotlights is see that only 2 spotlights are rendered on screen. In the documentation i see that there is a limit of 2 light sources for most light types. Is there a way of removing this limitation or work around it?

The application is a universal windows app.

Expected Behavior

Steps to Reproduce (for bugs)

Your Environment

krenner commented 6 years ago

Hi aroenK - Support for more lights targeting specific UI is on our backlog. For now, a workaround you could try is targeting other visuals with additional lights. For example, you could use 2 spotlights targeting a ContainerVisual and use an additional light to target a SpriteVisual, It's the number or lights in conjunction with their targets that is restricted. You may see performance issues using more than a couple of spotlights at time depending on how robust your lighting use is. Hope this helps, Kelly

krenner commented 5 years ago

Closing, no activity. Please reopen if needed.