GLB and GLTF support with single embedded texture


The addon now supports both glb and gltf embedded file formats, including support for a _single_ embedded texture.

If a texture is present in the glb or gltf embedded file it will be used as the texture of the 3DObject model (there then is no need to load the image of the 3DObject, it can be left blank or fill with a solid color, etc.)

If a texture is not present in the glb/gltf, then the 3DObject image will be used (e.g. load texture manually into the image.

A reminder of glb/gltf embedded compatibility:

  • All faces / materials must use a texture (vector / solid color without texture not supported)
  • Must be only a single texture, just diffuse color (do not include other textures, such as normal, specular, etc.)
  • Can include animations
  • To reduce GPU memory footprint, consider reducing the size of the texture
  • If an embedded texture is not included, you must load the image of the 3DObject with a png texture file for the model.
  • Embedded textures can take longer to initially load (more instances of the same model should load quickly though.)

Baking textures to a single texture with Blender:

  • See the FoozleCC video on the main page to use the built-in method
  • Use SimpleBake addon for Blender (paid addon), somewhat simpler, no changes to nodes needed, but lots of parameters to set

Kenshape exported glb files are now directly supported (no longer need to translate the files.)

https://tools.kenney.nl/kenshape/

Files

3DObject-2-13-2.c3addon 50 kB
Feb 05, 2022

Get Construct 3 3DObject Plugin

Download NowName your own price

Comments

Log in with itch.io to leave a comment.

Is this stable for a prod release? 

I do recommend testing with the platforms you are going to distribute on. If you see any issues, let me know.