KhronosGroup / glTF

glTF – Runtime 3D Asset Delivery
Other
7.16k stars 1.14k forks source link

KHR_lights_area: Proposal #1940

Open maggieholbling opened 3 years ago

maggieholbling commented 3 years ago

Could a rectangle type be added to the KHR_lights_punctual extension? Seeing as Unity, Unreal and Blender support rectangular area lights?

Unity: https://docs.unity3d.com/Manual/Lighting.html Unreal: https://docs.unrealengine.com/en-US/BuildingWorlds/LightingAndShadows/LightTypes/RectLights/index.html Blender: https://docs.blender.org/manual/en/latest/render/lights/light_object.html

If not, is there a workaround around this?

donmccurdy commented 3 years ago

Related: https://github.com/KhronosGroup/glTF/issues/1475

KHR_lights_punctual is feature-complete, for the purposes of the glTF 2.0 specification, and restricted to simpler punctual lighting. But area lights could be considered as part of a future extension. Understanding which properties of area lights already have consistency across engines and authoring tools (Blender/Maya/3DS Max) might help that process, if anyone would like to research it.

MiiBond commented 3 years ago

@maggieholbling, Adobe would definitely be interested in supporting an area light extension. I'll be looking at defining one later this year, I think, as we'll have need of it. If you want to get the ball rolling by writing a draft EXT (multi-vendor) extension, I can take a peek and give feedback.

romainguy commented 3 years ago

@MiiBond I would love to see an area light extension as well (definitely rectangle and line lights at least).

@maggieholbling This extension would not be the right place since rectangular lights are by definition not punctual lights.

donmccurdy commented 3 years ago

I'll rename this issue as a proposal for KHR_lights_area. 👍

UX3D-nopper commented 2 years ago

Could we close this and/or continue the discussion here: https://github.com/KhronosGroup/glTF/pull/1948