JSON Geometry format 4

Mr.doob edited this page Mar 6, 2017 · 6 revisions

Work in progress.

Example of BufferGeometry

{
	"metadata": {
		"version": 4,
		"type": "BufferGeometry",
		"generator": "BufferGeometryExporter"
	},
	"data": {
		"attributes": {
			"position": {
				"itemSize": 3,
				"type": "Float32Array",
				"array": [50,50,50,...]
			},
			"normal": {
				"itemSize": 3,
				"type": "Float32Array",
				"array": [1,0,0,...]
			},
			"uv": {
				"itemSize": 2,
				"type": "Float32Array",
				"array": [0,1,...]
			}
		},
		"boundingSphere": {
			"center": [0,0,0],
			"radius": 86.60254037844386
		}
	}
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.