Skip to content

Instantly share code, notes, and snippets.

@fraguada
Created January 19, 2015 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fraguada/8ea243744961d72d61de to your computer and use it in GitHub Desktop.
Save fraguada/8ea243744961d72d61de to your computer and use it in GitHub Desktop.
Basic Cube
{
"metadata": {
"formatVersion": 3,
"sourceFile": "this",
"generatedBy": "this",
"vertices": 8,
"normals": 8,
"faces": 12,
"colors": 0,
"uvs": 0,
"materials": 0
},
"scale": 1.0,
"materials": [
{
"DbgColor": 0,
"DbgIndex": 0,
"DbgName": "default"
}
],
"vertices": [
0.0,
0.0,
0.0,
5.0,
0.0,
0.0,
5.0,
0.0,
-5.0,
0.0,
0.0,
-5.0,
0.0,
5.0,
0.0,
5.0,
5.0,
0.0,
5.0,
5.0,
-5.0,
0.0,
5.0,
-5.0
],
"normals": [
-0.408248,
-0.408248,
0.816497,
0.666667,
-0.666667,
0.333333,
0.408248,
-0.408248,
-0.816497,
-0.666667,
-0.666667,
-0.333333,
-0.666667,
0.666667,
0.333333,
0.408248,
0.408248,
0.816497,
0.666667,
0.666667,
-0.333333,
-0.408248,
0.408248,
-0.816497
],
"faces": [
3,
0,
4,
0,
1,
5,
3,
2,
1,
1,
2,
6,
7,
6,
2,
6,
7,
4,
3,
4,
7,
0,
5,
4,
3,
1,
0,
1,
6,
5,
7,
2,
3,
6,
4,
5
],
"morphTargets": [],
"morphColors": [],
"colors": [],
"uvs": []
}
@fraguada
Copy link
Author

Here the face type bitmask is not applied thus the cube comes out looking very strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment