I,m looking for support in understanding more about adding the indoor and outdoor lightings in BabylonJson . Can you please help me out?
I can see the indoor and outdoor lightings in the blender but not on the babylonjs sandbox.
Another things I want to know is about changing dynamic textures and their placement.
Many thanks
We have different types of lights (point, directional, spot, hemispherical) and IBL lighting for PBR materials (which you define via scene.environmentTexture
or pbrmaterial.reflectionTexture
). Maybe “outdoor” lighting corresponds to the IBL? I don’t know Blender, so I can’t say what the indoor/outdoor lights are. @PatrickRyan will probably know.
As far as changing dynamic textures, do you mean changing one texture in a material to another? You can simply do material.diffuseTexture = newtexture
to change the current diffuse texture of a material with newtexture
. I think a repro in the Playground will help to better understand your needs in this regard.
@Ankit, from the way you worded your question, I assume that @Evgeni_Popov is right on with punctual lights and image-based light (IBL) being the equivalent what you are describing as indoor and outdoor lights. To make use of IBL, you will also want to use physically-based rendering (PBR) materials which are required to render environment lighting. Going one step further, PBR materials allow you to use advanced rendering techniques like clear coat, sheen, transmission, and more.
If you have specific questions about how to implement or control your lights, a playground with what you are trying to achieve would be really helpful for us to quickly answer your concerns.