I am trying to use an fbx file exported from blender, and although, I am able to instantiate Sprite3D instance out of it, I am unable to look up for child “Sphere”, which the .c3t files clearly shows to contains it.
Also, I am getting warning :- "Attribute Not found : a_normal "
{
"version": "0.7",
"id": "",
"meshes": [
{
"attributes": [{
"size": 3,
"type": "GL_FLOAT",
"attribute": "VERTEX_ATTRIB_POSITION"
}, {
"size": 3,
"type": "GL_FLOAT",
"attribute": "VERTEX_ATTRIB_NORMAL"
}, {
"size": 2,
"type": "GL_FLOAT",
"attribute": "VERTEX_ATTRIB_TEX_COORD"
}],
"vertices": [
0.000000, 0.999999, 0.000000, 0.097545, 0.990439, -0.097550, 0.460658, 0.282201,
0.191342, 0.961940, -0.195090, 0.097545, 0.990439, -0.097550, 0.505621, 0.344149,
0.000000, 0.980784, -0.195090, -0.097549, 0.990438, -0.097550, 0.462804, 0.344149
],
"parts": [
{
"id": "Sphere_part1",
"type": "TRIANGLES",
"indices": [
0, 1, 2, 1, 0, 3, 4, 5, 6, 6, 7, 4,
8, 9, 10, 9, 8, 11, 12, 13, 14, 14, 15, 12,
16, 17, 18, 17, 16, 19, 20, 21, 22, 21, 23, 22,
24, 25, 26, 25, 24, 27, 28, 29, 30, 29, 28, 31,
32, 33, 34, 33, 32, 35, 36, 37, 38, 37, 36, 39,
40, 41, 42, 41, 40, 43, 44, 45, 46, 45, 44, 47,
48, 49, 50, 49, 48, 51, 52, 53, 54, 53, 52, 55,
56, 57, 58, 59, 60, 61, 62, 63, 64, 63, 62, 65,
66, 67, 68, 67, 66, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 77, 76, 79, 80, 81, 82, 82, 83, 80,
84, 85, 86, 85, 84, 87, 88, 89, 90, 90, 91, 88,
92, 93, 94, 93, 92, 95, 96, 97, 98, 97, 96, 99,
1910, 1911, 1912, 1911, 1910, 1913, 1914, 1915, 1916, 1915, 1914, 1917,
1918, 1919, 1920, 1919, 1918, 1921, 1922, 1923, 1924, 1923, 1922, 1925,
1926, 1927, 1928, 1927, 1926, 1929, 1930, 1931, 1932, 1931, 1930, 1933,
1934, 1935, 1936, 1935, 1934, 1937, 1938, 1939, 1940, 1939, 1938, 1941,
1942, 1943, 1944, 1943, 1942, 1945, 1946, 1947, 1948, 1947, 1946, 1949,
1950, 1951, 1952, 1951, 1953, 1952, 1954, 1955, 1956, 1955, 1954, 1957,
1958, 1959, 1960, 1960, 1961, 1958, 1962, 1963, 1964, 1963, 1962, 1965,
1966, 1967, 1968, 1967, 1966, 1969, 1970, 1971, 1972, 1971, 1970, 1973,
1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1981, 1980, 1983
],
"aabb": [-1.000000, -1.000000, -1.000000, 1.000000, 0.999999, 1.000000]
}
]
}
],
"materials": [
{
"id": "orange",
"ambient": [ 0.200000, 0.200000, 0.200000],
"diffuse": [ 0.800000, 0.800000, 0.800000],
"emissive": [ 0.000000, 0.000000, 0.000000],
"opacity": 0.000000,
"specular": [ 0.200000, 0.200000, 0.200000],
"shininess": 20.000000
}
],
"nodes": [
{
"id": "Sphere",
"skeleton": false,
"transform": [ 100.000000, 0.000000, 0.000000, 0.000000, 0.000000, -0.000016, -100.000000, 0.000000, 0.000000, 100.000000, -0.000016, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000],
"parts": [
{
"meshpartid": "Sphere_part1",
"materialid": "orange",
"uvMapping": [[]]
}
]
}
],
"animations": []
}
Following are the contents of my .c3t file. Any help would be greatly appreciated.