itch.io is community of indie game creators and players

Devlogs

Add dynamic material (change, load texture to mesh at runtime)

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

Add aces for runtime Load material (load texture from png), Set mesh to material (set mesh to texture), Delete material (delete dynamic loaded material/texture).

See the example 3DGLBLoadMaterial.c3p for usage.

Add Set origin x/y (to center bounding box in x and y as needed.)

Recommendations:

  • Keep textures small
  • When designing models, dedicate a single texture map to meshes that will change the texture (e.g. a face with expressions). In this case it can be a good idea to have multiple textures per model.

Also contains a rotation animation fix for unskinned nodes.

To see what meshes and materials are available, examine your model using https://sandbox.babylonjs.com/

Files

  • 3DObject-2-17-0.c3addon 53 kB
    Feb 15, 2022
  • 3DGLBLoadMaterial.c3p 1.7 MB
    Feb 15, 2022
Download Construct 3 3DObject Plugin - SDK V1 only
Read comments (4)