itch.io is community of indie game creators and players

Devlogs

GLB and GLTF support with single embedded texture

Construct 3 3DObject Plugin - SDK V1 only
A browser asset pack made in HTML5

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
Download Construct 3 3DObject Plugin - SDK V1 only
Read comments (2)