-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple light sources and light types #8518
Comments
For reference, STK supports:
For glTF 2.0 models, it's worth considering IBL as an additional form of lighting. |
Please ask when multi light source can support, thank you |
Babylon JS
ThreeJS
Above the light can be supported ? |
Requested on the forum: https://community.cesium.com/t/point-light-sources/21306/2 |
Point light sources requested in #11431. |
I just wanted to put in another +1 for this — if Cesium allowed for the rendering of actual light sources, it would DRAMATICALLY increase its usability for a million different applications. Being limited to essentially a single light source is very limiting. Obviously this is non-trivially difficult to implement. But it would be HUGE if it could be. HUGE! :-) |
My $0.02: From the PBR 3D model point of view, having robust support for HDRI / IBL environment lighting can dramatically improve the look of models, to the point where all the various ThreeJS/BabylonJS/STK light source types described above are actually discouraged as they interfere and/or compete with natural IBL lighting. It might be interesting to light an entire set of 3D Tiles from an IBL, and see if that yields better results than the default or a point light someplace. |
I imagine it depends on what one is trying to do with it, yes? I am interested in being able to bring 3D models into a Cesium JS environment, and am not worried so much about the appearance of 3D Tiles. Being able to model multiple light sources, and/or having a real emission property for objects, is absolutely necessary if one wants flexibility for modeling anything other than a building. I'm interested in being able to render non-Sun lights, night scenes, better clouds, fog, smoke, glowing things, etc. Some of these things require more than multiple point or directional light sources to work well, of course, but you can fake a lot of them if you had them (and it's hard to fake them without them). |
I really hope to see multiple light sources in Cesium, it would make the virtual earth scenes more realistic. I hope you can consider this suggestion, thank you! |
Hi @lilleyse, @ggetz, |
@nghiajenius-dev In that example, only multiple shadow maps were created, but only one shadow map can take effect, and it is currently not possible to add multiple shadow maps to the scene. |
Another ping here for supporting this. This would be incredibly useful! |
Custom light sources were added in #8493 but there are still some limitations: only one light is supported and it must be a directional light.
It would awesome to have a scene with sun lighting, moon lighting, street lamps, and car headlights all working together. This could really open up new rendering possibilities for Cesium.
I see these being the main API changes:
LightingCollection
classscene.light
in favor ofscene.lights
PointLight
,SpotLight
, and other new light typeslightColor
from models and 3D TilesSome questions:
lightColor
from models and 3D Tiles.PointLight
DirectionalLight
SpotLight
HemisphericLight
AmbientLight
DirectionalLight
HemisphereLight
PointLight
RectAreaLight
SpotLight
The text was updated successfully, but these errors were encountered: