GLB Exports : Non Tileable Textures & Lightmaps/Baked Lights

Hey Everyone,

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!

  1. What is best for Blender 2.91 Light Baking for Babylon? Comment processes.

  2. 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.

  3. Are there limitations with Blender 2.91 and Babylon of which lights are permitted/usable : Area/Spot/Sun- Specifics for each?

Thanks Everyone!

@Leonel_Guido @gryff @Vinc3r @Deltakosh @sebavan @JCPalmer

adding @pirateJC

1 Like

@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.

Stay Safe, gryff :slight_smile:

1 Like

Thank you @gryff
Where is the documentation for @JCPalmer s exporter to babylon? Plugin or?

@VeronicaLynnHarper : Here is the latest version of @JCPalmer 's exporter :slight_smile:

https://github.com/BabylonJS/BlenderExporter/blob/master/Blender2Babylon-2.80x.zip

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.

Stay Safe, gryff :slight_smile:

Here: Blender to Babylon.js exporter | Babylon.js Documentation but you’re right it seems content was not updated since end of 2019 (here the current doc repo). Since I’m using gltf exporter I’m now not used to JCPalmer exporter.


About gltf workflow: when you’re talking about lighting, do you also include lightmaps or only dynamic lights?
For dyn lights, it seems to be OK
image

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.

Ill test this now

1 Like

notes : Blender add-on

Blender to Babylon.js exporter | Babylon.js Documentation