CesiumGS/cdb-to-3dtiles

Texture coordinates get generated for elevation mesh even when imagery doesn't exist

lilleyse opened this issue · 0 comments

During testing of #33 I removed the imagery directory from the San Diego CDB and noticed that texture coordinates were still being generated in the elevation glTFs.

{
  "accessors": [
    {
      "bufferView": 0,
      "componentType": 5125,
      "count": 471084,
      "type": "SCALAR"
    },
    {
      "bufferView": 1,
      "componentType": 5126,
      "count": 79075,
      "max": [
        1713.0170656796545,
        1533.5914149750024,
        1483.8258464434184
      ],
      "min": [
        -1713.0170656801201,
        -1533.5914149750024,
        -1483.8258464434184
      ],
      "type": "VEC3"
    },
    {
      "bufferView": 2,
      "componentType": 5126,
      "count": 79075,
      "type": "VEC2"
    }
  ],
  "asset": {
    "version": "2.0"
  },
  "bufferViews": [
    {
      "buffer": 0,
      "byteLength": 1884336,
      "target": 34963
    },
    {
      "buffer": 0,
      "byteLength": 948900,
      "byteOffset": 1884336,
      "target": 34962
    },
    {
      "buffer": 0,
      "byteLength": 632600,
      "byteOffset": 2833236,
      "target": 34962
    }
  ],
  "buffers": [
    {
      "byteLength": 3465836
    }
  ],
  "meshes": [
    {
      "primitives": [
        {
          "attributes": {
            "POSITION": 1,
            "TEXCOORD_0": 2
          },
          "indices": 0,
          "mode": 4
        }
      ]
    }
  ],
  "nodes": [
    {
      "children": [
        1
      ],
      "matrix": [
        1.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -1.0,
        0.0,
        0.0,
        1.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ]
    },
    {
      "mesh": 0,
      "translation": [
        -2453392.5088799754,
        -4773145.2354162345,
        3435070.9613821013
      ]
    }
  ],
  "scenes": [
    {
      "nodes": [
        0
      ]
    }
  ]
}