I wish to open this thread for assistance in a lighting walkthrough with Blender 2.91 GLB export to Babylon. Please tag friends who can add to this topic. I bring up these questions because the latest documentation frequently reference older versions of Blender and outdated tutorials. I would love to make a new public tutorial with you all on the latest Blender 2.91 version!
What is best for Blender 2.91 Light Baking for Babylon? Comment processes.
How to retain the light placement and value of the Blender 2.91 lights to show up correctly in Babylon? Lights are resetting to 0,0,0 in Babylon- not accepting light placement location or intensity from the Blender 2.91 GLB file.
Are there limitations with Blender 2.91 and Babylon of which lights are permitted/usable : Area/Spot/Sun- Specifics for each?
@VeronicaLynnHarper : Hi Veronica, I’m not sure I am the best person to answer this question as I have never used the GLB export. I always use @JCPalmer 's excellent exporter directly to .babylon.
That said, I checked the version # of the GLB exporter in Blender 2.91 and Blender 2.9
Blender 2.91 : Version # = 1.4.40
Blender 2.90 : Version # = 1.3.48
No idea what changes were made - but they are different, and of course not created with BJS in mind.
So maybe it is a bug in the exporter or maybe the importer into BJS has to be changed.
That is why I always use JCP’s direct exporter to .babylon - the exporter is designed to work with BJS
Not sure if that helps any.
As for the lights assignment : Blender Area Light -> Hemispheric Light, Blender Sun -> Directional Light. Point and Cone same as Blender.
Just download the zip file to a known directory then in Blender ->Edit->Preferences and find that zip file. (No need to unzip it.) Then activate it. That is it.
For lightmaps it’s a bit more complex workflow than the one I used in my tutorial From Blender to BabylonJS - Nothing-is-3D, 'cause you have to combine your static lighting with the environment texture, and need a bit of feeling to get a good result. Note that you can also if you have just an AO texture (instead of a lightmap) directly link it inside Blender material nodes: glTF 2.0 — Blender Manual.