gltf indices

1. I don't know whether the indices of primitive can be 32bit(Uint32),because my data has over 100000 vertices. max number of16 bit is 65500, so I need to use 32 bit .
2. the normal data must be unit length? but my obj file's have normal data like 0.8232,how can i solve it .

  1. Yes, you can use uint32 indices.

There may be a tiny percentage of devices that don’t support it since it requires a WebGL extension: https://webglstats.com/webgl/extension/OES_element_index_uint

  1. Yes the normals should be unit length. It will probably work regardless but the lighting might be off.

If you are using obj2gltf I just submitted a fix so that it auto normalizes the normals: https://github.com/AnalyticalGraphicsInc/obj2gltf/pull/136