Building a Sync Tool for Blender to Defold

No probs. It isnt ‘ideal’ but it does seem to produce good results. I’m going to try a more complex scene and see how it goes. It should handle most scenes if the materials are setup with default Principled BSDF’s.

If you have any issues, let me know. It even seems to work with default HDR files (they are auto converted by blender to png for Defold).

Oh. Additional notes about light levels etc. In Defold you can tweak the lightmap material params variable x,y,z and w. They do the following:
x: Changes the Ambient light level
y: Sets the Albedo level (diffuse texture level)
z: Sets the Specular level
w: Sets an offset level for the light map. Ie if you set it to 0, the shadows (if black) will result in black, if set to 0.5 then a shadow (that is black) will appear 50% brighter.

These are set here:

3 Likes