#Entity with multiple geos

1 messages · Page 1 of 1 (latest)

tender maple
#

vampire.render_controller.json
vampire.render_controller.json

{
    "format_version": "1.8.0",
    "render_controllers": {
      "controller.render.vampire": {
        "arrays": {
          "textures": {
            "Array.skins": [
              "Texture.default",
              "Texture.bat"
            ]
          },
          "geometries": {
            "Array.geos": [
                "Geometry.default",
                "Geometry.bat"
            ]
          }
        },
        "geometry": "Array.geos[query.variant]",
        "materials": [
          {
            "*": "Material.default"
          }
        ],
        "textures": [
          "Array.skins[query.variant]"
        ]
      }
    }
  }
#

variant 0 is the humanoid form
variant 1 is the bat form

Humanoid form appears fine

When it changes to bat form the geo changes properly and the animation works, but the texture is just the placeholder texture.

Does the texture mapping not change when I change the geo?

I was able to get to the same state with two render controllers, but I'm not sure if that's the right way to go.

#

Does the texture need to work for the first geo to be able to be applied to the second?

If I just try to apply the bat texture as the default, both states show the placeholder/pink texture

tender maple
#

Issue was that texture path for the vampire_bat was wrong

Started with "texture/" instead of "textures/" :p