diff --git a/README.md b/README.md index ef21a44f..12955bf2 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,58 @@ - camera/entity manipulation with mouse (desktop) and gestures (mobile) - skinning + morph animations +### Quickstart (Flutter) + +``` +flutter channel master +flutter upgrade +``` + +``` +_thermionViewer = await ThermionFlutterPlugin.createViewer(); + +// Geometry and models are represented as "entities". Here, we load a glTF +// file containing a plain cube. +// By default, all paths are treated as asset paths. To load from a file +// instead, use file:// URIs. +var entity = + await _thermionViewer!.loadGlb("assets/cube.glb", keepData: true); + +// Thermion uses a right-handed coordinate system where +Y is up and -Z is +// "into" the screen. +// By default, the camera is located at (0,0,0) looking at (0,0,-1); this +// would place it directly inside the cube we just loaded. +// +// Let's move the camera to (0,0,10) to ensure the cube is visible in the +// viewport. +await _thermionViewer!.setCameraPosition(0, 0, 10); + +// Without a light source, your scene will be totally black. Let's load a skybox +// (a cubemap image that is rendered behind everything else in the scene) +// and an image-based indirect light that has been precomputed from the same +// skybox. +await _thermionViewer!.loadSkybox("assets/default_env_skybox.ktx"); +await _thermionViewer!.loadIbl("assets/default_env_ibl.ktx"); + +// Finally, you need to explicitly enable rendering. Setting rendering to +// false is designed to allow you to pause rendering to conserve battery life +await _thermionViewer!.setRendering(true); +``` + +and then in your Flutter application: +``` + @override + Widget build(BuildContext context) { + return Stack(children: [ + if (_thermionViewer != null) + Positioned.fill( + child: ThermionWidget( + viewer: _thermionViewer!, + )), + ]); + } +``` + ### Sponsors, Contributors & Acknowledgments Thermion uses the [Filament](https://github.com/google/filament) Physically Based Rendering engine under the hood. diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 00000000..56aa35fc --- /dev/null +++ b/examples/README.md @@ -0,0 +1,5 @@ +# Thermion Examples + +This repository contains example Dart and Flutter projects for the Thermion rendering toolkit. + + diff --git a/examples/assets/BusterDrone/scene.bin b/examples/assets/BusterDrone/scene.bin new file mode 100644 index 00000000..2f55da9e Binary files /dev/null and b/examples/assets/BusterDrone/scene.bin differ diff --git a/examples/assets/BusterDrone/scene.gltf b/examples/assets/BusterDrone/scene.gltf new file mode 100644 index 00000000..a6370a1a --- /dev/null +++ b/examples/assets/BusterDrone/scene.gltf @@ -0,0 +1,11876 @@ +{ + "accessors": [ + { + "bufferView": 0, + "byteOffset": 490368, + "componentType": 5126, + "count": 13, + "max": [ + 2.603024959564209, + 2.6610217094421387, + 0.004141807556152344 + ], + "min": [ + -2.603024959564209, + -2.6610217094421387, + -0.004141807556152344 + ], + "type": "VEC3" + }, + { + "bufferView": 0, + "byteOffset": 490524, + "componentType": 5126, + "count": 13, + "max": [ + 0.000011948728570132516, + 0.000011688098311424255, + 1.1920928955078125e-7 + ], + "min": [ + -0.000011948726751143113, + -0.00001168833114206791, + -1.1920928955078125e-7 + ], + "type": "VEC3" + }, + { + "bufferView": 0, + "byteOffset": 490680, + "componentType": 5126, + "count": 13, + "max": [ + 0.5079542994499207, + 0.44970205426216125, + 0.0007009506225585938 + ], + "min": [ + -0.5079542994499207, + -0.44970205426216125, + -0.0007009506225585938 + ], + "type": "VEC3" + }, + { + "bufferView": 0, + "byteOffset": 490836, + "componentType": 5126, + "count": 13, + "max": [ + 0.000027996353310300037, + 0.000027456902898848057, + 1.1920928955078125e-7 + ], + "min": [ + -0.000027996351491310634, + -0.00002745713572949171, + -5.960464477539063e-8 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "componentType": 5126, + "count": 291, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR", + "byteOffset": 0 + }, + { + "bufferView": 2, + "componentType": 5126, + "count": 291, + "max": [ + 0.766411542892456, + -100, + 34.548770904541016 + ], + "min": [ + 0, + -100, + -92.53174591064453 + ], + "type": "VEC3", + "byteOffset": 0 + }, + { + "bufferView": 1, + "byteOffset": 1164, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 3492, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 1172, + "componentType": 5126, + "count": 528, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "componentType": 5126, + "count": 528, + "max": [ + 3.018394628351309e-17, + 0.4277789890766144, + 1.0350706219500598e-16, + 1 + ], + "min": [ + -5.146233374338227e-17, + -0.4226182699203491, + -8.386759746129016e-17, + 0.9038833975791931 + ], + "type": "VEC4", + "byteOffset": 0 + }, + { + "bufferView": 1, + "byteOffset": 3284, + "componentType": 5126, + "count": 1025, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 3516, + "componentType": 5126, + "count": 1025, + "max": [ + 1.0658141036401503e-14, + 0.00003388613185961731, + 0.000014036095308256336 + ], + "min": [ + -7.105427357601002e-15, + 0.00003388613185961731, + 0.000014036095308256336 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 7384, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 15816, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 7392, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 8448, + "componentType": 5126, + "count": 1141, + "max": [ + 0.5891698598861694, + 9.724578803145729e-17, + 1.0542189266883763e-16, + 0.9999997019767761 + ], + "min": [ + -0.10293252021074295, + -1.8182581299328222e-16, + -1.0802358083610882e-16, + 0.8080092072486877 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 11956, + "componentType": 5126, + "count": 199, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 15840, + "componentType": 5126, + "count": 199, + "max": [ + -0.01574668288230896, + -7.34735107421875, + 0.081717349588871 + ], + "min": [ + -0.01574668288230896, + -11.282759666442871, + 0.081717349588871 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 12752, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 18228, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 12760, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 26704, + "componentType": 5126, + "count": 1141, + "max": [ + 8.326672684688674e-17, + 8.326672684688674e-17, + 9.71445146547012e-17, + 1 + ], + "min": [ + -1.3877787807814457e-16, + -1.1102230246251565e-16, + -5.898059818321144e-17, + 1 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 17324, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 18252, + "componentType": 5126, + "count": 2, + "max": [ + 0, + 0, + 0 + ], + "min": [ + 0, + 0, + 0 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 17332, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 18276, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 17340, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 44960, + "componentType": 5126, + "count": 1141, + "max": [ + 6.941919929111294e-16, + 0.9612559676170349, + 0.8191520571708679, + 1.4523389702766784e-16 + ], + "min": [ + -7.690622409705619e-16, + -0.6991849541664124, + -0.6942344903945923, + -1.3729081909501104e-16 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 21904, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 18300, + "componentType": 5126, + "count": 2, + "max": [ + 0.00007688588812015951, + -22.9158935546875, + 0.02676698938012123 + ], + "min": [ + 0.00007688588812015951, + -22.9158935546875, + 0.02676698938012123 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 21912, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 18324, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 21920, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 63216, + "componentType": 5126, + "count": 1141, + "max": [ + -3.559834546828236e-23, + -4.1108839354819793e-7, + 4.2806183109312906e-17, + 1 + ], + "min": [ + -3.357394022152527e-16, + -0.130526602268219, + -2.134869384146925e-16, + 0.9914448261260986 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 26484, + "componentType": 5126, + "count": 1016, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 18348, + "componentType": 5126, + "count": 1016, + "max": [ + 1.4210854715202004e-14, + -0.00004080753933521919, + 7.105427357601002e-15 + ], + "min": [ + -7.105427357601002e-15, + -0.00004080753933521919, + -3.552713678800501e-15 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 30548, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 30540, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 30556, + "componentType": 5126, + "count": 1132, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 81472, + "componentType": 5126, + "count": 1132, + "max": [ + 0.4777144193649292, + 0.696681559085846, + -0.12097440659999847, + 0.696681559085846 + ], + "min": [ + 0.12097441405057907, + 0.5213338136672974, + -0.4777144193649292, + 0.5213338136672974 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 35084, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 30564, + "componentType": 5126, + "count": 2, + "max": [ + 0.006630018353462219, + -5.510501384735107, + -0.09275053441524506 + ], + "min": [ + 0.006630018353462219, + -5.510501384735107, + -0.09275053441524506 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 35092, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 30588, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 35100, + "componentType": 5126, + "count": 1094, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 99584, + "componentType": 5126, + "count": 1094, + "max": [ + 3.45120668043819e-7, + 0.755711019039154, + 3.411899740513036e-7, + 0.7933533191680908 + ], + "min": [ + -3.018524452613747e-8, + 0.6087614297866821, + -3.14133004053474e-8, + 0.6549052000045776 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 39476, + "componentType": 5126, + "count": 1058, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 30612, + "componentType": 5126, + "count": 1058, + "max": [ + -9.947598300641403e-14, + -0.000002192010470025707, + -9.079604410544562e-7 + ], + "min": [ + -1.2789769243681803e-13, + -0.000002192010470025707, + -9.07960497897875e-7 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 43708, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 43308, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 43716, + "componentType": 5126, + "count": 1140, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 117088, + "componentType": 5126, + "count": 1140, + "max": [ + 0.648327112197876, + 3.148856819734647e-8, + -2.9930738776329235e-8, + 1 + ], + "min": [ + -0.02535569667816162, + 3.4723754982479704e-9, + -4.330498626359258e-8, + 0.7613618969917297 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 48276, + "componentType": 5126, + "count": 199, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 43332, + "componentType": 5126, + "count": 199, + "max": [ + 0.010783359408378601, + -7.360301494598389, + 0.08223113417625427 + ], + "min": [ + 0.010783359408378601, + -11.28590202331543, + 0.08223113417625427 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 49072, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 45720, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 49080, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 135328, + "componentType": 5126, + "count": 1141, + "max": [ + 0.0000031865668006503256, + 1.1102240834163406e-16, + 8.326664082010304e-17, + 1 + ], + "min": [ + 0.0000031865668006503256, + -1.3877787807814457e-16, + -1.1102234216718506e-16, + 1 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 53644, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 45744, + "componentType": 5126, + "count": 2, + "max": [ + 0.004904936067759991, + 0.0029711532406508923, + -0.0014322279021143913 + ], + "min": [ + 0.004904936067759991, + 0.0029711532406508923, + -0.0014322279021143913 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 53652, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 45768, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 53660, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 153584, + "componentType": 5126, + "count": 1141, + "max": [ + 2.946721479681508e-16, + 0.9721843600273132, + 0.7976794838905334, + 1.0801055108709988e-16 + ], + "min": [ + -3.3080178246791135e-16, + -0.7050051093101501, + -0.706916868686676, + -1.4904984662949747e-16 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 58224, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 45792, + "componentType": 5126, + "count": 2, + "max": [ + 0.002689761109650135, + -22.916383743286133, + 0.02693275175988674 + ], + "min": [ + 0.002689761109650135, + -22.916383743286133, + 0.02693275175988674 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 58232, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 45816, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 58240, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 171840, + "componentType": 5126, + "count": 1141, + "max": [ + 5.287900693557693e-16, + 0.0033429425675421953, + 1.98237960436973e-15, + 1 + ], + "min": [ + 2.0879800224670911e-16, + -0.13052618503570557, + -1.0767316595280767e-15, + 0.9914448857307434 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 62804, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 45840, + "componentType": 5126, + "count": 2, + "max": [ + 0, + 0, + 0 + ], + "min": [ + 0, + 0, + 0 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 62812, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 45864, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 62820, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 190096, + "componentType": 5126, + "count": 1141, + "max": [ + 0.6187881231307983, + 1.357208038226058e-16, + 1.405753349317774e-16, + 0.9999972581863403 + ], + "min": [ + 0.0023439584765583277, + -1.4041348546440282e-16, + -1.441803997995203e-16, + 0.7855579257011414 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 67384, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 45888, + "componentType": 5126, + "count": 2, + "max": [ + 2.4154791831970215, + -4.842290878295898, + -0.006652138661593199 + ], + "min": [ + 2.4154791831970215, + -4.842290878295898, + -0.006652138661593199 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 67392, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 45912, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 67400, + "componentType": 5126, + "count": 1074, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 208352, + "componentType": 5126, + "count": 1074, + "max": [ + 2.2694037404499823e-13, + 0.7933533191680908, + 5.5178372315072347e-14, + 0.7933533191680908 + ], + "min": [ + -5.5019523144276064e-14, + 0.6087614297866821, + -2.269895290609933e-13, + 0.6087614297866821 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 71696, + "componentType": 5126, + "count": 23, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 45936, + "componentType": 5126, + "count": 23, + "max": [ + 0.6785002946853638, + -0.37506112456321716, + 4.957866191864014 + ], + "min": [ + 0.6785002946853638, + -0.37506112456321716, + 1.9578661918640137 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 71788, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 46212, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 71796, + "componentType": 5126, + "count": 1058, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 225536, + "componentType": 5126, + "count": 1058, + "max": [ + 1.3877787807814457e-16, + 2.62250594573743e-8, + 7.2789162079351655e-25, + 1 + ], + "min": [ + -1.614377034830916e-16, + 2.62250594573743e-8, + -1.942890293094024e-16, + 1 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 76028, + "componentType": 5126, + "count": 23, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 46236, + "componentType": 5126, + "count": 23, + "max": [ + -19.23712730407715, + -26.57673454284668, + -0.748199999332428 + ], + "min": [ + -26.78019905090332, + -31.10906982421875, + -0.748199999332428 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 76120, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 46512, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 76128, + "componentType": 5126, + "count": 913, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 242464, + "componentType": 5126, + "count": 913, + "max": [ + 0.1889660805463791, + -0.6813896298408508, + 0.1889660656452179, + 0.6813896298408508 + ], + "min": [ + 0.1889660805463791, + -0.6813896298408508, + 0.1889660656452179, + 0.6813896298408508 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 79780, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 46536, + "componentType": 5126, + "count": 2, + "max": [ + 0.01226816326379776, + 0.00024394220963586122, + 0.0002562310837674886 + ], + "min": [ + 0.01226816326379776, + 0.00024394220963586122, + 0.0002562310837674886 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 79788, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 46560, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 79796, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 257072, + "componentType": 5126, + "count": 1141, + "max": [ + 0.7071067690849304, + 2.4532694660665106e-16, + 2.0842673711801571e-16, + 0.9999963045120239 + ], + "min": [ + -0.03856799378991127, + -1.783470619137986e-16, + -1.6837262692005858e-16, + 0.7071067690849304 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 84360, + "componentType": 5126, + "count": 199, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 46584, + "componentType": 5126, + "count": 199, + "max": [ + 0.1428087055683136, + -7.303253173828125, + 0.08181961625814438 + ], + "min": [ + 0.05688011273741722, + -11.236658096313477, + 0.08181961625814438 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 85156, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 48972, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 85164, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 275328, + "componentType": 5126, + "count": 1141, + "max": [ + 0.000012702583262580447, + 0.000003925847522623371, + -0.010920972563326359, + 0.9999403357505798 + ], + "min": [ + 0.000012702583262580447, + 0.000003925847522623371, + -0.010920972563326359, + 0.9999403357505798 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 89728, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 48996, + "componentType": 5126, + "count": 2, + "max": [ + -0.004460121039301157, + 0.000007818744961696211, + 0.00005186478665564209 + ], + "min": [ + -0.004460121039301157, + 0.000007818744961696211, + 0.00005186478665564209 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 89736, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49020, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 89744, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 293584, + "componentType": 5126, + "count": 1141, + "max": [ + 3.20862724334609e-16, + 0.9717717170715332, + 0.7435351014137268, + 1.614297890189907e-16 + ], + "min": [ + -5.413126573875361e-16, + -0.705666184425354, + -0.6964223980903625, + -8.255817716906362e-17 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 94308, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49044, + "componentType": 5126, + "count": 2, + "max": [ + 0.0002644560590852052, + -22.915939331054688, + 0.026753252372145653 + ], + "min": [ + 0.0002644560590852052, + -22.915939331054688, + 0.026753252372145653 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 94316, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49068, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 94324, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 311840, + "componentType": 5126, + "count": 1141, + "max": [ + 1.195374466078647e-9, + 0.1054544672369957, + 2.520133251659052e-14, + 1 + ], + "min": [ + -3.591690217505763e-16, + -0.13052618503570557, + -3.68308051971241e-15, + 0.9914448857307434 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 98888, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49092, + "componentType": 5126, + "count": 2, + "max": [ + 0, + 0, + 0 + ], + "min": [ + 0, + 0, + 0 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 98896, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49116, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 98904, + "componentType": 5126, + "count": 1141, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 330096, + "componentType": 5126, + "count": 1141, + "max": [ + 0.5984764695167542, + 1.7411764252628359e-9, + 1.0605889453239737e-16, + 1 + ], + "min": [ + -0.014889945276081562, + -8.390695802355788e-17, + -2.3159511641779318e-8, + 0.8011403679847717 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 103468, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49140, + "componentType": 5126, + "count": 2, + "max": [ + -2.415479898452759, + -4.84229040145874, + -0.006640426814556122 + ], + "min": [ + -2.415479898452759, + -4.84229040145874, + -0.006640426814556122 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 103476, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49164, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 103484, + "componentType": 5126, + "count": 1078, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 348352, + "componentType": 5126, + "count": 1078, + "max": [ + 3.052628814873351e-14, + -0.6410675048828125, + 3.0506660701279734e-14, + 0.7674844861030579 + ], + "min": [ + -6.372444347375883e-14, + -0.7933533191680908, + -6.362619442814091e-14, + 0.6087614297866821 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 107796, + "componentType": 5126, + "count": 29, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49188, + "componentType": 5126, + "count": 29, + "max": [ + -0.6784976124763489, + -0.3758923411369324, + 4.957706451416016 + ], + "min": [ + -0.6784976124763489, + -0.37716609239578247, + 1.9577068090438843 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 107912, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49536, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 107920, + "componentType": 5126, + "count": 1058, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 365600, + "componentType": 5126, + "count": 1058, + "max": [ + 0.0002122838923241943, + 2.747205307684908e-8, + -5.831902235436948e-12, + 1 + ], + "min": [ + 0.0002122838923241943, + 2.747205307684908e-8, + -5.832034074421122e-12, + 1 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 112152, + "componentType": 5126, + "count": 23, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49560, + "componentType": 5126, + "count": 23, + "max": [ + 26.78019905090332, + -26.57673454284668, + -0.748199999332428 + ], + "min": [ + 19.23712730407715, + -31.10906982421875, + -0.748199999332428 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 112244, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49836, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 112252, + "componentType": 5126, + "count": 966, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 382528, + "componentType": 5126, + "count": 966, + "max": [ + 0.1889660805463791, + 0.6813896298408508, + -0.1889660656452179, + 0.6813896298408508 + ], + "min": [ + 0.1889660805463791, + 0.6813896298408508, + -0.1889660656452179, + 0.6813896298408508 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 116116, + "componentType": 5126, + "count": 27, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 49860, + "componentType": 5126, + "count": 27, + "max": [ + -22.55685806274414, + -8.625173568725586, + 0.14466851949691772 + ], + "min": [ + -28.345199584960938, + -10.20475959777832, + 0.14466851949691772 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 116224, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 50184, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 116232, + "componentType": 5126, + "count": 958, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 397984, + "componentType": 5126, + "count": 958, + "max": [ + 0.09390988200902939, + -0.7008429765701294, + 0.09390988200902939, + 0.7008430361747742 + ], + "min": [ + 0.09390988200902939, + -0.7008429765701294, + 0.09390988200902939, + 0.7008430361747742 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 120064, + "componentType": 5126, + "count": 27, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 50208, + "componentType": 5126, + "count": 27, + "max": [ + 28.230527877807617, + -9.64864730834961, + -0.07694999873638153 + ], + "min": [ + 22.442184448242188, + -11.228233337402344, + -0.07694999873638153 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 120172, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 50532, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 120180, + "componentType": 5126, + "count": 971, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 413312, + "componentType": 5126, + "count": 971, + "max": [ + 0.09390988200902939, + 0.7008429765701294, + -0.09390988200902939, + 0.7008430361747742 + ], + "min": [ + 0.09390988200902939, + 0.7008429765701294, + -0.09390988200902939, + 0.7008430361747742 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 124064, + "componentType": 5126, + "count": 859, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 50556, + "componentType": 5126, + "count": 859, + "max": [ + 5.329070518200751e-15, + 38.9765510559082, + -3.073050022125244 + ], + "min": [ + -7.105427357601002e-15, + 33.4765510559082, + -3.073050022125244 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 127500, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 60864, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 127508, + "componentType": 5126, + "count": 998, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 428848, + "componentType": 5126, + "count": 998, + "max": [ + 5.551115123125783e-17, + 1.1102230246251565e-16, + 5.551115123125783e-17, + 1 + ], + "min": [ + -6.938893903907228e-17, + -8.326672684688674e-17, + -5.551115123125783e-17, + 1 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 131500, + "componentType": 5126, + "count": 824, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 60888, + "componentType": 5126, + "count": 824, + "max": [ + 3.552713678800501e-15, + -0.018226023763418198, + -8.908537864685059 + ], + "min": [ + -7.105427357601002e-15, + -0.018226023763418198, + -8.908537864685059 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 134796, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 70776, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 134804, + "componentType": 5126, + "count": 1142, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 444816, + "componentType": 5126, + "count": 1142, + "max": [ + 0.002140095690265298, + 1, + 0.04749816656112671, + 0.08700844645500183 + ], + "min": [ + -0.002407652325928211, + 0.9933873414993286, + -0.02874644845724106, + -0.11379626393318176 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 139372, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 70800, + "componentType": 5126, + "count": 2, + "max": [ + -0.000021889296476729214, + -36.155147552490234, + -10.966755867004395 + ], + "min": [ + -0.000021889296476729214, + -36.155147552490234, + -10.966755867004395 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 139380, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 70824, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 139388, + "componentType": 5126, + "count": 1216, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 463088, + "componentType": 5126, + "count": 1216, + "max": [ + 0.8032023310661316, + 0.6148953437805176, + 0.8032018542289734, + 0.614924967288971 + ], + "min": [ + -0.5634948015213013, + -0.4302464425563812, + -0.5672827363014221, + -0.4291868805885315 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 144252, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 70848, + "componentType": 5126, + "count": 2, + "max": [ + 19.973400115966797, + 24.55685043334961, + -6.007046699523926 + ], + "min": [ + 19.973400115966797, + 24.55685043334961, + -6.007046699523926 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 144260, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 70872, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 144268, + "componentType": 5126, + "count": 1174, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 482544, + "componentType": 5126, + "count": 1174, + "max": [ + 0.6970846056938171, + 0.6561663746833801, + 0.6592297554016113, + 0.6099482774734497 + ], + "min": [ + -0.6526466608047485, + -0.652332067489624, + -0.6243375539779663, + -0.49005988240242004 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 148964, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 70896, + "componentType": 5126, + "count": 2, + "max": [ + 0.000051651491958182305, + -36.1551513671875, + -10.966744422912598 + ], + "min": [ + 0.000051651491958182305, + -36.1551513671875, + -10.966744422912598 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 148972, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 70920, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 148980, + "componentType": 5126, + "count": 1216, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 501328, + "componentType": 5126, + "count": 1216, + "max": [ + 0.8032023310661316, + 0.6148953437805176, + 0.8032018542289734, + 0.614924967288971 + ], + "min": [ + -0.5647227764129639, + -0.45769572257995605, + -0.567910373210907, + -0.431105375289917 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 153844, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 70944, + "componentType": 5126, + "count": 2, + "max": [ + -19.973400115966797, + 24.556848526000977, + -6.007049560546875 + ], + "min": [ + -19.973400115966797, + 24.556848526000977, + -6.007049560546875 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 153852, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 70968, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 153860, + "componentType": 5126, + "count": 1174, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 520784, + "componentType": 5126, + "count": 1174, + "max": [ + 0.697971761226654, + 0.5453841686248779, + 0.6412535309791565, + 0.6099480986595154 + ], + "min": [ + -0.49868083000183105, + -0.5850634574890137, + -0.5260052680969238, + -0.4971546530723572 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 158556, + "componentType": 5126, + "count": 1044, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 70992, + "componentType": 5126, + "count": 1044, + "max": [ + 0.30994635820388794, + 88.4124526977539, + 3.357822895050049 + ], + "min": [ + 0, + 0.11856790632009506, + -12.910046577453613 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 162732, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 83520, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 162740, + "componentType": 5126, + "count": 1059, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 539568, + "componentType": 5126, + "count": 1059, + "max": [ + 0.8156683444976807, + 0.10349708050489426, + 0.07732612639665604, + 0.7898205518722534 + ], + "min": [ + 0.6133379936218262, + -0.15155479311943054, + -0.13645820319652557, + 0.5717355012893677 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 166976, + "componentType": 5126, + "count": 279, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 83544, + "componentType": 5126, + "count": 279, + "max": [ + 0, + 0, + 21.310029983520508 + ], + "min": [ + 0, + 0, + -42.39506530761719 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 168092, + "componentType": 5126, + "count": 2, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 2, + "byteOffset": 86892, + "componentType": 5126, + "count": 2, + "max": [ + 1, + 1, + 1 + ], + "min": [ + 1, + 1, + 1 + ], + "type": "VEC3" + }, + { + "bufferView": 1, + "byteOffset": 168100, + "componentType": 5126, + "count": 367, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 3, + "byteOffset": 556512, + "componentType": 5126, + "count": 367, + "max": [ + 8.359196102885279e-17, + 0.9999496340751648, + 8.359196102885279e-17, + 1 + ], + "min": [ + -8.659445459885287e-17, + -0.8649336099624634, + -8.659445459885287e-17, + -0.4979607164859772 + ], + "type": "VEC4" + }, + { + "bufferView": 1, + "byteOffset": 169568, + "componentType": 5126, + "count": 509, + "max": [ + 25 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "bufferView": 1, + "byteOffset": 171604, + "componentType": 5126, + "count": 1018, + "max": [ + 1 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5125, + "count": 18, + "max": [ + 6 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 7, + "max": [ + 0, + 0, + -1 + ], + "min": [ + 0, + 0, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 7, + "max": [ + 180, + 155.8845672607422, + 0 + ], + "min": [ + -180, + -155.8845672607422, + 0 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 7, + "max": [ + 1, + 6.123234262925839e-17, + 0, + 1 + ], + "min": [ + 1, + 0, + 0, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 7, + "max": [ + 1, + 0.9330127239227295 + ], + "min": [ + 0, + 0.06698727607727051 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 7, + "max": [ + 1, + 0.9330127239227295 + ], + "min": [ + 0, + 0.06698727607727051 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 6624, + "max": [ + 1597 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1598, + "max": [ + 0.9999938607215881, + 1, + 1 + ], + "min": [ + -0.9999938607215881, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1598, + "max": [ + 24.47800064086914, + 40.60210037231445, + 43.78879928588867 + ], + "min": [ + -24.47800064086914, + -39.97100067138672, + -32.2958984375 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1598, + "max": [ + 1, + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1, + -1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1598, + "max": [ + 0.9494781494140625, + 0.9984400272369385 + ], + "min": [ + 0.050515174865722656, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1598, + "max": [ + 0.9494781494140625, + 0.9984400272369385 + ], + "min": [ + 0.050515174865722656, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1598, + "max": [ + 0.9494781494140625, + 0.9984400272369385 + ], + "min": [ + 0.050515174865722656, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1598, + "max": [ + 0.9494781494140625, + 0.9984400272369385 + ], + "min": [ + 0.050515174865722656, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1598, + "max": [ + 0.9494781494140625, + 0.9984400272369385 + ], + "min": [ + 0.050515174865722656, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 192, + "max": [ + 59 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.9462724328041077, + 0.00002637715806486085, + 0.9238796234130859 + ], + "min": [ + -0.9462687969207764, + -0.9339421987533569, + -0.9238765835762024 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 3.158555030822754, + 0, + 2.7355499267578125 + ], + "min": [ + -3.158555030822754, + -4.489299774169922, + -2.7355499267578125 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.6912197470664978, + 0.8588380813598633, + 0.9905509352684021, + 1 + ], + "min": [ + -0.6913442611694336, + -1, + -0.6705939173698425, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.9791259765625, + 0.6324005126953125 + ], + "min": [ + 0.0011079907417297363, + 0.229583740234375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.9791259765625, + 0.6324005126953125 + ], + "min": [ + 0.0011079907417297363, + 0.229583740234375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.9791259765625, + 0.6324005126953125 + ], + "min": [ + 0.0011079907417297363, + 0.229583740234375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.9791259765625, + 0.6324005126953125 + ], + "min": [ + 0.0011079907417297363, + 0.229583740234375 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 2736, + "max": [ + 668 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 2.8378965854644775, + 2.837851047515869, + 3.1812357902526855 + ], + "min": [ + -2.8378965854644775, + -2.837851047515869, + -3.1812357902526855 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9705880284309387, + 0.970474362373352, + 0.9334462881088257, + 1 + ], + "min": [ + -0.9705855250358582, + -0.9705935716629028, + -0.9999987483024597, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.98150634765625, + 0.9824953079223633 + ], + "min": [ + 0.011077880859375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.98150634765625, + 0.9824953079223633 + ], + "min": [ + 0.011077880859375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.98150634765625, + 0.9824953079223633 + ], + "min": [ + 0.011077880859375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.98150634765625, + 0.9824953079223633 + ], + "min": [ + 0.011077880859375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 4872, + "max": [ + 1512 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 3.8741042613983154, + 1.7617741823196411, + 3.0504395961761475 + ], + "min": [ + -3.9423036575317383, + -22.016210556030273, + -4.033937454223633 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 1, + 0.9999995827674866, + 0.9992985129356384, + 1 + ], + "min": [ + -1, + -1, + -0.9996975660324097, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 0.998046875, + 0.9980460405349731 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 0.998046875, + 0.9980460405349731 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 0.998046875, + 0.9980460405349731 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 0.998046875, + 0.9980460405349731 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 2736, + "max": [ + 668 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 2.805872678756714, + 2.503127098083496, + 2.5030744075775146 + ], + "min": [ + -2.8058857917785645, + -2.503126382827759, + -2.5030744075775146 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9999423027038574, + 0.9715058207511902, + 0.9705548882484436, + 1 + ], + "min": [ + -0.9334924221038818, + -0.970590353012085, + -0.970612645149231, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.8618621826171875, + 0.997859001159668 + ], + "min": [ + 0.03627777099609375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.8618621826171875, + 0.997859001159668 + ], + "min": [ + 0.03627777099609375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.8618621826171875, + 0.997859001159668 + ], + "min": [ + 0.03627777099609375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.8618621826171875, + 0.997859001159668 + ], + "min": [ + 0.03627777099609375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 4128, + "max": [ + 1189 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 6.140176773071289, + 7.9751200675964355, + 9.091413497924805 + ], + "min": [ + -6.138557434082031, + -12.837050437927246, + -2.774056911468506 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.9986715912818909, + 1, + 0.932191789150238, + 1 + ], + "min": [ + -1, + -1, + -0.9457818865776062, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.9821929931640625, + 0.9979920387268066 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.9821929931640625, + 0.9979920387268066 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.9821929931640625, + 0.9979920387268066 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.9821929931640625, + 0.9979920387268066 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 192, + "max": [ + 59 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.9462646245956421, + 0.00006607881368836388, + 0.9043453931808472 + ], + "min": [ + -0.9462745189666748, + -0.9273982048034668, + -0.904350757598877 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 2.1719820499420166, + -4.440892098500626e-16, + 2.284182071685791 + ], + "min": [ + -2.1719820499420166, + -8.425638198852539, + -2.284182071685791 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.6912132501602173, + 0.8564750552177429, + 0.9907793998718262, + 1 + ], + "min": [ + -0.6912415623664856, + -1, + -0.6705775260925293, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.5562744140625, + 0.8839511871337891 + ], + "min": [ + 0.24591445922851562, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.5562744140625, + 0.8839511871337891 + ], + "min": [ + 0.24591445922851562, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.5562744140625, + 0.8839511871337891 + ], + "min": [ + 0.24591445922851562, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.5562744140625, + 0.8839511871337891 + ], + "min": [ + 0.24591445922851562, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 2736, + "max": [ + 668 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 2.805861473083496, + 2.503016948699951, + 2.503002166748047 + ], + "min": [ + -2.8058581352233887, + -2.5030174255371094, + -2.503002166748047 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9334709048271179, + 0.9943826198577881, + 0.9705744981765747, + 1 + ], + "min": [ + -0.9999973773956299, + -0.9915933012962341, + -0.9705973267555237, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9977874755859375, + 0.9978030323982239 + ], + "min": [ + 0.011077880859375, + 0.0384979248046875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9977874755859375, + 0.9978030323982239 + ], + "min": [ + 0.011077880859375, + 0.0384979248046875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9977874755859375, + 0.9978030323982239 + ], + "min": [ + 0.011077880859375, + 0.0384979248046875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9977874755859375, + 0.9978030323982239 + ], + "min": [ + 0.011077880859375, + 0.0384979248046875 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 3792, + "max": [ + 1128 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -0.7994152307510376, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 6.352692127227783, + 7.272726058959961, + 6.740703105926514 + ], + "min": [ + -6.337584495544434, + -25.38535499572754, + -2.6904826164245605 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.9445861577987671, + 1, + 0.9917267560958862, + 1 + ], + "min": [ + -0.999998927116394, + -1, + -0.9903827905654907, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.99798583984375, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.054290771484375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.99798583984375, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.054290771484375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.99798583984375, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.054290771484375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.99798583984375, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.054290771484375 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 858, + "max": [ + 209 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.9999997615814209, + 0.9804182648658752, + 0.9717621207237244 + ], + "min": [ + -0.9999998211860657, + -0.9752709269523621, + -0.9717718958854675 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 22.505199432373047, + 16.118268966674805, + 0.014730009250342846 + ], + "min": [ + -19.017000198364258, + -16.7448787689209, + -12.467525482177734 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.7160800695419312, + 0.9986988306045532, + 0.9983847141265869, + 1 + ], + "min": [ + -0.9804638028144836, + -0.9959992170333862, + -0.9985447525978088, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.3270263671875, + 0.9985079765319824 + ], + "min": [ + 0.013447999954223633, + 0.1425018310546875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.3270263671875, + 0.9985079765319824 + ], + "min": [ + 0.013447999954223633, + 0.1425018310546875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.3270263671875, + 0.9985079765319824 + ], + "min": [ + 0.013447999954223633, + 0.1425018310546875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.3270263671875, + 0.9985079765319824 + ], + "min": [ + 0.013447999954223633, + 0.1425018310546875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.3270263671875, + 0.9985079765319824 + ], + "min": [ + 0.013447999954223633, + 0.1425018310546875 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 684, + "max": [ + 181 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.9812500476837158, + 0.98042231798172, + 0.9717556834220886 + ], + "min": [ + -0.9812499284744263, + -0.9752631783485413, + -0.9804222583770752 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 22.49679946899414, + 16.087291717529297, + 0.015429569408297539 + ], + "min": [ + -22.48870086669922, + -16.78112030029297, + -7.136616230010986 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.6957566142082214, + 0.9961112141609192, + 0.9974663853645325, + 1 + ], + "min": [ + -0.7036730647087097, + -0.9936772584915161, + -0.9909072518348694, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.34142303466796875, + 0.9984639883041382 + ], + "min": [ + 0.04077434539794922, + 0.16192626953125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.34142303466796875, + 0.9984639883041382 + ], + "min": [ + 0.04077434539794922, + 0.16192626953125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.34142303466796875, + 0.9984639883041382 + ], + "min": [ + 0.04077434539794922, + 0.16192626953125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.34142303466796875, + 0.9984639883041382 + ], + "min": [ + 0.04077434539794922, + 0.16192626953125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.34142303466796875, + 0.9984639883041382 + ], + "min": [ + 0.04077434539794922, + 0.16192626953125 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 192, + "max": [ + 59 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.9203706383705139, + 0.08052149415016174, + 0.9462553858757019 + ], + "min": [ + -0.9203649163246155, + -0.9591649174690247, + -0.9462553858757019 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 5.528401851654053, + 0.8937630653381348, + 3.1585500240325928 + ], + "min": [ + -0.07819413393735886, + -3.9569084644317627, + -3.1585500240325928 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.6124923825263977, + 0.8991279602050781, + 0.6859615445137024, + -1 + ], + "min": [ + -0.9984928965568542, + -0.9968492984771729, + -0.6886578798294067, + -1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.511199951171875, + 0.9978490471839905 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.511199951171875, + 0.9978490471839905 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.511199951171875, + 0.9978490471839905 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.511199951171875, + 0.9978490471839905 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 2736, + "max": [ + 668 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 3.1813101768493652, + 2.837909698486328, + 2.837886095046997 + ], + "min": [ + -3.181349039077759, + -2.837909698486328, + -2.837886095046997 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9334935545921326, + 0.9705367088317871, + 0.9705860018730164, + -1 + ], + "min": [ + -0.9999493956565857, + -0.9706282615661621, + -0.9704942107200623, + -1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9978485107421875, + 0.9978020191192627 + ], + "min": [ + 0.005537986755371094, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9978485107421875, + 0.9978020191192627 + ], + "min": [ + 0.005537986755371094, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9978485107421875, + 0.9978020191192627 + ], + "min": [ + 0.005537986755371094, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9978485107421875, + 0.9978020191192627 + ], + "min": [ + 0.005537986755371094, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 4872, + "max": [ + 1512 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 3.944369077682495, + 1.761652946472168, + 3.050240993499756 + ], + "min": [ + -3.873849868774414, + -22.01688575744629, + -4.03395414352417 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 1, + 0.9999986886978149, + 0.9997035264968872, + -1 + ], + "min": [ + -1, + -1, + -0.999306321144104, + -1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 0.998046875, + 0.9980520009994507 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 0.998046875, + 0.9980520009994507 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 0.998046875, + 0.9980520009994507 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1513, + "max": [ + 0.998046875, + 0.9980520009994507 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 2736, + "max": [ + 668 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 2.8058583736419678, + 2.503086566925049, + 2.5030324459075928 + ], + "min": [ + -2.8059232234954834, + -2.5030837059020996, + -2.5030324459075928 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9334862232208252, + 0.9717816710472107, + 0.9705871343612671, + -1 + ], + "min": [ + -0.9999354481697083, + -0.9705882668495178, + -0.9704800844192505, + -1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9752960205078125, + 0.997859001159668 + ], + "min": [ + 0.04209327697753906, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9752960205078125, + 0.997859001159668 + ], + "min": [ + 0.04209327697753906, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9752960205078125, + 0.997859001159668 + ], + "min": [ + 0.04209327697753906, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9752960205078125, + 0.997859001159668 + ], + "min": [ + 0.04209327697753906, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 4128, + "max": [ + 1189 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 6.134866237640381, + 7.972114086151123, + 9.091575622558594 + ], + "min": [ + -6.143898010253906, + -12.839866638183594, + -2.773728847503662 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 1, + 1, + 0.9237611889839172, + -1 + ], + "min": [ + -0.9987005591392517, + -1, + -0.9384349584579468, + -1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.9978179931640625, + 0.9980350136756897 + ], + "min": [ + 0.011077880859375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.9978179931640625, + 0.9980350136756897 + ], + "min": [ + 0.011077880859375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.9978179931640625, + 0.9980350136756897 + ], + "min": [ + 0.011077880859375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.9978179931640625, + 0.9980350136756897 + ], + "min": [ + 0.011077880859375, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 192, + "max": [ + 59 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.9462710022926331, + 0.00001421624983777292, + 0.9043461680412292 + ], + "min": [ + -0.9462725520133972, + -0.9274078011512756, + -0.9043479561805725 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 2.1718454360961914, + -3.3487545825520645e-14, + 2.2841246128082275 + ], + "min": [ + -2.1718454360961914, + -8.425505638122559, + -2.2841246128082275 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.6912213563919067, + 0.8617174625396729, + 0.9907815456390381, + -1 + ], + "min": [ + -0.6912751197814941, + -1, + -0.6705557703971863, + -1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.39041900634765625, + 0.9979940056800842 + ], + "min": [ + 0.029907703399658203, + 0.2353973388671875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.39041900634765625, + 0.9979940056800842 + ], + "min": [ + 0.029907703399658203, + 0.2353973388671875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.39041900634765625, + 0.9979940056800842 + ], + "min": [ + 0.029907703399658203, + 0.2353973388671875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.39041900634765625, + 0.9979940056800842 + ], + "min": [ + 0.029907703399658203, + 0.2353973388671875 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 2736, + "max": [ + 668 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 2.805884599685669, + 2.503038167953491, + 2.5029942989349365 + ], + "min": [ + -2.8058927059173584, + -2.503038167953491, + -2.5029942989349365 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9334784746170044, + 0.9944380521774292, + 0.9705901741981506, + -1 + ], + "min": [ + -0.9999455809593201, + -0.9916284084320068, + -0.9705632925033569, + -1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9980010986328125, + 0.9980420470237732 + ], + "min": [ + 0.023261547088623047, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9980010986328125, + 0.9980420470237732 + ], + "min": [ + 0.023261547088623047, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9980010986328125, + 0.9980420470237732 + ], + "min": [ + 0.023261547088623047, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9980010986328125, + 0.9980420470237732 + ], + "min": [ + 0.023261547088623047, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 3792, + "max": [ + 1128 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.9999979138374329, + 0.9999978542327881, + 1 + ], + "min": [ + -0.9999978542327881, + -0.8000316023826599, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 6.356159210205078, + 7.2811970710754395, + 6.741055011749268 + ], + "min": [ + -6.334109306335449, + -25.386653900146484, + -2.690229654312134 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.9999987483024597, + 0.9999978542327881, + 0.9899260401725769, + -1 + ], + "min": [ + -0.9441795349121094, + -0.9999979138374329, + -0.9884353280067444, + -1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.97637939453125, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.97637939453125, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.97637939453125, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.97637939453125, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 858, + "max": [ + 209 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.9999998211860657, + 0.9804549217224121, + 0.9718173146247864 + ], + "min": [ + -0.9999997615814209, + -0.9752144813537598, + -0.9718270897865295 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 19.017000198364258, + 16.119686126708984, + 0.017575301229953766 + ], + "min": [ + -22.505199432373047, + -16.74315071105957, + -12.473467826843262 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.7163847088813782, + 0.9960353970527649, + 0.9985222220420837, + 1 + ], + "min": [ + -0.9804637432098389, + -0.9986840486526489, + -0.9983941912651062, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.986541748046875, + 0.9985079765319824 + ], + "min": [ + 0.6729278564453125, + 0.1425018310546875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.986541748046875, + 0.9985079765319824 + ], + "min": [ + 0.6729278564453125, + 0.1425018310546875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.986541748046875, + 0.9985079765319824 + ], + "min": [ + 0.6729278564453125, + 0.1425018310546875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.986541748046875, + 0.9985079765319824 + ], + "min": [ + 0.6729278564453125, + 0.1425018310546875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 210, + "max": [ + 0.986541748046875, + 0.9985079765319824 + ], + "min": [ + 0.6729278564453125, + 0.1425018310546875 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 684, + "max": [ + 181 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.9812499284744263, + 0.9804224371910095, + 0.9717556834220886 + ], + "min": [ + -0.9812500476837158, + -0.9752631783485413, + -0.9804222583770752 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 22.488698959350586, + 16.08729362487793, + 0.015429651364684105 + ], + "min": [ + -22.49679946899414, + -16.7811222076416, + -7.136616230010986 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.7016284465789795, + 0.993878185749054, + 0.9915738105773926, + 1 + ], + "min": [ + -0.7065384984016418, + -0.9980297684669495, + -0.9960659742355347, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.9592132568359375, + 0.9984700083732605 + ], + "min": [ + 0.6585693359375, + 0.16192626953125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.9592132568359375, + 0.9984700083732605 + ], + "min": [ + 0.6585693359375, + 0.16192626953125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.9592132568359375, + 0.9984700083732605 + ], + "min": [ + 0.6585693359375, + 0.16192626953125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.9592132568359375, + 0.9984700083732605 + ], + "min": [ + 0.6585693359375, + 0.16192626953125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 182, + "max": [ + 0.9592132568359375, + 0.9984700083732605 + ], + "min": [ + 0.6585693359375, + 0.16192626953125 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 192, + "max": [ + 59 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.9203649163246155, + 0.08052149415016174, + 0.9462553858757019 + ], + "min": [ + -0.9203706383705139, + -0.9591649174690247, + -0.9462553858757019 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.07819413393735886, + 0.8937630653381348, + 3.1585500240325928 + ], + "min": [ + -5.528401851654053, + -3.9569084644317627, + -3.1585500240325928 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.9984928965568542, + 0.900946855545044, + 0.6860498189926147, + 1 + ], + "min": [ + -0.6124934554100037, + -0.9968502521514893, + -0.6886581778526306, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.997955322265625, + 0.9978790283203125 + ], + "min": [ + 0.14649581909179688, + 0.2284698486328125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.997955322265625, + 0.9978790283203125 + ], + "min": [ + 0.14649581909179688, + 0.2284698486328125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.997955322265625, + 0.9978790283203125 + ], + "min": [ + 0.14649581909179688, + 0.2284698486328125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.997955322265625, + 0.9978790283203125 + ], + "min": [ + 0.14649581909179688, + 0.2284698486328125 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 2736, + "max": [ + 668 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 3.181283950805664, + 2.837909698486328, + 2.837886095046997 + ], + "min": [ + -3.181283950805664, + -2.837909698486328, + -2.837886095046997 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9999459981918335, + 0.9705654978752136, + 0.9705774784088135, + 1 + ], + "min": [ + -0.9334567785263062, + -0.9705967903137207, + -0.9705893993377686, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9878692626953125, + 0.9980520009994507 + ], + "min": [ + 0.037108421325683594, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9878692626953125, + 0.9980520009994507 + ], + "min": [ + 0.037108421325683594, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9878692626953125, + 0.9980520009994507 + ], + "min": [ + 0.037108421325683594, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9878692626953125, + 0.9980520009994507 + ], + "min": [ + 0.037108421325683594, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 4872, + "max": [ + 1456 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1457, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1457, + "max": [ + 3.8742127418518066, + 1.7617069482803345, + 3.050255298614502 + ], + "min": [ + -3.9421558380126953, + -22.016254425048828, + -4.034045219421387 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1457, + "max": [ + 1, + 0.9999988079071045, + 0.999301552772522, + 1 + ], + "min": [ + -1, + -1, + -0.9996956586837769, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1457, + "max": [ + 0.998046875, + 0.997937023639679 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1457, + "max": [ + 0.998046875, + 0.997937023639679 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1457, + "max": [ + 0.998046875, + 0.997937023639679 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1457, + "max": [ + 0.998046875, + 0.997937023639679 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 2736, + "max": [ + 668 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 1, + 0.9987014532089233, + 0.9986981749534607 + ], + "min": [ + -1, + -0.9987033605575562, + -0.9986976981163025 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 2.805882692337036, + 2.4998340606689453, + 2.4997761249542236 + ], + "min": [ + -2.805903196334839, + -2.4998345375061035, + -2.4997763633728027 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9999436140060425, + 0.9696629643440247, + 0.969977080821991, + 1 + ], + "min": [ + -0.9334853291511536, + -0.9695192575454712, + -0.9701146483421326, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9880218505859375, + 0.9815201759338379 + ], + "min": [ + 0.03489208221435547, + 0.0645294189453125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9880218505859375, + 0.9815201759338379 + ], + "min": [ + 0.03489208221435547, + 0.0645294189453125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9880218505859375, + 0.9815201759338379 + ], + "min": [ + 0.03489208221435547, + 0.0645294189453125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9880218505859375, + 0.9815201759338379 + ], + "min": [ + 0.03489208221435547, + 0.0645294189453125 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 4128, + "max": [ + 1189 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 1, + 1, + 1 + ], + "min": [ + -1, + -1, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 6.144484043121338, + 7.975264549255371, + 9.09143352508545 + ], + "min": [ + -6.134279727935791, + -12.836573600769043, + -2.7741191387176514 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.9986706972122192, + 1, + 0.9321260452270508, + 1 + ], + "min": [ + -1, + -1, + -0.9456865191459656, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.969451904296875, + 0.9978950023651123 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.969451904296875, + 0.9978950023651123 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.969451904296875, + 0.9978950023651123 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1190, + "max": [ + 0.969451904296875, + 0.9978950023651123 + ], + "min": [ + 0.0011079907417297363, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 192, + "max": [ + 59 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.9460511803627014, + 0.020673329010605812, + 0.9043437838554382 + ], + "min": [ + -0.9460495114326477, + -0.9307563900947571, + -0.9043524265289307 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 2.2373239994049072, + -5.258825228852005e-15, + 2.284106492996216 + ], + "min": [ + -2.2373239994049072, + -8.501056671142578, + -2.284106492996216 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.7061308026313782, + 0.8601000308990479, + 0.9907819628715515, + 1 + ], + "min": [ + -0.6760434508323669, + -0.9998863935470581, + -0.6705630421638489, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.882232666015625, + 0.9979940056800842 + ], + "min": [ + 0.14953994750976562, + 0.4477996826171875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.882232666015625, + 0.9979940056800842 + ], + "min": [ + 0.14953994750976562, + 0.4477996826171875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.882232666015625, + 0.9979940056800842 + ], + "min": [ + 0.14953994750976562, + 0.4477996826171875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 60, + "max": [ + 0.882232666015625, + 0.9979940056800842 + ], + "min": [ + 0.14953994750976562, + 0.4477996826171875 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 2736, + "max": [ + 668 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9997609853744507, + 0.9997621774673462, + 1 + ], + "min": [ + -0.9997605681419373, + -0.9997619986534119, + -1 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 2.814361095428467, + 2.5024404525756836, + 2.5029942989349365 + ], + "min": [ + -2.814356803894043, + -2.5024402141571045, + -2.5029942989349365 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.9410112500190735, + 0.9957802891731262, + 0.9705701470375061, + 1 + ], + "min": [ + -0.9999746680259705, + -0.9924947619438171, + -0.9705852270126343, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.950103759765625, + 0.9767532348632812 + ], + "min": [ + 0.005815982818603516, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.950103759765625, + 0.9767532348632812 + ], + "min": [ + 0.005815982818603516, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.950103759765625, + 0.9767532348632812 + ], + "min": [ + 0.005815982818603516, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 669, + "max": [ + 0.950103759765625, + 0.9767532348632812 + ], + "min": [ + 0.005815982818603516, + 0.0011138916015625 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 3792, + "max": [ + 1128 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.9997616410255432, + 0.9998812675476074, + 0.9998799562454224 + ], + "min": [ + -0.9997621774673462, + -0.8040514588356018, + -0.9998816251754761 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 6.410318374633789, + 7.331780910491943, + 6.804128170013428 + ], + "min": [ + -6.276950359344482, + -25.39360809326172, + -2.7138583660125732 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.9514473676681519, + 0.9999784231185913, + 0.9934725165367126, + 1 + ], + "min": [ + -0.9999739527702332, + -0.9999784827232361, + -0.9883590936660767, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.971954345703125, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.0448760986328125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.971954345703125, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.0448760986328125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.971954345703125, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.0448760986328125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1129, + "max": [ + 0.971954345703125, + 0.9980530142784119 + ], + "min": [ + 0.0011079907417297363, + 0.0448760986328125 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 198, + "max": [ + 47 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.9800400733947754, + 0.9815039038658142, + 0.9692381620407104 + ], + "min": [ + -0.9800400733947754, + -0.9815108776092529, + -0.009044792503118515 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 22.25983238220215, + 3.6992530785930143e-16, + 5.172183990478516 + ], + "min": [ + -22.703067779541016, + -2.035116672515869, + -4.854550361633301 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.711862325668335, + 0.009239021688699722, + 1, + 1 + ], + "min": [ + -0.7126688957214355, + -0.9862862229347229, + -0.9999582171440125, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.34128570556640625, + 0.3702392578125 + ], + "min": [ + 0.2750701904296875, + 0.1679534912109375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.34128570556640625, + 0.3702392578125 + ], + "min": [ + 0.2750701904296875, + 0.1679534912109375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.34128570556640625, + 0.3702392578125 + ], + "min": [ + 0.2750701904296875, + 0.1679534912109375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.34128570556640625, + 0.3702392578125 + ], + "min": [ + 0.2750701904296875, + 0.1679534912109375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.34128570556640625, + 0.3702392578125 + ], + "min": [ + 0.2750701904296875, + 0.1679534912109375 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 198, + "max": [ + 47 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.9800400733947754, + 0.9815039038658142, + 0.9692381620407104 + ], + "min": [ + -0.9800400733947754, + -0.9815108776092529, + -0.00904479343444109 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 22.481449127197266, + 1.0175585746765137, + 5.013367176055908 + ], + "min": [ + -22.481449127197266, + -1.0175585746765137, + -5.013367176055908 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.7118115425109863, + 0.9863398671150208, + 0.999962568283081, + 1 + ], + "min": [ + -0.7124660015106201, + -0.0099171232432127, + -0.9999998807907104, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.72491455078125, + 0.37017822265625 + ], + "min": [ + 0.658599853515625, + 0.1679534912109375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.72491455078125, + 0.37017822265625 + ], + "min": [ + 0.658599853515625, + 0.1679534912109375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.72491455078125, + 0.37017822265625 + ], + "min": [ + 0.658599853515625, + 0.1679534912109375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.72491455078125, + 0.37017822265625 + ], + "min": [ + 0.658599853515625, + 0.1679534912109375 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 48, + "max": [ + 0.72491455078125, + 0.37017822265625 + ], + "min": [ + 0.658599853515625, + 0.1679534912109375 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 198, + "max": [ + 51 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 52, + "max": [ + 0.980785071849823, + 0.963556170463562, + 0.980782151222229 + ], + "min": [ + -0.980785071849823, + 0, + -0.9807981252670288 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 52, + "max": [ + 5.742680072784424, + 7.674149990081787, + 16.58354949951172 + ], + "min": [ + -5.742680072784424, + -7.674149990081787, + -16.58354949951172 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 52, + "max": [ + -0.000021119056327734143, + 1, + 0.7062842845916748, + 1 + ], + "min": [ + -0.9896541237831116, + -1, + -0.7070288062095642, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 52, + "max": [ + 0.27196502685546875, + 0.6553955078125 + ], + "min": [ + 0.14226150512695312, + 0.457794189453125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 52, + "max": [ + 0.27196502685546875, + 0.6553955078125 + ], + "min": [ + 0.14226150512695312, + 0.457794189453125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 52, + "max": [ + 0.27196502685546875, + 0.6553955078125 + ], + "min": [ + 0.14226150512695312, + 0.457794189453125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 52, + "max": [ + 0.27196502685546875, + 0.6553955078125 + ], + "min": [ + 0.14226150512695312, + 0.457794189453125 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 52, + "max": [ + 0.27196502685546875, + 0.6553955078125 + ], + "min": [ + 0.14226150512695312, + 0.457794189453125 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 324, + "max": [ + 60 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 61, + "max": [ + 0.9253151416778564, + 0.9224124550819397, + 0.9999999403953552 + ], + "min": [ + -0.9253151416778564, + -0.922246515750885, + 0.3791990280151367 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 61, + "max": [ + 3.422339916229248, + 3.4983837604522705, + 1.0367803573608398 + ], + "min": [ + -3.422339916229248, + -3.4988362789154053, + -0.0045692152343690395 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 61, + "max": [ + -0.37807369232177734, + 0.16984163224697113, + 0.923377513885498, + 1 + ], + "min": [ + -1, + -0.25828370451927185, + -0.922590970993042, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 61, + "max": [ + 0.5171157717704773, + 0.4423835277557373 + ], + "min": [ + 0.48266905546188354, + 0.4072730541229248 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 61, + "max": [ + 0.5171157717704773, + 0.4423835277557373 + ], + "min": [ + 0.48266905546188354, + 0.4072730541229248 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 61, + "max": [ + 0.5171157717704773, + 0.4423835277557373 + ], + "min": [ + 0.48266905546188354, + 0.4072730541229248 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 61, + "max": [ + 0.5171157717704773, + 0.4423835277557373 + ], + "min": [ + 0.48266905546188354, + 0.4072730541229248 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 61, + "max": [ + 0.5171157717704773, + 0.4423835277557373 + ], + "min": [ + 0.48266905546188354, + 0.4072730541229248 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 36, + "max": [ + 12 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 13, + "max": [ + 0.00007492514851037413, + -0.0015094821574166417, + -0.9999987483024597 + ], + "min": [ + -0.00007492515578633174, + -0.0015759739326313138, + -0.999998927116394 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 13, + "max": [ + 0.5206102132797241, + 0.5319043397903442, + -9.52561092376709 + ], + "min": [ + -0.5205997824668884, + -0.5325044393539429, + -9.527267456054688 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 13, + "max": [ + 1, + 0.0016572648892179132, + 0.00007750481745461002, + 1 + ], + "min": [ + 0.9999986290931702, + -0.001644145231693983, + -0.000077527787652798, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 13, + "max": [ + 0.5069850087165833, + 0.45840930938720703 + ], + "min": [ + 0.492599755525589, + 0.44371509552001953 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 13, + "max": [ + 0.5069850087165833, + 0.45840930938720703 + ], + "min": [ + 0.492599755525589, + 0.44371509552001953 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 13, + "max": [ + 0.5069850087165833, + 0.45840930938720703 + ], + "min": [ + 0.492599755525589, + 0.44371509552001953 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 13, + "max": [ + 0.5069850087165833, + 0.45840930938720703 + ], + "min": [ + 0.492599755525589, + 0.44371509552001953 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 13, + "max": [ + 0.5069850087165833, + 0.45840930938720703 + ], + "min": [ + 0.492599755525589, + 0.44371509552001953 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 6768, + "max": [ + 1394 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 1, + 0.9952672719955444, + 0.9951035976409912 + ], + "min": [ + -1, + -0.9998235106468201, + -0.999494731426239 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 37.781776428222656, + 7.368798732757568, + 5.318163871765137 + ], + "min": [ + -37.78172302246094, + -72.43864440917969, + -26.958742141723633 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.9951720833778381, + 0.9952999949455261, + 0.9998140335083008, + 1 + ], + "min": [ + -0.9951794147491455, + -0.9994944930076599, + -0.9952681660652161, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.9985809326171875, + 0.998432993888855 + ], + "min": [ + 0.587646484375, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.9985809326171875, + 0.998432993888855 + ], + "min": [ + 0.587646484375, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.9985809326171875, + 0.998432993888855 + ], + "min": [ + 0.587646484375, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.9985809326171875, + 0.998432993888855 + ], + "min": [ + 0.587646484375, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.9985809326171875, + 0.998432993888855 + ], + "min": [ + 0.587646484375, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 4896, + "max": [ + 1187 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.9985098242759705, + 1, + 0.9985183477401733 + ], + "min": [ + -0.9985097050666809, + -1, + -0.9985119104385376 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 32.348899841308594, + 5.063899993896484, + 32.348899841308594 + ], + "min": [ + -32.348899841308594, + -5.063899993896484, + -32.34890365600586 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.9971701502799988, + 0.9981505870819092, + 1, + 1 + ], + "min": [ + -0.9971259236335754, + -0.9981384873390198, + -1, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.9985198974609375, + 0.9985760450363159 + ], + "min": [ + 0.5195770263671875, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.9985198974609375, + 0.9985760450363159 + ], + "min": [ + 0.5195770263671875, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.9985198974609375, + 0.9985760450363159 + ], + "min": [ + 0.5195770263671875, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.9985198974609375, + 0.9985760450363159 + ], + "min": [ + 0.5195770263671875, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.9985198974609375, + 0.9985760450363159 + ], + "min": [ + 0.5195770263671875, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 6768, + "max": [ + 1394 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 1, + 0.9952672719955444, + 0.9951035976409912 + ], + "min": [ + -1, + -0.9998235702514648, + -0.999494731426239 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 37.78175354003906, + 7.36879825592041, + 5.3181657791137695 + ], + "min": [ + -37.7817497253418, + -72.43864440917969, + -26.958721160888672 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.9951218962669373, + 0.9994943141937256, + 0.9952681660652161, + 1 + ], + "min": [ + -0.9952056407928467, + -0.9952999949455261, + -0.9998233318328857, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.4123382568359375, + 0.9985350370407104 + ], + "min": [ + 0.001408994197845459, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.4123382568359375, + 0.9985350370407104 + ], + "min": [ + 0.001408994197845459, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.4123382568359375, + 0.9985350370407104 + ], + "min": [ + 0.001408994197845459, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.4123382568359375, + 0.9985350370407104 + ], + "min": [ + 0.001408994197845459, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1395, + "max": [ + 0.4123382568359375, + 0.9985350370407104 + ], + "min": [ + 0.001408994197845459, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5125, + "count": 4896, + "max": [ + 1187 + ], + "min": [ + 0 + ], + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.9985119104385376, + 1, + 0.9985097646713257 + ], + "min": [ + -0.9985182881355286, + -1, + -0.9985126256942749 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 32.348899841308594, + 5.063899993896484, + 32.348899841308594 + ], + "min": [ + -32.348899841308594, + -5.063899993896484, + -32.348899841308594 + ], + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.9999992251396179, + 0.9981393814086914, + 0.9971155524253845, + 1 + ], + "min": [ + -0.9999951124191284, + -0.998076856136322, + -0.9971383810043335, + 1 + ], + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.48041534423828125, + 0.9985830187797546 + ], + "min": [ + 0.001475989818572998, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.48041534423828125, + 0.9985830187797546 + ], + "min": [ + 0.001475989818572998, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.48041534423828125, + 0.9985830187797546 + ], + "min": [ + 0.001475989818572998, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.48041534423828125, + 0.9985830187797546 + ], + "min": [ + 0.001475989818572998, + 0.00115966796875 + ], + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 1188, + "max": [ + 0.48041534423828125, + 0.9985830187797546 + ], + "min": [ + 0.001475989818572998, + 0.00115966796875 + ], + "type": "VEC2" + } + ], + "animations": [ + { + "channels": [ + { + "sampler": 0, + "target": { + "node": 10, + "path": "translation" + } + }, + { + "sampler": 1, + "target": { + "node": 10, + "path": "scale" + } + }, + { + "sampler": 2, + "target": { + "node": 10, + "path": "rotation" + } + }, + { + "sampler": 3, + "target": { + "node": 33, + "path": "translation" + } + }, + { + "sampler": 4, + "target": { + "node": 33, + "path": "scale" + } + }, + { + "sampler": 5, + "target": { + "node": 33, + "path": "rotation" + } + }, + { + "sampler": 6, + "target": { + "node": 29, + "path": "translation" + } + }, + { + "sampler": 7, + "target": { + "node": 29, + "path": "scale" + } + }, + { + "sampler": 8, + "target": { + "node": 29, + "path": "rotation" + } + }, + { + "sampler": 9, + "target": { + "node": 27, + "path": "translation" + } + }, + { + "sampler": 10, + "target": { + "node": 27, + "path": "scale" + } + }, + { + "sampler": 11, + "target": { + "node": 27, + "path": "rotation" + } + }, + { + "sampler": 12, + "target": { + "node": 25, + "path": "translation" + } + }, + { + "sampler": 13, + "target": { + "node": 25, + "path": "scale" + } + }, + { + "sampler": 14, + "target": { + "node": 25, + "path": "rotation" + } + }, + { + "sampler": 15, + "target": { + "node": 23, + "path": "translation" + } + }, + { + "sampler": 16, + "target": { + "node": 23, + "path": "scale" + } + }, + { + "sampler": 17, + "target": { + "node": 23, + "path": "rotation" + } + }, + { + "sampler": 18, + "target": { + "node": 21, + "path": "translation" + } + }, + { + "sampler": 19, + "target": { + "node": 21, + "path": "scale" + } + }, + { + "sampler": 20, + "target": { + "node": 21, + "path": "rotation" + } + }, + { + "sampler": 21, + "target": { + "node": 53, + "path": "translation" + } + }, + { + "sampler": 22, + "target": { + "node": 53, + "path": "scale" + } + }, + { + "sampler": 23, + "target": { + "node": 53, + "path": "rotation" + } + }, + { + "sampler": 24, + "target": { + "node": 49, + "path": "translation" + } + }, + { + "sampler": 25, + "target": { + "node": 49, + "path": "scale" + } + }, + { + "sampler": 26, + "target": { + "node": 49, + "path": "rotation" + } + }, + { + "sampler": 27, + "target": { + "node": 47, + "path": "translation" + } + }, + { + "sampler": 28, + "target": { + "node": 47, + "path": "scale" + } + }, + { + "sampler": 29, + "target": { + "node": 47, + "path": "rotation" + } + }, + { + "sampler": 30, + "target": { + "node": 45, + "path": "translation" + } + }, + { + "sampler": 31, + "target": { + "node": 45, + "path": "scale" + } + }, + { + "sampler": 32, + "target": { + "node": 45, + "path": "rotation" + } + }, + { + "sampler": 33, + "target": { + "node": 43, + "path": "translation" + } + }, + { + "sampler": 34, + "target": { + "node": 43, + "path": "scale" + } + }, + { + "sampler": 35, + "target": { + "node": 43, + "path": "rotation" + } + }, + { + "sampler": 36, + "target": { + "node": 41, + "path": "translation" + } + }, + { + "sampler": 37, + "target": { + "node": 41, + "path": "scale" + } + }, + { + "sampler": 38, + "target": { + "node": 41, + "path": "rotation" + } + }, + { + "sampler": 39, + "target": { + "node": 37, + "path": "translation" + } + }, + { + "sampler": 40, + "target": { + "node": 37, + "path": "scale" + } + }, + { + "sampler": 41, + "target": { + "node": 37, + "path": "rotation" + } + }, + { + "sampler": 42, + "target": { + "node": 35, + "path": "translation" + } + }, + { + "sampler": 43, + "target": { + "node": 35, + "path": "scale" + } + }, + { + "sampler": 44, + "target": { + "node": 35, + "path": "rotation" + } + }, + { + "sampler": 45, + "target": { + "node": 73, + "path": "translation" + } + }, + { + "sampler": 46, + "target": { + "node": 73, + "path": "scale" + } + }, + { + "sampler": 47, + "target": { + "node": 73, + "path": "rotation" + } + }, + { + "sampler": 48, + "target": { + "node": 69, + "path": "translation" + } + }, + { + "sampler": 49, + "target": { + "node": 69, + "path": "scale" + } + }, + { + "sampler": 50, + "target": { + "node": 69, + "path": "rotation" + } + }, + { + "sampler": 51, + "target": { + "node": 67, + "path": "translation" + } + }, + { + "sampler": 52, + "target": { + "node": 67, + "path": "scale" + } + }, + { + "sampler": 53, + "target": { + "node": 67, + "path": "rotation" + } + }, + { + "sampler": 54, + "target": { + "node": 65, + "path": "translation" + } + }, + { + "sampler": 55, + "target": { + "node": 65, + "path": "scale" + } + }, + { + "sampler": 56, + "target": { + "node": 65, + "path": "rotation" + } + }, + { + "sampler": 57, + "target": { + "node": 63, + "path": "translation" + } + }, + { + "sampler": 58, + "target": { + "node": 63, + "path": "scale" + } + }, + { + "sampler": 59, + "target": { + "node": 63, + "path": "rotation" + } + }, + { + "sampler": 60, + "target": { + "node": 61, + "path": "translation" + } + }, + { + "sampler": 61, + "target": { + "node": 61, + "path": "scale" + } + }, + { + "sampler": 62, + "target": { + "node": 61, + "path": "rotation" + } + }, + { + "sampler": 63, + "target": { + "node": 57, + "path": "translation" + } + }, + { + "sampler": 64, + "target": { + "node": 57, + "path": "scale" + } + }, + { + "sampler": 65, + "target": { + "node": 57, + "path": "rotation" + } + }, + { + "sampler": 66, + "target": { + "node": 55, + "path": "translation" + } + }, + { + "sampler": 67, + "target": { + "node": 55, + "path": "scale" + } + }, + { + "sampler": 68, + "target": { + "node": 55, + "path": "rotation" + } + }, + { + "sampler": 69, + "target": { + "node": 75, + "path": "translation" + } + }, + { + "sampler": 70, + "target": { + "node": 75, + "path": "scale" + } + }, + { + "sampler": 71, + "target": { + "node": 75, + "path": "rotation" + } + }, + { + "sampler": 72, + "target": { + "node": 77, + "path": "translation" + } + }, + { + "sampler": 73, + "target": { + "node": 77, + "path": "scale" + } + }, + { + "sampler": 74, + "target": { + "node": 77, + "path": "rotation" + } + }, + { + "sampler": 75, + "target": { + "node": 79, + "path": "translation" + } + }, + { + "sampler": 76, + "target": { + "node": 79, + "path": "scale" + } + }, + { + "sampler": 77, + "target": { + "node": 79, + "path": "rotation" + } + }, + { + "sampler": 78, + "target": { + "node": 83, + "path": "translation" + } + }, + { + "sampler": 79, + "target": { + "node": 83, + "path": "scale" + } + }, + { + "sampler": 80, + "target": { + "node": 83, + "path": "rotation" + } + }, + { + "sampler": 81, + "target": { + "node": 87, + "path": "translation" + } + }, + { + "sampler": 82, + "target": { + "node": 87, + "path": "scale" + } + }, + { + "sampler": 83, + "target": { + "node": 87, + "path": "rotation" + } + }, + { + "sampler": 84, + "target": { + "node": 85, + "path": "translation" + } + }, + { + "sampler": 85, + "target": { + "node": 85, + "path": "scale" + } + }, + { + "sampler": 86, + "target": { + "node": 85, + "path": "rotation" + } + }, + { + "sampler": 87, + "target": { + "node": 91, + "path": "translation" + } + }, + { + "sampler": 88, + "target": { + "node": 91, + "path": "scale" + } + }, + { + "sampler": 89, + "target": { + "node": 91, + "path": "rotation" + } + }, + { + "sampler": 90, + "target": { + "node": 89, + "path": "translation" + } + }, + { + "sampler": 91, + "target": { + "node": 89, + "path": "scale" + } + }, + { + "sampler": 92, + "target": { + "node": 89, + "path": "rotation" + } + }, + { + "sampler": 93, + "target": { + "node": 13, + "path": "translation" + } + }, + { + "sampler": 94, + "target": { + "node": 13, + "path": "scale" + } + }, + { + "sampler": 95, + "target": { + "node": 13, + "path": "rotation" + } + }, + { + "sampler": 96, + "target": { + "node": 9, + "path": "translation" + } + }, + { + "sampler": 97, + "target": { + "node": 9, + "path": "scale" + } + }, + { + "sampler": 98, + "target": { + "node": 9, + "path": "rotation" + } + }, + { + "sampler": 99, + "target": { + "node": 84, + "path": "weights" + } + } + ], + "name": "CINEMA_4D_Basis", + "samplers": [ + { + "input": 4, + "interpolation": "LINEAR", + "output": 5 + }, + { + "input": 6, + "interpolation": "LINEAR", + "output": 7 + }, + { + "input": 8, + "interpolation": "LINEAR", + "output": 9 + }, + { + "input": 10, + "interpolation": "LINEAR", + "output": 11 + }, + { + "input": 12, + "interpolation": "LINEAR", + "output": 13 + }, + { + "input": 14, + "interpolation": "LINEAR", + "output": 15 + }, + { + "input": 16, + "interpolation": "LINEAR", + "output": 17 + }, + { + "input": 18, + "interpolation": "LINEAR", + "output": 19 + }, + { + "input": 20, + "interpolation": "LINEAR", + "output": 21 + }, + { + "input": 22, + "interpolation": "LINEAR", + "output": 23 + }, + { + "input": 24, + "interpolation": "LINEAR", + "output": 25 + }, + { + "input": 26, + "interpolation": "LINEAR", + "output": 27 + }, + { + "input": 28, + "interpolation": "LINEAR", + "output": 29 + }, + { + "input": 30, + "interpolation": "LINEAR", + "output": 31 + }, + { + "input": 32, + "interpolation": "LINEAR", + "output": 33 + }, + { + "input": 34, + "interpolation": "LINEAR", + "output": 35 + }, + { + "input": 36, + "interpolation": "LINEAR", + "output": 37 + }, + { + "input": 38, + "interpolation": "LINEAR", + "output": 39 + }, + { + "input": 40, + "interpolation": "LINEAR", + "output": 41 + }, + { + "input": 42, + "interpolation": "LINEAR", + "output": 43 + }, + { + "input": 44, + "interpolation": "LINEAR", + "output": 45 + }, + { + "input": 46, + "interpolation": "LINEAR", + "output": 47 + }, + { + "input": 48, + "interpolation": "LINEAR", + "output": 49 + }, + { + "input": 50, + "interpolation": "LINEAR", + "output": 51 + }, + { + "input": 52, + "interpolation": "LINEAR", + "output": 53 + }, + { + "input": 54, + "interpolation": "LINEAR", + "output": 55 + }, + { + "input": 56, + "interpolation": "LINEAR", + "output": 57 + }, + { + "input": 58, + "interpolation": "LINEAR", + "output": 59 + }, + { + "input": 60, + "interpolation": "LINEAR", + "output": 61 + }, + { + "input": 62, + "interpolation": "LINEAR", + "output": 63 + }, + { + "input": 64, + "interpolation": "LINEAR", + "output": 65 + }, + { + "input": 66, + "interpolation": "LINEAR", + "output": 67 + }, + { + "input": 68, + "interpolation": "LINEAR", + "output": 69 + }, + { + "input": 70, + "interpolation": "LINEAR", + "output": 71 + }, + { + "input": 72, + "interpolation": "LINEAR", + "output": 73 + }, + { + "input": 74, + "interpolation": "LINEAR", + "output": 75 + }, + { + "input": 76, + "interpolation": "LINEAR", + "output": 77 + }, + { + "input": 78, + "interpolation": "LINEAR", + "output": 79 + }, + { + "input": 80, + "interpolation": "LINEAR", + "output": 81 + }, + { + "input": 82, + "interpolation": "LINEAR", + "output": 83 + }, + { + "input": 84, + "interpolation": "LINEAR", + "output": 85 + }, + { + "input": 86, + "interpolation": "LINEAR", + "output": 87 + }, + { + "input": 88, + "interpolation": "LINEAR", + "output": 89 + }, + { + "input": 90, + "interpolation": "LINEAR", + "output": 91 + }, + { + "input": 92, + "interpolation": "LINEAR", + "output": 93 + }, + { + "input": 94, + "interpolation": "LINEAR", + "output": 95 + }, + { + "input": 96, + "interpolation": "LINEAR", + "output": 97 + }, + { + "input": 98, + "interpolation": "LINEAR", + "output": 99 + }, + { + "input": 100, + "interpolation": "LINEAR", + "output": 101 + }, + { + "input": 102, + "interpolation": "LINEAR", + "output": 103 + }, + { + "input": 104, + "interpolation": "LINEAR", + "output": 105 + }, + { + "input": 106, + "interpolation": "LINEAR", + "output": 107 + }, + { + "input": 108, + "interpolation": "LINEAR", + "output": 109 + }, + { + "input": 110, + "interpolation": "LINEAR", + "output": 111 + }, + { + "input": 112, + "interpolation": "LINEAR", + "output": 113 + }, + { + "input": 114, + "interpolation": "LINEAR", + "output": 115 + }, + { + "input": 116, + "interpolation": "LINEAR", + "output": 117 + }, + { + "input": 118, + "interpolation": "LINEAR", + "output": 119 + }, + { + "input": 120, + "interpolation": "LINEAR", + "output": 121 + }, + { + "input": 122, + "interpolation": "LINEAR", + "output": 123 + }, + { + "input": 124, + "interpolation": "LINEAR", + "output": 125 + }, + { + "input": 126, + "interpolation": "LINEAR", + "output": 127 + }, + { + "input": 128, + "interpolation": "LINEAR", + "output": 129 + }, + { + "input": 130, + "interpolation": "LINEAR", + "output": 131 + }, + { + "input": 132, + "interpolation": "LINEAR", + "output": 133 + }, + { + "input": 134, + "interpolation": "LINEAR", + "output": 135 + }, + { + "input": 136, + "interpolation": "LINEAR", + "output": 137 + }, + { + "input": 138, + "interpolation": "LINEAR", + "output": 139 + }, + { + "input": 140, + "interpolation": "LINEAR", + "output": 141 + }, + { + "input": 142, + "interpolation": "LINEAR", + "output": 143 + }, + { + "input": 144, + "interpolation": "LINEAR", + "output": 145 + }, + { + "input": 146, + "interpolation": "LINEAR", + "output": 147 + }, + { + "input": 148, + "interpolation": "LINEAR", + "output": 149 + }, + { + "input": 150, + "interpolation": "LINEAR", + "output": 151 + }, + { + "input": 152, + "interpolation": "LINEAR", + "output": 153 + }, + { + "input": 154, + "interpolation": "LINEAR", + "output": 155 + }, + { + "input": 156, + "interpolation": "LINEAR", + "output": 157 + }, + { + "input": 158, + "interpolation": "LINEAR", + "output": 159 + }, + { + "input": 160, + "interpolation": "LINEAR", + "output": 161 + }, + { + "input": 162, + "interpolation": "LINEAR", + "output": 163 + }, + { + "input": 164, + "interpolation": "LINEAR", + "output": 165 + }, + { + "input": 166, + "interpolation": "LINEAR", + "output": 167 + }, + { + "input": 168, + "interpolation": "LINEAR", + "output": 169 + }, + { + "input": 170, + "interpolation": "LINEAR", + "output": 171 + }, + { + "input": 172, + "interpolation": "LINEAR", + "output": 173 + }, + { + "input": 174, + "interpolation": "LINEAR", + "output": 175 + }, + { + "input": 176, + "interpolation": "LINEAR", + "output": 177 + }, + { + "input": 178, + "interpolation": "LINEAR", + "output": 179 + }, + { + "input": 180, + "interpolation": "LINEAR", + "output": 181 + }, + { + "input": 182, + "interpolation": "LINEAR", + "output": 183 + }, + { + "input": 184, + "interpolation": "LINEAR", + "output": 185 + }, + { + "input": 186, + "interpolation": "LINEAR", + "output": 187 + }, + { + "input": 188, + "interpolation": "LINEAR", + "output": 189 + }, + { + "input": 190, + "interpolation": "LINEAR", + "output": 191 + }, + { + "input": 192, + "interpolation": "LINEAR", + "output": 193 + }, + { + "input": 194, + "interpolation": "LINEAR", + "output": 195 + }, + { + "input": 196, + "interpolation": "LINEAR", + "output": 197 + }, + { + "input": 198, + "interpolation": "LINEAR", + "output": 199 + }, + { + "input": 200, + "interpolation": "LINEAR", + "output": 201 + }, + { + "input": 202, + "interpolation": "LINEAR", + "output": 203 + } + ] + } + ], + "asset": { + "extras": { + "author": "LaVADraGoN (https://sketchfab.com/lavadragon)", + "license": "CC-BY-NC-4.0 (http://creativecommons.org/licenses/by-nc/4.0/)", + "source": "https://sketchfab.com/3d-models/buster-drone-294e79652f494130ad2ab00a13fdbafd", + "title": "Buster Drone" + }, + "generator": "Sketchfab-7.38.0", + "version": "2.0" + }, + "bufferViews": [ + { + "buffer": 0, + "byteLength": 614976, + "byteOffset": 0, + "byteStride": 12, + "name": "floatBufferViews", + "target": 34962 + }, + { + "buffer": 0, + "byteLength": 175676, + "byteOffset": 614976, + "name": "floatBufferViews" + }, + { + "buffer": 0, + "byteLength": 86916, + "byteOffset": 790652, + "byteStride": 12, + "name": "floatBufferViews" + }, + { + "buffer": 0, + "byteLength": 562384, + "byteOffset": 877568, + "byteStride": 16, + "name": "floatBufferViews" + }, + { + "buffer": 0, + "byteOffset": 1439952, + "byteLength": 354 + }, + { + "buffer": 0, + "byteOffset": 1440308, + "byteLength": 24007 + }, + { + "buffer": 0, + "byteOffset": 1464316, + "byteLength": 1381 + }, + { + "buffer": 0, + "byteOffset": 1465700, + "byteLength": 9138 + }, + { + "buffer": 0, + "byteOffset": 1474840, + "byteLength": 20853 + }, + { + "buffer": 0, + "byteOffset": 1495696, + "byteLength": 9029 + }, + { + "buffer": 0, + "byteOffset": 1504728, + "byteLength": 16918 + }, + { + "buffer": 0, + "byteOffset": 1521648, + "byteLength": 1435 + }, + { + "buffer": 0, + "byteOffset": 1523084, + "byteLength": 9013 + }, + { + "buffer": 0, + "byteOffset": 1532100, + "byteLength": 15509 + }, + { + "buffer": 0, + "byteOffset": 1547612, + "byteLength": 4226 + }, + { + "buffer": 0, + "byteOffset": 1551840, + "byteLength": 3250 + }, + { + "buffer": 0, + "byteOffset": 1555092, + "byteLength": 1382 + }, + { + "buffer": 0, + "byteOffset": 1556476, + "byteLength": 9352 + }, + { + "buffer": 0, + "byteOffset": 1565828, + "byteLength": 21051 + }, + { + "buffer": 0, + "byteOffset": 1586880, + "byteLength": 9282 + }, + { + "buffer": 0, + "byteOffset": 1596164, + "byteLength": 16939 + }, + { + "buffer": 0, + "byteOffset": 1613104, + "byteLength": 1384 + }, + { + "buffer": 0, + "byteOffset": 1614488, + "byteLength": 9284 + }, + { + "buffer": 0, + "byteOffset": 1623772, + "byteLength": 15464 + }, + { + "buffer": 0, + "byteOffset": 1639236, + "byteLength": 4109 + }, + { + "buffer": 0, + "byteOffset": 1643348, + "byteLength": 3147 + }, + { + "buffer": 0, + "byteOffset": 1646496, + "byteLength": 1396 + }, + { + "buffer": 0, + "byteOffset": 1647892, + "byteLength": 9088 + }, + { + "buffer": 0, + "byteOffset": 1656980, + "byteLength": 20226 + }, + { + "buffer": 0, + "byteOffset": 1677208, + "byteLength": 9096 + }, + { + "buffer": 0, + "byteOffset": 1686304, + "byteLength": 16935 + }, + { + "buffer": 0, + "byteOffset": 1703240, + "byteLength": 1378 + }, + { + "buffer": 0, + "byteOffset": 1704620, + "byteLength": 9040 + }, + { + "buffer": 0, + "byteOffset": 1713660, + "byteLength": 15560 + }, + { + "buffer": 0, + "byteOffset": 1729220, + "byteLength": 1310 + }, + { + "buffer": 0, + "byteOffset": 1730532, + "byteLength": 1346 + }, + { + "buffer": 0, + "byteOffset": 1731880, + "byteLength": 1325 + }, + { + "buffer": 0, + "byteOffset": 1733208, + "byteLength": 1847 + }, + { + "buffer": 0, + "byteOffset": 1735056, + "byteLength": 719 + }, + { + "buffer": 0, + "byteOffset": 1735776, + "byteLength": 18693 + }, + { + "buffer": 0, + "byteOffset": 1754472, + "byteLength": 17770 + }, + { + "buffer": 0, + "byteOffset": 1772244, + "byteLength": 20941 + }, + { + "buffer": 0, + "byteOffset": 1793188, + "byteLength": 17590 + } + ], + "buffers": [ + { + "name": "scene", + "byteLength": 1810780, + "uri": "scene.bin" + } + ], + "images": [ + { + "name": "Boden_baseColor", + "uri": "textures/Boden_baseColor.jpg" + }, + { + "name": "Boden_metallicRoughness", + "uri": "textures/Boden_metallicRoughness.jpg" + }, + { + "name": "Boden_normal", + "uri": "textures/Boden_normal.jpg" + }, + { + "name": "body_baseColor", + "uri": "textures/body_baseColor.jpg" + }, + { + "name": "body_metallicRoughness", + "uri": "textures/body_metallicRoughness.jpg" + }, + { + "name": "body_emissive", + "uri": "textures/body_emissive.jpg" + }, + { + "name": "body_normal", + "uri": "textures/body_normal.jpg" + }, + { + "name": "material_baseColor", + "uri": "textures/material_baseColor.jpg" + }, + { + "name": "material_metallicRoughness", + "uri": "textures/material_metallicRoughness.jpg" + }, + { + "name": "material_normal", + "uri": "textures/material_normal.jpg" + } + ], + "materials": [ + { + "doubleSided": false, + "name": "Boden", + "normalTexture": { + "index": 2, + "scale": 1, + "texCoord": 0 + }, + "pbrMetallicRoughness": { + "baseColorFactor": [ + 1, + 1, + 1, + 1 + ], + "baseColorTexture": { + "index": 0, + "texCoord": 0 + }, + "metallicFactor": 1, + "metallicRoughnessTexture": { + "index": 1, + "texCoord": 0 + }, + "roughnessFactor": 1 + }, + "emissiveFactor": [ + 0, + 0, + 0 + ] + }, + { + "doubleSided": false, + "emissiveFactor": [ + 1, + 1, + 1 + ], + "emissiveTexture": { + "index": 5, + "texCoord": 0 + }, + "name": "body", + "normalTexture": { + "index": 6, + "scale": 1, + "texCoord": 0 + }, + "occlusionTexture": { + "index": 4, + "strength": 1, + "texCoord": 0 + }, + "pbrMetallicRoughness": { + "baseColorFactor": [ + 1, + 1, + 1, + 1 + ], + "baseColorTexture": { + "index": 3, + "texCoord": 0 + }, + "metallicFactor": 1, + "metallicRoughnessTexture": { + "index": 4, + "texCoord": 0 + }, + "roughnessFactor": 1 + } + }, + { + "doubleSided": false, + "name": "material", + "normalTexture": { + "index": 9, + "scale": 1, + "texCoord": 0 + }, + "occlusionTexture": { + "index": 8, + "strength": 1, + "texCoord": 0 + }, + "pbrMetallicRoughness": { + "baseColorFactor": [ + 1, + 1, + 1, + 1 + ], + "baseColorTexture": { + "index": 7, + "texCoord": 0 + }, + "metallicFactor": 1, + "metallicRoughnessTexture": { + "index": 8, + "texCoord": 0 + }, + "roughnessFactor": 1 + }, + "emissiveFactor": [ + 0, + 0, + 0 + ], + "alphaMode": "OPAQUE" + } + ], + "meshes": [ + { + "name": "Scheibe_Boden_0", + "primitives": [ + { + "attributes": { + "NORMAL": 205, + "POSITION": 206, + "TANGENT": 207, + "TEXCOORD_0": 208, + "TEXCOORD_1": 209 + }, + "indices": 204, + "material": 0, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 4, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4 + } + } + } + } + ] + }, + { + "name": "Drone_Body_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 211, + "POSITION": 212, + "TANGENT": 213, + "TEXCOORD_0": 214, + "TEXCOORD_1": 215, + "TEXCOORD_2": 216, + "TEXCOORD_3": 217, + "TEXCOORD_4": 218 + }, + "indices": 210, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 5, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "Drone_leg_F_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 220, + "POSITION": 221, + "TANGENT": 222, + "TEXCOORD_0": 223, + "TEXCOORD_1": 224, + "TEXCOORD_2": 225, + "TEXCOORD_3": 226 + }, + "indices": 219, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 6, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "F_P1_G_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 228, + "POSITION": 229, + "TANGENT": 230, + "TEXCOORD_0": 231, + "TEXCOORD_1": 232, + "TEXCOORD_2": 233, + "TEXCOORD_3": 234 + }, + "indices": 227, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 7, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "F_P2_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 236, + "POSITION": 237, + "TANGENT": 238, + "TEXCOORD_0": 239, + "TEXCOORD_1": 240, + "TEXCOORD_2": 241, + "TEXCOORD_3": 242 + }, + "indices": 235, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 8, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "F_P3_G_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 244, + "POSITION": 245, + "TANGENT": 246, + "TEXCOORD_0": 247, + "TEXCOORD_1": 248, + "TEXCOORD_2": 249, + "TEXCOORD_3": 250 + }, + "indices": 243, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 9, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "F_P4_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 252, + "POSITION": 253, + "TANGENT": 254, + "TEXCOORD_0": 255, + "TEXCOORD_1": 256, + "TEXCOORD_2": 257, + "TEXCOORD_3": 258 + }, + "indices": 251, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 10, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "F_P5_M_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 260, + "POSITION": 261, + "TANGENT": 262, + "TEXCOORD_0": 263, + "TEXCOORD_1": 264, + "TEXCOORD_2": 265, + "TEXCOORD_3": 266 + }, + "indices": 259, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 11, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "F_P6_G_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 268, + "POSITION": 269, + "TANGENT": 270, + "TEXCOORD_0": 271, + "TEXCOORD_1": 272, + "TEXCOORD_2": 273, + "TEXCOORD_3": 274 + }, + "indices": 267, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 12, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "F_P7_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 276, + "POSITION": 277, + "TANGENT": 278, + "TEXCOORD_0": 279, + "TEXCOORD_1": 280, + "TEXCOORD_2": 281, + "TEXCOORD_3": 282 + }, + "indices": 275, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 13, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "0", + "primitives": [ + { + "attributes": { + "NORMAL": 284, + "POSITION": 285, + "TANGENT": 286, + "TEXCOORD_0": 287, + "TEXCOORD_1": 288, + "TEXCOORD_2": 289, + "TEXCOORD_3": 290, + "TEXCOORD_4": 291 + }, + "indices": 283, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 14, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "Drone_Panel_R_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 293, + "POSITION": 294, + "TANGENT": 295, + "TEXCOORD_0": 296, + "TEXCOORD_1": 297, + "TEXCOORD_2": 298, + "TEXCOORD_3": 299, + "TEXCOORD_4": 300 + }, + "indices": 292, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 15, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "Drone_leg_R_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 302, + "POSITION": 303, + "TANGENT": 304, + "TEXCOORD_0": 305, + "TEXCOORD_1": 306, + "TEXCOORD_2": 307, + "TEXCOORD_3": 308 + }, + "indices": 301, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 16, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "R_P1_G_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 310, + "POSITION": 311, + "TANGENT": 312, + "TEXCOORD_0": 313, + "TEXCOORD_1": 314, + "TEXCOORD_2": 315, + "TEXCOORD_3": 316 + }, + "indices": 309, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 17, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "R_P2_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 318, + "POSITION": 319, + "TANGENT": 320, + "TEXCOORD_0": 321, + "TEXCOORD_1": 322, + "TEXCOORD_2": 323, + "TEXCOORD_3": 324 + }, + "indices": 317, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 18, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "R_P3_G_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 326, + "POSITION": 327, + "TANGENT": 328, + "TEXCOORD_0": 329, + "TEXCOORD_1": 330, + "TEXCOORD_2": 331, + "TEXCOORD_3": 332 + }, + "indices": 325, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 19, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "R_P4_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 334, + "POSITION": 335, + "TANGENT": 336, + "TEXCOORD_0": 337, + "TEXCOORD_1": 338, + "TEXCOORD_2": 339, + "TEXCOORD_3": 340 + }, + "indices": 333, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 20, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "R_P5_M_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 342, + "POSITION": 343, + "TANGENT": 344, + "TEXCOORD_0": 345, + "TEXCOORD_1": 346, + "TEXCOORD_2": 347, + "TEXCOORD_3": 348 + }, + "indices": 341, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 21, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "R_P6_G_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 350, + "POSITION": 351, + "TANGENT": 352, + "TEXCOORD_0": 353, + "TEXCOORD_1": 354, + "TEXCOORD_2": 355, + "TEXCOORD_3": 356 + }, + "indices": 349, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 22, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "R_P7_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 358, + "POSITION": 359, + "TANGENT": 360, + "TEXCOORD_0": 361, + "TEXCOORD_1": 362, + "TEXCOORD_2": 363, + "TEXCOORD_3": 364 + }, + "indices": 357, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 23, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "Drone_Gen_L_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 366, + "POSITION": 367, + "TANGENT": 368, + "TEXCOORD_0": 369, + "TEXCOORD_1": 370, + "TEXCOORD_2": 371, + "TEXCOORD_3": 372, + "TEXCOORD_4": 373 + }, + "indices": 365, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 24, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "Drone_Panel_L_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 375, + "POSITION": 376, + "TANGENT": 377, + "TEXCOORD_0": 378, + "TEXCOORD_1": 379, + "TEXCOORD_2": 380, + "TEXCOORD_3": 381, + "TEXCOORD_4": 382 + }, + "indices": 374, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 25, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "Drone_leg_L_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 384, + "POSITION": 385, + "TANGENT": 386, + "TEXCOORD_0": 387, + "TEXCOORD_1": 388, + "TEXCOORD_2": 389, + "TEXCOORD_3": 390 + }, + "indices": 383, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 26, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "L_P1_G_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 392, + "POSITION": 393, + "TANGENT": 394, + "TEXCOORD_0": 395, + "TEXCOORD_1": 396, + "TEXCOORD_2": 397, + "TEXCOORD_3": 398 + }, + "indices": 391, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 27, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "L_P2_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 400, + "POSITION": 401, + "TANGENT": 402, + "TEXCOORD_0": 403, + "TEXCOORD_1": 404, + "TEXCOORD_2": 405, + "TEXCOORD_3": 406 + }, + "indices": 399, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 28, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "L_P3_G_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 408, + "POSITION": 409, + "TANGENT": 410, + "TEXCOORD_0": 411, + "TEXCOORD_1": 412, + "TEXCOORD_2": 413, + "TEXCOORD_3": 414 + }, + "indices": 407, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 29, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "L_P4_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 416, + "POSITION": 417, + "TANGENT": 418, + "TEXCOORD_0": 419, + "TEXCOORD_1": 420, + "TEXCOORD_2": 421, + "TEXCOORD_3": 422 + }, + "indices": 415, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 30, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "L_P5_M_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 424, + "POSITION": 425, + "TANGENT": 426, + "TEXCOORD_0": 427, + "TEXCOORD_1": 428, + "TEXCOORD_2": 429, + "TEXCOORD_3": 430 + }, + "indices": 423, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 31, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "L_P6_G_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 432, + "POSITION": 433, + "TANGENT": 434, + "TEXCOORD_0": 435, + "TEXCOORD_1": 436, + "TEXCOORD_2": 437, + "TEXCOORD_3": 438 + }, + "indices": 431, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 32, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "L_P7_leg_0", + "primitives": [ + { + "attributes": { + "NORMAL": 440, + "POSITION": 441, + "TANGENT": 442, + "TEXCOORD_0": 443, + "TEXCOORD_1": 444, + "TEXCOORD_2": 445, + "TEXCOORD_3": 446 + }, + "indices": 439, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 33, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6 + } + } + } + } + ] + }, + { + "name": "Drone_UPanel_R_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 448, + "POSITION": 449, + "TANGENT": 450, + "TEXCOORD_0": 451, + "TEXCOORD_1": 452, + "TEXCOORD_2": 453, + "TEXCOORD_3": 454, + "TEXCOORD_4": 455 + }, + "indices": 447, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 34, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "Drone_UPanel_L_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 457, + "POSITION": 458, + "TANGENT": 459, + "TEXCOORD_0": 460, + "TEXCOORD_1": 461, + "TEXCOORD_2": 462, + "TEXCOORD_3": 463, + "TEXCOORD_4": 464 + }, + "indices": 456, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 35, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "Drone_UPart_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 466, + "POSITION": 467, + "TANGENT": 468, + "TEXCOORD_0": 469, + "TEXCOORD_1": 470, + "TEXCOORD_2": 471, + "TEXCOORD_3": 472, + "TEXCOORD_4": 473 + }, + "indices": 465, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 36, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "Drone_ILens_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 475, + "POSITION": 476, + "TANGENT": 477, + "TEXCOORD_0": 478, + "TEXCOORD_1": 479, + "TEXCOORD_2": 480, + "TEXCOORD_3": 481, + "TEXCOORD_4": 482 + }, + "indices": 474, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 37, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "1", + "primitives": [ + { + "attributes": { + "NORMAL": 484, + "POSITION": 485, + "TANGENT": 486, + "TEXCOORD_0": 487, + "TEXCOORD_1": 488, + "TEXCOORD_2": 489, + "TEXCOORD_3": 490, + "TEXCOORD_4": 491 + }, + "indices": 483, + "material": 1, + "mode": 4, + "targets": [ + { + "NORMAL": 1, + "POSITION": 0 + }, + { + "NORMAL": 3, + "POSITION": 2 + } + ], + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 38, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ], + "weights": [ + 0, + 0 + ] + }, + { + "name": "Drone_Turb_M_L_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 493, + "POSITION": 494, + "TANGENT": 495, + "TEXCOORD_0": 496, + "TEXCOORD_1": 497, + "TEXCOORD_2": 498, + "TEXCOORD_3": 499, + "TEXCOORD_4": 500 + }, + "indices": 492, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 39, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "Drone_Turb_Blade_L_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 502, + "POSITION": 503, + "TANGENT": 504, + "TEXCOORD_0": 505, + "TEXCOORD_1": 506, + "TEXCOORD_2": 507, + "TEXCOORD_3": 508, + "TEXCOORD_4": 509 + }, + "indices": 501, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 40, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "Drone_Turb_M_R_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 511, + "POSITION": 512, + "TANGENT": 513, + "TEXCOORD_0": 514, + "TEXCOORD_1": 515, + "TEXCOORD_2": 516, + "TEXCOORD_3": 517, + "TEXCOORD_4": 518 + }, + "indices": 510, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 41, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + }, + { + "name": "Drone_Turb_Blade_R_body_0", + "primitives": [ + { + "attributes": { + "NORMAL": 520, + "POSITION": 521, + "TANGENT": 522, + "TEXCOORD_0": 523, + "TEXCOORD_1": 524, + "TEXCOORD_2": 525, + "TEXCOORD_3": 526, + "TEXCOORD_4": 527 + }, + "indices": 519, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 42, + "attributes": { + "NORMAL": 0, + "POSITION": 1, + "TANGENT": 2, + "TEXCOORD_0": 3, + "TEXCOORD_1": 4, + "TEXCOORD_2": 5, + "TEXCOORD_3": 6, + "TEXCOORD_4": 7 + } + } + } + } + ] + } + ], + "nodes": [ + { + "children": [ + 1 + ], + "name": "RootNode (gltf orientation matrix)", + "rotation": [ + -0.7071067811865475, + 0, + 0, + 0.7071067811865476 + ], + "translation": [ + 0, + 0, + 0 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "children": [ + 2 + ], + "name": "RootNode (model correction matrix)" + }, + { + "children": [ + 3 + ], + "matrix": [ + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + -1, + 0, + 0, + 0, + 0, + 0, + 1 + ], + "name": "BusterDrone.fbx" + }, + { + "children": [ + 4 + ], + "name": "" + }, + { + "children": [ + 5, + 9 + ], + "name": "RootNode" + }, + { + "children": [ + 6, + 8 + ], + "name": "Env" + }, + { + "children": [ + 7 + ], + "name": "Scheibe", + "rotation": [ + 0.5, + 0.5, + -0.5, + 0.5 + ], + "translation": [ + 0, + -99, + 6.1232337864698064e-15 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 0, + "name": "Scheibe_Boden_0" + }, + { + "name": "Himmel" + }, + { + "children": [ + 10, + 13 + ], + "name": "Drone_Controller", + "translation": [ + 0, + 0, + 0 + ], + "rotation": [ + 0, + 0, + 0, + 1 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "children": [ + 11, + 12 + ], + "name": "Turbine_Controller", + "translation": [ + 0, + -100, + -5 + ], + "rotation": [ + 0, + 0, + 0, + 1 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "name": "Turbine_R", + "rotation": [ + 0.7071068286895752, + 0, + 0, + 0.7071068286895752 + ], + "translation": [ + 12.244799613952637, + 0, + -1.0070199966430664 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "name": "Turbine_L", + "rotation": [ + 0.7071068286895752, + 0, + 0, + 0.7071068286895752 + ], + "translation": [ + -12.244799613952637, + 0, + -1.0070199966430664 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "children": [ + 14, + 16 + ], + "name": "U_MassPoint", + "rotation": [ + 0.6133379936218262, + 0, + 0, + 0.789820671081543 + ], + "translation": [ + 0, + 0.11856790632009506, + -12.910046577453613 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "children": [ + 15 + ], + "name": "Eye_Controller", + "rotation": [ + 0.017331130802631378, + 0, + 0, + 0.9998499155044556 + ], + "translation": [ + 0, + 143.0728759765625, + 58.6367301940918 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "name": "Eye_Pupil", + "rotation": [ + -0.7071068286895752, + 0, + 0, + 0.7071068286895752 + ], + "translation": [ + 0, + 0, + 0 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "children": [ + 17 + ], + "name": "D_MassPoint", + "translation": [ + 0, + -1.7763568394002505e-15, + 77.5 + ], + "rotation": [ + 0, + 0, + 0, + 1 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "children": [ + 18, + 19, + 35, + 55, + 75, + 77, + 79, + 81, + 85, + 89 + ], + "name": "Drone_Body", + "rotation": [ + -0.7071068286895752, + 0, + 0, + 0.7071068286895752 + ], + "translation": [ + 0, + 0, + -37.5 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 1, + "name": "Drone_Body_body_0" + }, + { + "children": [ + 20, + 21 + ], + "name": "Drone_leg_F", + "translation": [ + 0, + -38.68080139160156, + 20.01194953918457 + ], + "rotation": [ + 0, + 0, + 0, + 1 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 2, + "name": "Drone_leg_F_leg_0" + }, + { + "children": [ + 22, + 23 + ], + "name": "F_P1_G", + "rotation": [ + -9.472242394202753e-15, + 0.7071065902709961, + 9.472236464972122e-15, + 0.7071070075035095 + ], + "translation": [ + 0.006630018353462219, + -5.510501384735107, + -0.09275053441524506 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 3, + "name": "F_P1_G_leg_0" + }, + { + "children": [ + 24, + 25 + ], + "name": "F_P2", + "rotation": [ + 0.4777144193649292, + 0.5213338136672974, + -0.4777144193649292, + 0.5213338136672974 + ], + "translation": [ + 0, + -0.00004080753933521919, + 0 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 4, + "name": "F_P2_leg_0" + }, + { + "children": [ + 26, + 27 + ], + "name": "F_P3_G", + "rotation": [ + -1.5265570559062843e-16, + -4.1108839354819793e-7, + -8.700754859676185e-17, + 1 + ], + "translation": [ + 0.00007688588812015951, + -22.9158935546875, + 0.02676698938012123 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 5, + "name": "F_P3_G_leg_0" + }, + { + "children": [ + 28, + 29 + ], + "name": "F_P4", + "rotation": [ + 4.003213763390976e-16, + -0.5735764503479004, + 0.8191520571708679, + -6.550924359051687e-17 + ], + "translation": [ + 0, + 0, + 0 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 6, + "name": "F_P4_leg_0" + }, + { + "children": [ + 30, + 31 + ], + "name": "F_P5_M", + "rotation": [ + 1.3877787807814457e-17, + -5.293955920339377e-23, + -9.926167350636332e-23, + 1 + ], + "translation": [ + -0.01574668288230896, + -11.282759666442871, + 0.081717349588871 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 7, + "name": "F_P5_M_leg_0" + }, + { + "children": [ + 32, + 33 + ], + "name": "F_P6_G", + "rotation": [ + -2.7755575615628914e-17, + -2.74964495616814e-10, + 7.940170894241536e-23, + 1 + ], + "translation": [ + 0.005422236397862434, + -9.326162338256836, + -0.08217942714691162 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 8, + "name": "F_P6_G_leg_0" + }, + { + "children": [ + 34 + ], + "name": "F_P7", + "rotation": [ + 0.5891698598861694, + -5.057324785588213e-23, + 2.0496480651152692e-23, + 0.8080092072486877 + ], + "translation": [ + 4.336808689942018e-19, + 0.00003388613185961731, + 0.000014036095308256336 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 9, + "name": "F_P7_leg_0" + }, + { + "children": [ + 36, + 37 + ], + "name": "Drone_Gen_R", + "rotation": [ + 0.1889660805463791, + -0.6813896298408508, + 0.1889660656452179, + 0.6813896298408508 + ], + "translation": [ + -26.78019905090332, + -31.10906982421875, + -0.748199999332428 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 10, + "name": "0" + }, + { + "children": [ + 38, + 39 + ], + "name": "Drone_Panel_R", + "rotation": [ + -2.0816678402999235e-17, + 2.62250594573743e-8, + -1.249000902703301e-16, + 1 + ], + "translation": [ + 0.6785002946853638, + -0.37506112456321716, + 4.957866191864014 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 11, + "name": "Drone_Panel_R_body_0" + }, + { + "children": [ + 40, + 41 + ], + "name": "Drone_leg_R", + "rotation": [ + -0.41061899065971375, + 0.575666606426239, + -0.41061899065971375, + 0.575666606426239 + ], + "translation": [ + -12.886950492858887, + -9.610799789428711, + -0.729290246963501 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 12, + "name": "Drone_leg_R_leg_0" + }, + { + "children": [ + 42, + 43 + ], + "name": "R_P1_G", + "rotation": [ + -2.6943811002715914e-16, + 0.7933533787727356, + 4.189390215534042e-17, + 0.6087614297866821 + ], + "translation": [ + 2.4154791831970215, + -4.842290878295898, + -0.006652138661593199 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 13, + "name": "R_P1_G_leg_0" + }, + { + "children": [ + 44, + 45 + ], + "name": "R_P2", + "rotation": [ + 0.6187881827354431, + 7.332807899516821e-17, + 4.8236011717070243e-17, + 0.7855579257011414 + ], + "translation": [ + 0, + 0, + 0 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 14, + "name": "R_P2_leg_0" + }, + { + "children": [ + 46, + 47 + ], + "name": "R_P3_G", + "rotation": [ + 3.5041414214731503e-16, + 2.7755575615628914e-17, + 1.3877787807814457e-16, + 1 + ], + "translation": [ + 0.002689761109650135, + -22.916383743286133, + 0.02693275175988674 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 15, + "name": "R_P3_G_leg_0" + }, + { + "children": [ + 48, + 49 + ], + "name": "R_P4", + "rotation": [ + 4.0562085120848394e-17, + -0.6030816435813904, + 0.7976794838905334, + 1.0742985044475295e-16 + ], + "translation": [ + 0.004904936067759991, + 0.0029711532406508923, + -0.0014322279021143913 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 16, + "name": "R_P4_leg_0" + }, + { + "children": [ + 50, + 51 + ], + "name": "R_P5_M", + "rotation": [ + 0.0000031865668006503256, + -1.3877721633365453e-17, + 2.0816726379474763e-17, + 1 + ], + "translation": [ + 0.010783359408378601, + -11.28590202331543, + 0.08223113417625427 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 17, + "name": "R_P5_M_leg_0" + }, + { + "children": [ + 52, + 53 + ], + "name": "R_P6_G", + "rotation": [ + -7.45931094670027e-17, + 0, + 0, + 1 + ], + "translation": [ + -0.005793713964521885, + -9.326017379760742, + -0.08199705928564072 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 18, + "name": "R_P6_G_leg_0" + }, + { + "children": [ + 54 + ], + "name": "R_P7", + "rotation": [ + 0.6483271718025208, + 3.472374165980341e-9, + -4.330498626359258e-8, + 0.7613618969917297 + ], + "translation": [ + -1.1546319456101628e-13, + -0.000002192010470025707, + -9.079604410544562e-7 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 19, + "name": "R_P7_leg_0" + }, + { + "children": [ + 56, + 57 + ], + "name": "Drone_Gen_L", + "rotation": [ + 0.1889660805463791, + 0.6813896298408508, + -0.1889660656452179, + 0.6813896298408508 + ], + "translation": [ + 26.78019905090332, + -31.10906982421875, + -0.748199999332428 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 20, + "name": "Drone_Gen_L_body_0" + }, + { + "children": [ + 58, + 59 + ], + "name": "Drone_Panel_L", + "rotation": [ + 0.0002122838923241943, + 2.747205307684908e-8, + -5.831957746588179e-12, + 1 + ], + "translation": [ + -0.6784976124763489, + -0.37716609239578247, + 4.957706451416016 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 21, + "name": "Drone_Panel_L_body_0" + }, + { + "children": [ + 60, + 61 + ], + "name": "Drone_leg_L", + "rotation": [ + -0.41061896085739136, + -0.575666606426239, + 0.41061902046203613, + 0.575666606426239 + ], + "translation": [ + 12.88695240020752, + -9.610796928405762, + -0.7292901277542114 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 22, + "name": "Drone_leg_L_leg_0" + }, + { + "children": [ + 62, + 63 + ], + "name": "L_P1_G", + "rotation": [ + 3.7478338591893966e-16, + -0.7613461017608643, + 5.642599445989575e-16, + 0.6483456492424011 + ], + "translation": [ + -2.415479898452759, + -4.84229040145874, + -0.006640426814556122 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 23, + "name": "L_P1_G_leg_0" + }, + { + "children": [ + 64, + 65 + ], + "name": "L_P2", + "rotation": [ + 0.5984764695167542, + -4.839795300149281e-18, + -1.0031977647616155e-16, + 0.8011403679847717 + ], + "translation": [ + 0, + 0, + 0 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 24, + "name": "L_P2_leg_0" + }, + { + "children": [ + 66, + 67 + ], + "name": "L_P3_G", + "rotation": [ + -1.708702623837155e-16, + 1.3877787807814457e-17, + -8.326672684688674e-17, + 1 + ], + "translation": [ + 0.0002644560590852052, + -22.915939331054688, + 0.026753252372145653 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 25, + "name": "L_P3_G_leg_0" + }, + { + "children": [ + 68, + 69 + ], + "name": "L_P4", + "rotation": [ + 3.0627252226114957e-17, + -0.6686968803405762, + 0.7435351014137268, + -5.480842821366953e-17 + ], + "translation": [ + -0.004460121039301157, + 0.000007818744961696211, + 0.00005186478665564209 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 26, + "name": "L_P4_leg_0" + }, + { + "children": [ + 70, + 71 + ], + "name": "L_P5_M", + "rotation": [ + 0.00001270258508156985, + 0.000003925847977370722, + -0.010920973494648933, + 0.9999404549598694 + ], + "translation": [ + 0.05688011273741722, + -11.236658096313477, + 0.08181961625814438 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 27, + "name": "L_P5_M_leg_0" + }, + { + "children": [ + 72, + 73 + ], + "name": "L_P6_G", + "rotation": [ + -7.632783294297951e-17, + -7.632783294297951e-17, + 5.551115123125783e-17, + 1 + ], + "translation": [ + 0.14344365894794464, + -9.371054649353027, + -0.08199699968099594 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 28, + "name": "L_P6_G_leg_0" + }, + { + "children": [ + 74 + ], + "name": "L_P7", + "rotation": [ + 0.7071068286895752, + 5.3971933547419153e-17, + 4.906539263005266e-18, + 0.7071068286895752 + ], + "translation": [ + 0.01226816326379776, + 0.00024394220963586122, + 0.0002562310837674886 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 29, + "name": "L_P7_leg_0" + }, + { + "children": [ + 76 + ], + "name": "Drone_UPanel_R", + "rotation": [ + 0.09390989691019058, + -0.7008430361747742, + 0.09390989691019058, + 0.700843095779419 + ], + "translation": [ + -28.345199584960938, + -10.20475959777832, + 0.14466851949691772 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 30, + "name": "Drone_UPanel_R_body_0" + }, + { + "children": [ + 78 + ], + "name": "Drone_UPanel_L", + "rotation": [ + 0.09390989691019058, + 0.7008430361747742, + -0.09390989691019058, + 0.700843095779419 + ], + "translation": [ + 28.230527877807617, + -11.228233337402344, + -0.07694999873638153 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 31, + "name": "Drone_UPanel_L_body_0" + }, + { + "children": [ + 80 + ], + "name": "Drone_UPart", + "translation": [ + 0, + 38.9765510559082, + -3.073050022125244 + ], + "rotation": [ + 0, + 0, + 0, + 1 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 32, + "name": "Drone_UPart_body_0" + }, + { + "children": [ + 82, + 83 + ], + "name": "Drone_ILens", + "translation": [ + 0, + -14.965813636779785, + 41.50516891479492 + ], + "rotation": [ + 0, + 0, + 0, + 1 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 33, + "name": "Drone_ILens_body_0" + }, + { + "children": [ + 84 + ], + "name": "Drone_IEye", + "rotation": [ + 0.0007836852455511689, + 0.9981203675270081, + -0.013049819506704807, + 0.0598752461373806 + ], + "translation": [ + 0, + -0.018226023763418198, + -8.908537864685059 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 34, + "name": "1" + }, + { + "children": [ + 86, + 87 + ], + "name": "Drone_Turb_M_L", + "rotation": [ + 0.5779998302459717, + -0.4667881727218628, + -0.5311384797096252, + -0.40732908248901367 + ], + "translation": [ + 19.973400115966797, + 24.55685043334961, + -6.007046699523926 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 35, + "name": "Drone_Turb_M_L_body_0" + }, + { + "children": [ + 88 + ], + "name": "Drone_Turb_Blade_L", + "rotation": [ + 0.40862560272216797, + 0.5128536224365234, + 0.6914904713630676, + 0.30306294560432434 + ], + "translation": [ + -0.000021889296476729214, + -36.155147552490234, + -10.966755867004395 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 36, + "name": "Drone_Turb_Blade_L_body_0" + }, + { + "children": [ + 90, + 91 + ], + "name": "Drone_Turb_M_R", + "rotation": [ + 0.5797019600868225, + 0.46958616375923157, + 0.5286666750907898, + -0.40490248799324036 + ], + "translation": [ + -19.973400115966797, + 24.556848526000977, + -6.007049560546875 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 37, + "name": "Drone_Turb_M_R_body_0" + }, + { + "children": [ + 92 + ], + "name": "Drone_Turb_Blade_R", + "rotation": [ + -0.4086257517337799, + 0.512853741645813, + 0.6914904713630676, + -0.30306291580200195 + ], + "translation": [ + 0.000051651491958182305, + -36.1551513671875, + -10.966744422912598 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 38, + "name": "Drone_Turb_Blade_R_body_0" + } + ], + "samplers": [ + { + "magFilter": 9729, + "minFilter": 9987, + "wrapS": 10497, + "wrapT": 10497 + } + ], + "scene": 0, + "scenes": [ + { + "name": "OSG_Scene", + "nodes": [ + 0 + ] + } + ], + "textures": [ + { + "sampler": 0, + "source": 0 + }, + { + "sampler": 0, + "source": 1 + }, + { + "sampler": 0, + "source": 2 + }, + { + "sampler": 0, + "source": 3 + }, + { + "sampler": 0, + "source": 4 + }, + { + "sampler": 0, + "source": 5 + }, + { + "sampler": 0, + "source": 6 + }, + { + "sampler": 0, + "source": 7 + }, + { + "sampler": 0, + "source": 8 + }, + { + "sampler": 0, + "source": 9 + } + ], + "extensionsRequired": [ + "KHR_draco_mesh_compression" + ], + "extensionsUsed": [ + "KHR_draco_mesh_compression" + ] +} diff --git a/examples/assets/BusterDrone/textures/Boden_baseColor.jpg b/examples/assets/BusterDrone/textures/Boden_baseColor.jpg new file mode 100644 index 00000000..a0b817b7 Binary files /dev/null and b/examples/assets/BusterDrone/textures/Boden_baseColor.jpg differ diff --git a/examples/assets/BusterDrone/textures/Boden_metallicRoughness.jpg b/examples/assets/BusterDrone/textures/Boden_metallicRoughness.jpg new file mode 100644 index 00000000..16af5ced Binary files /dev/null and b/examples/assets/BusterDrone/textures/Boden_metallicRoughness.jpg differ diff --git a/examples/assets/BusterDrone/textures/Boden_normal.jpg b/examples/assets/BusterDrone/textures/Boden_normal.jpg new file mode 100644 index 00000000..16ac42fb Binary files /dev/null and b/examples/assets/BusterDrone/textures/Boden_normal.jpg differ diff --git a/examples/assets/BusterDrone/textures/body_baseColor.jpg b/examples/assets/BusterDrone/textures/body_baseColor.jpg new file mode 100644 index 00000000..338fa643 Binary files /dev/null and b/examples/assets/BusterDrone/textures/body_baseColor.jpg differ diff --git a/examples/assets/BusterDrone/textures/body_emissive.jpg b/examples/assets/BusterDrone/textures/body_emissive.jpg new file mode 100644 index 00000000..db3e51b9 Binary files /dev/null and b/examples/assets/BusterDrone/textures/body_emissive.jpg differ diff --git a/examples/assets/BusterDrone/textures/body_metallicRoughness.jpg b/examples/assets/BusterDrone/textures/body_metallicRoughness.jpg new file mode 100644 index 00000000..93b51013 Binary files /dev/null and b/examples/assets/BusterDrone/textures/body_metallicRoughness.jpg differ diff --git a/examples/assets/BusterDrone/textures/body_normal.jpg b/examples/assets/BusterDrone/textures/body_normal.jpg new file mode 100644 index 00000000..28e0583b Binary files /dev/null and b/examples/assets/BusterDrone/textures/body_normal.jpg differ diff --git a/examples/assets/BusterDrone/textures/material_baseColor.jpg b/examples/assets/BusterDrone/textures/material_baseColor.jpg new file mode 100644 index 00000000..154cb5b1 Binary files /dev/null and b/examples/assets/BusterDrone/textures/material_baseColor.jpg differ diff --git a/examples/assets/BusterDrone/textures/material_metallicRoughness.jpg b/examples/assets/BusterDrone/textures/material_metallicRoughness.jpg new file mode 100644 index 00000000..5f539354 Binary files /dev/null and b/examples/assets/BusterDrone/textures/material_metallicRoughness.jpg differ diff --git a/examples/assets/BusterDrone/textures/material_normal.jpg b/examples/assets/BusterDrone/textures/material_normal.jpg new file mode 100644 index 00000000..a1f52c14 Binary files /dev/null and b/examples/assets/BusterDrone/textures/material_normal.jpg differ diff --git a/examples/assets/FlightHelmet/FlightHelmet.bin b/examples/assets/FlightHelmet/FlightHelmet.bin new file mode 100644 index 00000000..a8b48147 Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet.bin differ diff --git a/examples/assets/FlightHelmet/FlightHelmet.gltf b/examples/assets/FlightHelmet/FlightHelmet.gltf new file mode 100644 index 00000000..74a92ecd --- /dev/null +++ b/examples/assets/FlightHelmet/FlightHelmet.gltf @@ -0,0 +1,755 @@ +{ + "accessors": [ + { + "componentType": 5123, + "count": 24408, + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 8468, + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 8468, + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 8468, + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 8468, + "type": "VEC3", + "max": [ + 0.131662, + 0.137638986, + 0.10078799 + ], + "min": [ + -0.131333, + -0.028128, + -0.137763992 + ] + }, + { + "componentType": 5123, + "count": 65688, + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 12552, + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 12552, + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 12552, + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 12552, + "type": "VEC3", + "max": [ + 0.11722149, + 0.196387976, + 0.132422984 + ], + "min": [ + -0.11722149, + -0.196387976, + -0.132422984 + ] + }, + { + "componentType": 5123, + "count": 2208, + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 436, + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 436, + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 436, + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 436, + "type": "VEC3", + "max": [ + 0.09527509, + 0.114654, + -0.08429489 + ], + "min": [ + -0.0952748954, + 0.0551489964, + -0.14295499 + ] + }, + { + "componentType": 5123, + "count": 60288, + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 17186, + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 17186, + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 17186, + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 17186, + "type": "VEC3", + "max": [ + 0.1572095, + 0.2716865, + 0.162181988 + ], + "min": [ + -0.1572095, + -0.2716865, + -0.162181988 + ] + }, + { + "componentType": 5123, + "count": 131574, + "type": "SCALAR" + }, + { + "componentType": 5126, + "count": 24148, + "type": "VEC2" + }, + { + "componentType": 5126, + "count": 24148, + "type": "VEC3" + }, + { + "componentType": 5126, + "count": 24148, + "type": "VEC4" + }, + { + "componentType": 5126, + "count": 24148, + "type": "VEC3", + "max": [ + 0.1504075, + 0.328366965, + 0.173673 + ], + "min": [ + -0.1504075, + -0.328366965, + -0.173673 + ] + } + ], + "asset": { + "generator": "glTF Tools for Unity", + "version": "2.0" + }, + "bufferViews": [ + { + "buffer": 0, + "byteOffset": 0, + "byteLength": 59806 + }, + { + "buffer": 0, + "byteOffset": 59808, + "byteLength": 99674 + }, + { + "buffer": 0, + "byteOffset": 159484, + "byteLength": 4875 + }, + { + "buffer": 0, + "byteOffset": 164360, + "byteLength": 133545 + }, + { + "buffer": 0, + "byteOffset": 297908, + "byteLength": 203914 + } + ], + "buffers": [ + { + "name": "FlightHelmet", + "byteLength": 501824, + "uri": "FlightHelmet.bin" + } + ], + "images": [ + { + "name": "FlightHelmet_baseColor", + "uri": "FlightHelmet_baseColor.png" + }, + { + "name": "FlightHelmet_occlusionRoughnessMetallic", + "uri": "FlightHelmet_occlusionRoughnessMetallic.png" + }, + { + "name": "FlightHelmet_normal", + "uri": "FlightHelmet_normal.png" + }, + { + "name": "FlightHelmet_baseColor1", + "uri": "FlightHelmet_baseColor1.png" + }, + { + "name": "FlightHelmet_occlusionRoughnessMetallic1", + "uri": "FlightHelmet_occlusionRoughnessMetallic1.png" + }, + { + "name": "FlightHelmet_normal1", + "uri": "FlightHelmet_normal1.png" + }, + { + "name": "FlightHelmet_baseColor2", + "uri": "FlightHelmet_baseColor2.png" + }, + { + "name": "FlightHelmet_occlusionRoughnessMetallic2", + "uri": "FlightHelmet_occlusionRoughnessMetallic2.png" + }, + { + "name": "FlightHelmet_normal2", + "uri": "FlightHelmet_normal2.png" + }, + { + "name": "FlightHelmet_baseColor3", + "uri": "FlightHelmet_baseColor3.png" + }, + { + "name": "FlightHelmet_occlusionRoughnessMetallic3", + "uri": "FlightHelmet_occlusionRoughnessMetallic3.png" + }, + { + "name": "FlightHelmet_normal3", + "uri": "FlightHelmet_normal3.png" + }, + { + "name": "FlightHelmet_baseColor4", + "uri": "FlightHelmet_baseColor4.png" + }, + { + "name": "FlightHelmet_occlusionRoughnessMetallic4", + "uri": "FlightHelmet_occlusionRoughnessMetallic4.png" + }, + { + "name": "FlightHelmet_normal4", + "uri": "FlightHelmet_normal4.png" + } + ], + "meshes": [ + { + "primitives": [ + { + "attributes": { + "TEXCOORD_0": 1, + "NORMAL": 2, + "TANGENT": 3, + "POSITION": 4 + }, + "indices": 0, + "material": 0, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 0, + "attributes": { + "TEXCOORD_0": 0, + "NORMAL": 1, + "TANGENT": 2, + "POSITION": 3 + } + } + } + } + ], + "name": "GlassPlastic_low" + }, + { + "primitives": [ + { + "attributes": { + "TEXCOORD_0": 6, + "NORMAL": 7, + "TANGENT": 8, + "POSITION": 9 + }, + "indices": 5, + "material": 1, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 1, + "attributes": { + "TEXCOORD_0": 0, + "NORMAL": 1, + "TANGENT": 2, + "POSITION": 3 + } + } + } + } + ], + "name": "LeatherParts_low" + }, + { + "primitives": [ + { + "attributes": { + "TEXCOORD_0": 11, + "NORMAL": 12, + "TANGENT": 13, + "POSITION": 14 + }, + "indices": 10, + "material": 2, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 2, + "attributes": { + "TEXCOORD_0": 0, + "NORMAL": 1, + "TANGENT": 2, + "POSITION": 3 + } + } + } + } + ], + "name": "Lenses_low" + }, + { + "primitives": [ + { + "attributes": { + "TEXCOORD_0": 16, + "NORMAL": 17, + "TANGENT": 18, + "POSITION": 19 + }, + "indices": 15, + "material": 3, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 3, + "attributes": { + "TEXCOORD_0": 0, + "NORMAL": 1, + "TANGENT": 2, + "POSITION": 3 + } + } + } + } + ], + "name": "MetalParts_low" + }, + { + "primitives": [ + { + "attributes": { + "TEXCOORD_0": 21, + "NORMAL": 22, + "TANGENT": 23, + "POSITION": 24 + }, + "indices": 20, + "material": 4, + "mode": 4, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 4, + "attributes": { + "TEXCOORD_0": 0, + "NORMAL": 1, + "TANGENT": 2, + "POSITION": 3 + } + } + } + } + ], + "name": "RubberWood_low" + } + ], + "materials": [ + { + "pbrMetallicRoughness": { + "baseColorTexture": { + "index": 0, + "texCoord": 0 + }, + "metallicRoughnessTexture": { + "index": 1, + "texCoord": 0 + }, + "baseColorFactor": [ + 1, + 1, + 1, + 1 + ], + "metallicFactor": 1, + "roughnessFactor": 1 + }, + "normalTexture": { + "index": 2, + "texCoord": 0 + }, + "occlusionTexture": { + "index": 1, + "texCoord": 0 + }, + "name": "GlassPlasticMat", + "emissiveFactor": [ + 0, + 0, + 0 + ], + "alphaMode": "OPAQUE", + "doubleSided": false + }, + { + "pbrMetallicRoughness": { + "baseColorTexture": { + "index": 3, + "texCoord": 0 + }, + "metallicRoughnessTexture": { + "index": 4, + "texCoord": 0 + }, + "baseColorFactor": [ + 1, + 1, + 1, + 1 + ], + "metallicFactor": 1, + "roughnessFactor": 1 + }, + "normalTexture": { + "index": 5, + "texCoord": 0 + }, + "occlusionTexture": { + "index": 4, + "texCoord": 0 + }, + "name": "LeatherPartsMat", + "emissiveFactor": [ + 0, + 0, + 0 + ], + "alphaMode": "OPAQUE", + "doubleSided": false + }, + { + "pbrMetallicRoughness": { + "baseColorTexture": { + "index": 6, + "texCoord": 0 + }, + "metallicRoughnessTexture": { + "index": 7, + "texCoord": 0 + }, + "baseColorFactor": [ + 1, + 1, + 1, + 1 + ], + "metallicFactor": 1, + "roughnessFactor": 1 + }, + "normalTexture": { + "index": 8, + "texCoord": 0 + }, + "occlusionTexture": { + "index": 7, + "texCoord": 0 + }, + "alphaMode": "BLEND", + "name": "LensesMat", + "emissiveFactor": [ + 0, + 0, + 0 + ], + "doubleSided": false + }, + { + "pbrMetallicRoughness": { + "baseColorTexture": { + "index": 9, + "texCoord": 0 + }, + "metallicRoughnessTexture": { + "index": 10, + "texCoord": 0 + }, + "baseColorFactor": [ + 1, + 1, + 1, + 1 + ], + "metallicFactor": 1, + "roughnessFactor": 1 + }, + "normalTexture": { + "index": 11, + "texCoord": 0 + }, + "occlusionTexture": { + "index": 10, + "texCoord": 0 + }, + "name": "MetalPartsMat", + "emissiveFactor": [ + 0, + 0, + 0 + ], + "alphaMode": "OPAQUE", + "doubleSided": false + }, + { + "doubleSided": true, + "pbrMetallicRoughness": { + "baseColorTexture": { + "index": 12, + "texCoord": 0 + }, + "metallicRoughnessTexture": { + "index": 13, + "texCoord": 0 + }, + "baseColorFactor": [ + 1, + 1, + 1, + 1 + ], + "metallicFactor": 1, + "roughnessFactor": 1 + }, + "normalTexture": { + "index": 14, + "texCoord": 0 + }, + "occlusionTexture": { + "index": 13, + "texCoord": 0 + }, + "name": "RubberWoodMat", + "emissiveFactor": [ + 0, + 0, + 0 + ], + "alphaMode": "OPAQUE" + } + ], + "nodes": [ + { + "mesh": 0, + "name": "GlassPlastic_low" + }, + { + "mesh": 1, + "translation": [ + 0.000434499962, + 0.032592997, + 0.011676996 + ], + "name": "LeatherParts_low", + "rotation": [ + 0, + 0, + 0, + 1 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 2, + "name": "Lenses_low" + }, + { + "mesh": 3, + "translation": [ + 0.0331545, + -0.1488645, + -0.0242879968 + ], + "name": "MetalParts_low", + "rotation": [ + 0, + 0, + 0, + 1 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "mesh": 4, + "translation": [ + -0.00190849893, + -0.111985, + -0.013313001 + ], + "name": "RubberWood_low", + "rotation": [ + 0, + 0, + 0, + 1 + ], + "scale": [ + 1, + 1, + 1 + ] + }, + { + "children": [ + 0, + 1, + 2, + 3, + 4 + ], + "rotation": [ + 0, + 1, + 0, + 0 + ], + "name": "FlightHelmet", + "translation": [ + 0, + 0, + 0 + ], + "scale": [ + 1, + 1, + 1 + ] + } + ], + "scene": 0, + "scenes": [ + { + "nodes": [ + 5 + ] + } + ], + "textures": [ + { + "source": 0 + }, + { + "source": 1 + }, + { + "source": 2 + }, + { + "source": 3 + }, + { + "source": 4 + }, + { + "source": 5 + }, + { + "source": 6 + }, + { + "source": 7 + }, + { + "source": 8 + }, + { + "source": 9 + }, + { + "source": 10 + }, + { + "source": 11 + }, + { + "source": 12 + }, + { + "source": 13 + }, + { + "source": 14 + } + ], + "extensionsRequired": [ + "KHR_draco_mesh_compression" + ], + "extensionsUsed": [ + "KHR_draco_mesh_compression" + ] +} diff --git a/examples/assets/FlightHelmet/FlightHelmet_baseColor.png b/examples/assets/FlightHelmet/FlightHelmet_baseColor.png new file mode 100644 index 00000000..4116e198 Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_baseColor.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_baseColor1.png b/examples/assets/FlightHelmet/FlightHelmet_baseColor1.png new file mode 100644 index 00000000..d47b33eb Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_baseColor1.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_baseColor2.png b/examples/assets/FlightHelmet/FlightHelmet_baseColor2.png new file mode 100644 index 00000000..839c5019 Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_baseColor2.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_baseColor3.png b/examples/assets/FlightHelmet/FlightHelmet_baseColor3.png new file mode 100644 index 00000000..6095f68d Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_baseColor3.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_baseColor4.png b/examples/assets/FlightHelmet/FlightHelmet_baseColor4.png new file mode 100644 index 00000000..fddf46d1 Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_baseColor4.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_normal.png b/examples/assets/FlightHelmet/FlightHelmet_normal.png new file mode 100644 index 00000000..058b4e9d Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_normal.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_normal1.png b/examples/assets/FlightHelmet/FlightHelmet_normal1.png new file mode 100644 index 00000000..a00be5c1 Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_normal1.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_normal2.png b/examples/assets/FlightHelmet/FlightHelmet_normal2.png new file mode 100644 index 00000000..a9ec5618 Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_normal2.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_normal3.png b/examples/assets/FlightHelmet/FlightHelmet_normal3.png new file mode 100644 index 00000000..70f9022b Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_normal3.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_normal4.png b/examples/assets/FlightHelmet/FlightHelmet_normal4.png new file mode 100644 index 00000000..3c973901 Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_normal4.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic.png b/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic.png new file mode 100644 index 00000000..bbde038e Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic1.png b/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic1.png new file mode 100644 index 00000000..067b4f81 Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic1.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic2.png b/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic2.png new file mode 100644 index 00000000..2466f5bc Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic2.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic3.png b/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic3.png new file mode 100644 index 00000000..dbe24290 Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic3.png differ diff --git a/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic4.png b/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic4.png new file mode 100644 index 00000000..2cfc659e Binary files /dev/null and b/examples/assets/FlightHelmet/FlightHelmet_occlusionRoughnessMetallic4.png differ diff --git a/examples/assets/FlightHelmet/README.md b/examples/assets/FlightHelmet/README.md new file mode 100644 index 00000000..75aba073 --- /dev/null +++ b/examples/assets/FlightHelmet/README.md @@ -0,0 +1,16 @@ +# Flight Helmet + +## Screenshot + +![screenshot](screenshot/screenshot.jpg) + +## License Information + +Donated by Microsoft for glTF testing + +[![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png)](http://creativecommons.org/publicdomain/zero/1.0/) +To the extent possible under law, Microsoft has waived all copyright and related or neighboring rights to this asset. + +Draco compression was done via Cesium tools on 27-03-2020 as follows. + + gltf-pipeline -i FlightHelmet.gltf -o FlightHelmet.gltf -d -s --keep-unused-elements diff --git a/examples/assets/background.ktx b/examples/assets/background.ktx new file mode 100644 index 00000000..af9b04df Binary files /dev/null and b/examples/assets/background.ktx differ diff --git a/examples/assets/background.png b/examples/assets/background.png new file mode 100644 index 00000000..4e8e2737 Binary files /dev/null and b/examples/assets/background.png differ diff --git a/examples/assets/cube.glb b/examples/assets/cube.glb new file mode 100644 index 00000000..c8df3114 Binary files /dev/null and b/examples/assets/cube.glb differ diff --git a/examples/assets/default_env_ibl.ktx b/examples/assets/default_env_ibl.ktx new file mode 100644 index 00000000..0765d521 Binary files /dev/null and b/examples/assets/default_env_ibl.ktx differ diff --git a/examples/assets/default_env_skybox.ktx b/examples/assets/default_env_skybox.ktx new file mode 100644 index 00000000..9d72e5a0 Binary files /dev/null and b/examples/assets/default_env_skybox.ktx differ diff --git a/examples/assets/solidcolor.filamat b/examples/assets/solidcolor.filamat new file mode 100644 index 00000000..e17086dc Binary files /dev/null and b/examples/assets/solidcolor.filamat differ diff --git a/examples/assets/solidcolor.mat b/examples/assets/solidcolor.mat new file mode 100644 index 00000000..d3d46bd0 --- /dev/null +++ b/examples/assets/solidcolor.mat @@ -0,0 +1,14 @@ +material { + name : SolidColor, + shadingModel : unlit, + culling : none, + featureLevel : 1, + vertexDomain: object +} + +fragment { + void material(inout MaterialInputs material) { + prepareMaterial(material); + material.baseColor = vec4(0.1f, 0.5f, 0.9f, 1.0f); + } +} diff --git a/examples/flutter/quickstart/.gitignore b/examples/flutter/quickstart/.gitignore new file mode 100644 index 00000000..79c113f9 --- /dev/null +++ b/examples/flutter/quickstart/.gitignore @@ -0,0 +1,45 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.build/ +.buildlog/ +.history +.svn/ +.swiftpm/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.pub-cache/ +.pub/ +/build/ + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release diff --git a/examples/flutter/quickstart/.metadata b/examples/flutter/quickstart/.metadata new file mode 100644 index 00000000..62c6c8ef --- /dev/null +++ b/examples/flutter/quickstart/.metadata @@ -0,0 +1,45 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "7b6d667701e38c1d9d700e2bcc29bc7a06598c59" + channel: "master" + +project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + base_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + - platform: android + create_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + base_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + - platform: ios + create_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + base_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + - platform: linux + create_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + base_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + - platform: macos + create_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + base_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + - platform: web + create_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + base_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + - platform: windows + create_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + base_revision: 7b6d667701e38c1d9d700e2bcc29bc7a06598c59 + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/examples/flutter/quickstart/README.md b/examples/flutter/quickstart/README.md new file mode 100644 index 00000000..33f33833 --- /dev/null +++ b/examples/flutter/quickstart/README.md @@ -0,0 +1,4 @@ +# quickstart + +A Flutter project demonstrating how to use the Thermion rendering toolkit to load a 3D model, skybox and set the camera position. + diff --git a/examples/flutter/quickstart/analysis_options.yaml b/examples/flutter/quickstart/analysis_options.yaml new file mode 100644 index 00000000..0d290213 --- /dev/null +++ b/examples/flutter/quickstart/analysis_options.yaml @@ -0,0 +1,28 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at https://dart.dev/lints. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/examples/flutter/quickstart/android/.gitignore b/examples/flutter/quickstart/android/.gitignore new file mode 100644 index 00000000..6f568019 --- /dev/null +++ b/examples/flutter/quickstart/android/.gitignore @@ -0,0 +1,13 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java + +# Remember to never publicly share your keystore. +# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app +key.properties +**/*.keystore +**/*.jks diff --git a/examples/flutter/quickstart/android/app/build.gradle b/examples/flutter/quickstart/android/app/build.gradle new file mode 100644 index 00000000..6cbcd560 --- /dev/null +++ b/examples/flutter/quickstart/android/app/build.gradle @@ -0,0 +1,44 @@ +plugins { + id "com.android.application" + id "kotlin-android" + // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. + id "dev.flutter.flutter-gradle-plugin" +} + +android { + namespace = "com.example.quickstart" + compileSdk = flutter.compileSdkVersion + ndkVersion = flutter.ndkVersion + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = JavaVersion.VERSION_1_8 + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId = "com.example.quickstart" + // You can update the following values to match your application needs. + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. + minSdk = 22 + targetSdk = flutter.targetSdkVersion + versionCode = flutter.versionCode + versionName = flutter.versionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig = signingConfigs.debug + } + } +} + +flutter { + source = "../.." +} diff --git a/examples/flutter/quickstart/android/app/src/debug/AndroidManifest.xml b/examples/flutter/quickstart/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 00000000..399f6981 --- /dev/null +++ b/examples/flutter/quickstart/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/examples/flutter/quickstart/android/app/src/main/AndroidManifest.xml b/examples/flutter/quickstart/android/app/src/main/AndroidManifest.xml new file mode 100644 index 00000000..d6b5b601 --- /dev/null +++ b/examples/flutter/quickstart/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/flutter/quickstart/android/app/src/main/kotlin/com/example/quickstart/MainActivity.kt b/examples/flutter/quickstart/android/app/src/main/kotlin/com/example/quickstart/MainActivity.kt new file mode 100644 index 00000000..067e280a --- /dev/null +++ b/examples/flutter/quickstart/android/app/src/main/kotlin/com/example/quickstart/MainActivity.kt @@ -0,0 +1,5 @@ +package com.example.quickstart + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() diff --git a/examples/flutter/quickstart/android/app/src/main/res/drawable-v21/launch_background.xml b/examples/flutter/quickstart/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 00000000..f74085f3 --- /dev/null +++ b/examples/flutter/quickstart/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/examples/flutter/quickstart/android/app/src/main/res/drawable/launch_background.xml b/examples/flutter/quickstart/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 00000000..304732f8 --- /dev/null +++ b/examples/flutter/quickstart/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/examples/flutter/quickstart/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/examples/flutter/quickstart/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..db77bb4b Binary files /dev/null and b/examples/flutter/quickstart/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/examples/flutter/quickstart/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/examples/flutter/quickstart/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..17987b79 Binary files /dev/null and b/examples/flutter/quickstart/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/examples/flutter/quickstart/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/examples/flutter/quickstart/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..09d43914 Binary files /dev/null and b/examples/flutter/quickstart/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/examples/flutter/quickstart/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/examples/flutter/quickstart/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..d5f1c8d3 Binary files /dev/null and b/examples/flutter/quickstart/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/examples/flutter/quickstart/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/examples/flutter/quickstart/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..4d6372ee Binary files /dev/null and b/examples/flutter/quickstart/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/examples/flutter/quickstart/android/app/src/main/res/values-night/styles.xml b/examples/flutter/quickstart/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 00000000..06952be7 --- /dev/null +++ b/examples/flutter/quickstart/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/examples/flutter/quickstart/android/app/src/main/res/values/styles.xml b/examples/flutter/quickstart/android/app/src/main/res/values/styles.xml new file mode 100644 index 00000000..cb1ef880 --- /dev/null +++ b/examples/flutter/quickstart/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/examples/flutter/quickstart/android/app/src/profile/AndroidManifest.xml b/examples/flutter/quickstart/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 00000000..399f6981 --- /dev/null +++ b/examples/flutter/quickstart/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/examples/flutter/quickstart/android/build.gradle b/examples/flutter/quickstart/android/build.gradle new file mode 100644 index 00000000..d2ffbffa --- /dev/null +++ b/examples/flutter/quickstart/android/build.gradle @@ -0,0 +1,18 @@ +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = "../build" +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(":app") +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/examples/flutter/quickstart/android/gradle.properties b/examples/flutter/quickstart/android/gradle.properties new file mode 100644 index 00000000..db24e8b2 --- /dev/null +++ b/examples/flutter/quickstart/android/gradle.properties @@ -0,0 +1,6 @@ +org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError +android.useAndroidX=true +android.enableJetifier=true +android.defaults.buildfeatures.buildconfig=true +android.nonTransitiveRClass=false +android.nonFinalResIds=false diff --git a/examples/flutter/quickstart/android/gradle/wrapper/gradle-wrapper.properties b/examples/flutter/quickstart/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..b5fc5a7b --- /dev/null +++ b/examples/flutter/quickstart/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip diff --git a/examples/flutter/quickstart/android/settings.gradle b/examples/flutter/quickstart/android/settings.gradle new file mode 100644 index 00000000..6c8580f0 --- /dev/null +++ b/examples/flutter/quickstart/android/settings.gradle @@ -0,0 +1,25 @@ +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() + + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version '8.2.2' apply false + id "org.jetbrains.kotlin.android" version "1.7.10" apply false +} + +include ":app" diff --git a/examples/flutter/quickstart/assets/cube.glb b/examples/flutter/quickstart/assets/cube.glb new file mode 120000 index 00000000..c421b621 --- /dev/null +++ b/examples/flutter/quickstart/assets/cube.glb @@ -0,0 +1 @@ +../../../assets/cube.glb \ No newline at end of file diff --git a/examples/flutter/quickstart/assets/default_env_ibl.ktx b/examples/flutter/quickstart/assets/default_env_ibl.ktx new file mode 120000 index 00000000..168cfda2 --- /dev/null +++ b/examples/flutter/quickstart/assets/default_env_ibl.ktx @@ -0,0 +1 @@ +../../../assets/default_env_ibl.ktx \ No newline at end of file diff --git a/examples/flutter/quickstart/assets/default_env_skybox.ktx b/examples/flutter/quickstart/assets/default_env_skybox.ktx new file mode 120000 index 00000000..4934cdd7 --- /dev/null +++ b/examples/flutter/quickstart/assets/default_env_skybox.ktx @@ -0,0 +1 @@ +../../../assets/default_env_skybox.ktx \ No newline at end of file diff --git a/examples/flutter/quickstart/ios/.gitignore b/examples/flutter/quickstart/ios/.gitignore new file mode 100644 index 00000000..7a7f9873 --- /dev/null +++ b/examples/flutter/quickstart/ios/.gitignore @@ -0,0 +1,34 @@ +**/dgph +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/ephemeral/ +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/examples/flutter/quickstart/ios/Flutter/AppFrameworkInfo.plist b/examples/flutter/quickstart/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 00000000..7c569640 --- /dev/null +++ b/examples/flutter/quickstart/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/examples/flutter/quickstart/ios/Flutter/Debug.xcconfig b/examples/flutter/quickstart/ios/Flutter/Debug.xcconfig new file mode 100644 index 00000000..ec97fc6f --- /dev/null +++ b/examples/flutter/quickstart/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/examples/flutter/quickstart/ios/Flutter/Release.xcconfig b/examples/flutter/quickstart/ios/Flutter/Release.xcconfig new file mode 100644 index 00000000..c4855bfe --- /dev/null +++ b/examples/flutter/quickstart/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/examples/flutter/quickstart/ios/Podfile b/examples/flutter/quickstart/ios/Podfile new file mode 100644 index 00000000..3e44f9c6 --- /dev/null +++ b/examples/flutter/quickstart/ios/Podfile @@ -0,0 +1,44 @@ +# Uncomment this line to define a global platform for your project +platform :ios, '13.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/examples/flutter/quickstart/ios/Podfile.lock b/examples/flutter/quickstart/ios/Podfile.lock new file mode 100644 index 00000000..81dd9d63 --- /dev/null +++ b/examples/flutter/quickstart/ios/Podfile.lock @@ -0,0 +1,22 @@ +PODS: + - Flutter (1.0.0) + - thermion_flutter (0.0.1): + - Flutter + +DEPENDENCIES: + - Flutter (from `Flutter`) + - thermion_flutter (from `.symlinks/plugins/thermion_flutter/ios`) + +EXTERNAL SOURCES: + Flutter: + :path: Flutter + thermion_flutter: + :path: ".symlinks/plugins/thermion_flutter/ios" + +SPEC CHECKSUMS: + Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 + thermion_flutter: c965e09831858465a1a8df59ff97e40a4d002773 + +PODFILE CHECKSUM: a57f30d18f102dd3ce366b1d62a55ecbef2158e5 + +COCOAPODS: 1.15.2 diff --git a/examples/flutter/quickstart/ios/Runner.xcodeproj/project.pbxproj b/examples/flutter/quickstart/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 00000000..911e0e6c --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,715 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + F657CCCFB062AF56C7F1E15C /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D988E66CA93AB1163F3B4F2 /* Pods_RunnerTests.framework */; }; + F8DC37C0013EE3DC8802435E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B0831D015898C7047513698C /* Pods_Runner.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 31D54E0731320192F7631461 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; + 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3680A9DFE5EC3E59C051B544 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 3D988E66CA93AB1163F3B4F2 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 704E1C99CAABFB056933D88F /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 8C0FE5C77038897D844C5D42 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 9CD72080C199DAE3518D4C3D /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; + B0831D015898C7047513698C /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + BA68F2C1572D8BC92CC4C4FF /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + F8DC37C0013EE3DC8802435E /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + FA72758808529BDB8770545F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + F657CCCFB062AF56C7F1E15C /* Pods_RunnerTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0DB20859A61D425430A5D097 /* Frameworks */ = { + isa = PBXGroup; + children = ( + B0831D015898C7047513698C /* Pods_Runner.framework */, + 3D988E66CA93AB1163F3B4F2 /* Pods_RunnerTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 331C8082294A63A400263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C807B294A618700263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 4A129A4D3EB41F9DE0778AAC /* Pods */ = { + isa = PBXGroup; + children = ( + 704E1C99CAABFB056933D88F /* Pods-Runner.debug.xcconfig */, + 3680A9DFE5EC3E59C051B544 /* Pods-Runner.release.xcconfig */, + 8C0FE5C77038897D844C5D42 /* Pods-Runner.profile.xcconfig */, + 31D54E0731320192F7631461 /* Pods-RunnerTests.debug.xcconfig */, + BA68F2C1572D8BC92CC4C4FF /* Pods-RunnerTests.release.xcconfig */, + 9CD72080C199DAE3518D4C3D /* Pods-RunnerTests.profile.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 331C8082294A63A400263BE5 /* RunnerTests */, + 4A129A4D3EB41F9DE0778AAC /* Pods */, + 0DB20859A61D425430A5D097 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + 331C8081294A63A400263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C8080294A63A400263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 78F05AF37D9E628BE6E89ABD /* [CP] Check Pods Manifest.lock */, + 331C807D294A63A400263BE5 /* Sources */, + 331C807F294A63A400263BE5 /* Resources */, + FA72758808529BDB8770545F /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 331C8086294A63A400263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + C7C2718364AC4E2451407065 /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C8080294A63A400263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 97C146ED1CF9000F007C117D; + }; + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + 331C8080294A63A400263BE5 /* RunnerTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C807F294A63A400263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 78F05AF37D9E628BE6E89ABD /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; + C7C2718364AC4E2451407065 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C807D294A63A400263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = TM2B4SJXNJ; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.quickstart; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 331C8088294A63A400263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 31D54E0731320192F7631461 /* Pods-RunnerTests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.quickstart.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Debug; + }; + 331C8089294A63A400263BE5 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = BA68F2C1572D8BC92CC4C4FF /* Pods-RunnerTests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.quickstart.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Release; + }; + 331C808A294A63A400263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9CD72080C199DAE3518D4C3D /* Pods-RunnerTests.profile.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.quickstart.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = TM2B4SJXNJ; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.quickstart; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = TM2B4SJXNJ; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.quickstart; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C8088294A63A400263BE5 /* Debug */, + 331C8089294A63A400263BE5 /* Release */, + 331C808A294A63A400263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/examples/flutter/quickstart/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/examples/flutter/quickstart/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/examples/flutter/quickstart/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/examples/flutter/quickstart/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/examples/flutter/quickstart/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/examples/flutter/quickstart/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 00000000..f9b0d7c5 --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/examples/flutter/quickstart/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/examples/flutter/quickstart/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 00000000..8e3ca5df --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/flutter/quickstart/ios/Runner.xcworkspace/contents.xcworkspacedata b/examples/flutter/quickstart/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..21a3cc14 --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/examples/flutter/quickstart/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/examples/flutter/quickstart/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/examples/flutter/quickstart/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/examples/flutter/quickstart/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 00000000..f9b0d7c5 --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/examples/flutter/quickstart/ios/Runner/AppDelegate.swift b/examples/flutter/quickstart/ios/Runner/AppDelegate.swift new file mode 100644 index 00000000..62666446 --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import Flutter +import UIKit + +@main +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..d36b1fab --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 00000000..dc9ada47 Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 00000000..7353c41e Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 00000000..797d452e Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 00000000..6ed2d933 Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 00000000..4cd7b009 Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 00000000..fe730945 Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 00000000..321773cd Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 00000000..797d452e Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 00000000..502f463a Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 00000000..0ec30343 Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 00000000..0ec30343 Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 00000000..e9f5fea2 Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 00000000..84ac32ae Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 00000000..8953cba0 Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 00000000..0467bf12 Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 00000000..0bedcf2f --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 00000000..9da19eac Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 00000000..9da19eac Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 00000000..9da19eac Binary files /dev/null and b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 00000000..89c2725b --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/examples/flutter/quickstart/ios/Runner/Base.lproj/LaunchScreen.storyboard b/examples/flutter/quickstart/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 00000000..f2e259c7 --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/flutter/quickstart/ios/Runner/Base.lproj/Main.storyboard b/examples/flutter/quickstart/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 00000000..f3c28516 --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/flutter/quickstart/ios/Runner/Info.plist b/examples/flutter/quickstart/ios/Runner/Info.plist new file mode 100644 index 00000000..e31b7a1a --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner/Info.plist @@ -0,0 +1,51 @@ + + + + + CADisableMinimumFrameDurationOnPhone + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Quickstart + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + quickstart + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + NSMicrophoneUsageDescription + Needs microphone + UIApplicationSupportsIndirectInputEvents + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/examples/flutter/quickstart/ios/Runner/Runner-Bridging-Header.h b/examples/flutter/quickstart/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 00000000..308a2a56 --- /dev/null +++ b/examples/flutter/quickstart/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/examples/flutter/quickstart/ios/RunnerTests/RunnerTests.swift b/examples/flutter/quickstart/ios/RunnerTests/RunnerTests.swift new file mode 100644 index 00000000..86a7c3b1 --- /dev/null +++ b/examples/flutter/quickstart/ios/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import Flutter +import UIKit +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/examples/flutter/quickstart/lib/main.dart b/examples/flutter/quickstart/lib/main.dart new file mode 100644 index 00000000..3e71f6e9 --- /dev/null +++ b/examples/flutter/quickstart/lib/main.dart @@ -0,0 +1,133 @@ +import 'dart:async'; +import 'package:logging/logging.dart'; +import 'package:flutter/material.dart'; +import 'package:thermion_flutter/thermion_flutter.dart'; + +void main() { + runApp(const MyApp()); + Logger.root.onRecord.listen((record) { + print(record); + }); +} + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Thermion Demo', + theme: ThemeData( + colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), + useMaterial3: true, + ), + home: const MyHomePage(title: 'Thermion Demo Home Page'), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key, required this.title}); + final String title; + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + @override + void initState() { + super.initState(); + } + + ThermionViewer? _thermionViewer; + + Future _load() async { + if (_thermionViewer != null) { + throw Exception(); + } + + // A [ThermionViewer] is the main interface for controlling asset loading, + // rendering, camera and lighting. + // + // When you no longer need a rendering surface, call [dispose] on this instance. + // + // Only a single instance can be active at a given time; trying to construct + // a new instance before the old instance has been disposed will throw an exception. + _thermionViewer = await ThermionFlutterPlugin.createViewer(); + + // Geometry and models are represented as "entities". Here, we load a glTF + // file containing a plain cube. + // By default, all paths are treated as asset paths. To load from a file + // instead, use file:// URIs. + var entity = + await _thermionViewer!.loadGlb("assets/cube.glb", keepData: true); + + // Thermion uses a right-handed coordinate system where +Y is up and -Z is + // "into" the screen. + // By default, the camera is located at (0,0,0) looking at (0,0,-1); this + // would place it directly inside the cube we just loaded. + // + // Let's move the camera to (0,0,10) to ensure the cube is visible in the + // viewport. + await _thermionViewer!.setCameraPosition(0, 0, 10); + + // Without a light source, your scene will be totally black. Let's load a skybox + // (a cubemap image that is rendered behind everything else in the scene) + // and an image-based indirect light that has been precomputed from the same + // skybox. + await _thermionViewer!.loadSkybox("assets/default_env_skybox.ktx"); + await _thermionViewer!.loadIbl("assets/default_env_ibl.ktx"); + + // Finally, you need to explicitly enable rendering. Setting rendering to + // false is designed to allow you to pause rendering to conserve battery life + await _thermionViewer!.setRendering(true); + + setState(() {}); + } + + Future _unload() async { + // when you are no longer need the 3D viewport: + // 1) remove all instances of ThermionWidget from the widget tree + // 2) remove all local references to the ThermionViewer + // 3) call dispose on the ThermionViewer + var viewer = _thermionViewer!; + _thermionViewer = null; + setState(() {}); + + await viewer.dispose(); + } + + Widget _loadButton() { + return Center( + child: ElevatedButton(onPressed: _load, child: const Text("Load"))); + } + + Widget _unloadButton() { + return Align( + alignment: Alignment.bottomCenter, + child: ElevatedButton(onPressed: _unload, child: const Text("Unload"))); + } + + @override + Widget build(BuildContext context) { + return Stack(children: [ + if (_thermionViewer != null) + Positioned.fill( + child: ThermionWidget( + viewer: _thermionViewer!, + )), + Align( + alignment: Alignment.bottomCenter, + child: Padding( + padding: const EdgeInsets.all(16), + child:Column( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.end, + children: [ + if (_thermionViewer == null) _loadButton(), + if (_thermionViewer != null) _unloadButton(), + ]))) + ]); + } +} diff --git a/examples/flutter/quickstart/linux/.gitignore b/examples/flutter/quickstart/linux/.gitignore new file mode 100644 index 00000000..d3896c98 --- /dev/null +++ b/examples/flutter/quickstart/linux/.gitignore @@ -0,0 +1 @@ +flutter/ephemeral diff --git a/examples/flutter/quickstart/linux/CMakeLists.txt b/examples/flutter/quickstart/linux/CMakeLists.txt new file mode 100644 index 00000000..f4a5227f --- /dev/null +++ b/examples/flutter/quickstart/linux/CMakeLists.txt @@ -0,0 +1,145 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.10) +project(runner LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "quickstart") +# The unique GTK application identifier for this application. See: +# https://wiki.gnome.org/HowDoI/ChooseApplicationID +set(APPLICATION_ID "com.example.quickstart") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(SET CMP0063 NEW) + +# Load bundled libraries from the lib/ directory relative to the binary. +set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") + +# Root filesystem for cross-building. +if(FLUTTER_TARGET_PLATFORM_SYSROOT) + set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) + set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +endif() + +# Define build configuration options. +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") +endif() + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_14) + target_compile_options(${TARGET} PRIVATE -Wall -Werror) + target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") + target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) + +add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") + +# Define the application target. To change its name, change BINARY_NAME above, +# not the value here, or `flutter run` will no longer work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} + "main.cc" + "my_application.cc" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add dependency libraries. Add any application-specific dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter) +target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) + +# Only the install-generated bundle's copy of the executable will launch +# correctly, since the resources must in the right relative locations. To avoid +# people trying to run the unbundled copy, put it in a subdirectory instead of +# the default top-level location. +set_target_properties(${BINARY_NAME} + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" +) + + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# By default, "installing" just makes a relocatable bundle in the build +# directory. +set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +# Start with a clean build bundle directory every time. +install(CODE " + file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") + " COMPONENT Runtime) + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) + install(FILES "${bundled_library}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endforeach(bundled_library) + +# Copy the native assets provided by the build.dart from all packages. +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/") +install(DIRECTORY "${NATIVE_ASSETS_DIR}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") + install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() diff --git a/examples/flutter/quickstart/linux/flutter/CMakeLists.txt b/examples/flutter/quickstart/linux/flutter/CMakeLists.txt new file mode 100644 index 00000000..d5bd0164 --- /dev/null +++ b/examples/flutter/quickstart/linux/flutter/CMakeLists.txt @@ -0,0 +1,88 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.10) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. + +# Serves the same purpose as list(TRANSFORM ... PREPEND ...), +# which isn't available in 3.10. +function(list_prepend LIST_NAME PREFIX) + set(NEW_LIST "") + foreach(element ${${LIST_NAME}}) + list(APPEND NEW_LIST "${PREFIX}${element}") + endforeach(element) + set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) +endfunction() + +# === Flutter Library === +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) +pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) +pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) + +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "fl_basic_message_channel.h" + "fl_binary_codec.h" + "fl_binary_messenger.h" + "fl_dart_project.h" + "fl_engine.h" + "fl_json_message_codec.h" + "fl_json_method_codec.h" + "fl_message_codec.h" + "fl_method_call.h" + "fl_method_channel.h" + "fl_method_codec.h" + "fl_method_response.h" + "fl_plugin_registrar.h" + "fl_plugin_registry.h" + "fl_standard_message_codec.h" + "fl_standard_method_codec.h" + "fl_string_codec.h" + "fl_value.h" + "fl_view.h" + "flutter_linux.h" +) +list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") +target_link_libraries(flutter INTERFACE + PkgConfig::GTK + PkgConfig::GLIB + PkgConfig::GIO +) +add_dependencies(flutter flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CMAKE_CURRENT_BINARY_DIR}/_phony_ + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" + ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} +) diff --git a/examples/flutter/quickstart/linux/flutter/generated_plugin_registrant.cc b/examples/flutter/quickstart/linux/flutter/generated_plugin_registrant.cc new file mode 100644 index 00000000..01193c10 --- /dev/null +++ b/examples/flutter/quickstart/linux/flutter/generated_plugin_registrant.cc @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + +#include + +void fl_register_plugins(FlPluginRegistry* registry) { + g_autoptr(FlPluginRegistrar) thermion_flutter_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "ThermionFlutterPlugin"); + thermion_flutter_plugin_register_with_registrar(thermion_flutter_registrar); +} diff --git a/examples/flutter/quickstart/linux/flutter/generated_plugin_registrant.h b/examples/flutter/quickstart/linux/flutter/generated_plugin_registrant.h new file mode 100644 index 00000000..e0f0a47b --- /dev/null +++ b/examples/flutter/quickstart/linux/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void fl_register_plugins(FlPluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/examples/flutter/quickstart/linux/flutter/generated_plugins.cmake b/examples/flutter/quickstart/linux/flutter/generated_plugins.cmake new file mode 100644 index 00000000..274b5f60 --- /dev/null +++ b/examples/flutter/quickstart/linux/flutter/generated_plugins.cmake @@ -0,0 +1,24 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST + thermion_flutter +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin) diff --git a/examples/flutter/quickstart/linux/main.cc b/examples/flutter/quickstart/linux/main.cc new file mode 100644 index 00000000..e7c5c543 --- /dev/null +++ b/examples/flutter/quickstart/linux/main.cc @@ -0,0 +1,6 @@ +#include "my_application.h" + +int main(int argc, char** argv) { + g_autoptr(MyApplication) app = my_application_new(); + return g_application_run(G_APPLICATION(app), argc, argv); +} diff --git a/examples/flutter/quickstart/linux/my_application.cc b/examples/flutter/quickstart/linux/my_application.cc new file mode 100644 index 00000000..3901953a --- /dev/null +++ b/examples/flutter/quickstart/linux/my_application.cc @@ -0,0 +1,124 @@ +#include "my_application.h" + +#include +#ifdef GDK_WINDOWING_X11 +#include +#endif + +#include "flutter/generated_plugin_registrant.h" + +struct _MyApplication { + GtkApplication parent_instance; + char** dart_entrypoint_arguments; +}; + +G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) + +// Implements GApplication::activate. +static void my_application_activate(GApplication* application) { + MyApplication* self = MY_APPLICATION(application); + GtkWindow* window = + GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); + + // Use a header bar when running in GNOME as this is the common style used + // by applications and is the setup most users will be using (e.g. Ubuntu + // desktop). + // If running on X and not using GNOME then just use a traditional title bar + // in case the window manager does more exotic layout, e.g. tiling. + // If running on Wayland assume the header bar will work (may need changing + // if future cases occur). + gboolean use_header_bar = TRUE; +#ifdef GDK_WINDOWING_X11 + GdkScreen* screen = gtk_window_get_screen(window); + if (GDK_IS_X11_SCREEN(screen)) { + const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); + if (g_strcmp0(wm_name, "GNOME Shell") != 0) { + use_header_bar = FALSE; + } + } +#endif + if (use_header_bar) { + GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); + gtk_widget_show(GTK_WIDGET(header_bar)); + gtk_header_bar_set_title(header_bar, "quickstart"); + gtk_header_bar_set_show_close_button(header_bar, TRUE); + gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); + } else { + gtk_window_set_title(window, "quickstart"); + } + + gtk_window_set_default_size(window, 1280, 720); + gtk_widget_show(GTK_WIDGET(window)); + + g_autoptr(FlDartProject) project = fl_dart_project_new(); + fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); + + FlView* view = fl_view_new(project); + gtk_widget_show(GTK_WIDGET(view)); + gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); + + fl_register_plugins(FL_PLUGIN_REGISTRY(view)); + + gtk_widget_grab_focus(GTK_WIDGET(view)); +} + +// Implements GApplication::local_command_line. +static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { + MyApplication* self = MY_APPLICATION(application); + // Strip out the first argument as it is the binary name. + self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); + + g_autoptr(GError) error = nullptr; + if (!g_application_register(application, nullptr, &error)) { + g_warning("Failed to register: %s", error->message); + *exit_status = 1; + return TRUE; + } + + g_application_activate(application); + *exit_status = 0; + + return TRUE; +} + +// Implements GApplication::startup. +static void my_application_startup(GApplication* application) { + //MyApplication* self = MY_APPLICATION(object); + + // Perform any actions required at application startup. + + G_APPLICATION_CLASS(my_application_parent_class)->startup(application); +} + +// Implements GApplication::shutdown. +static void my_application_shutdown(GApplication* application) { + //MyApplication* self = MY_APPLICATION(object); + + // Perform any actions required at application shutdown. + + G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application); +} + +// Implements GObject::dispose. +static void my_application_dispose(GObject* object) { + MyApplication* self = MY_APPLICATION(object); + g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); + G_OBJECT_CLASS(my_application_parent_class)->dispose(object); +} + +static void my_application_class_init(MyApplicationClass* klass) { + G_APPLICATION_CLASS(klass)->activate = my_application_activate; + G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; + G_APPLICATION_CLASS(klass)->startup = my_application_startup; + G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown; + G_OBJECT_CLASS(klass)->dispose = my_application_dispose; +} + +static void my_application_init(MyApplication* self) {} + +MyApplication* my_application_new() { + return MY_APPLICATION(g_object_new(my_application_get_type(), + "application-id", APPLICATION_ID, + "flags", G_APPLICATION_NON_UNIQUE, + nullptr)); +} diff --git a/examples/flutter/quickstart/linux/my_application.h b/examples/flutter/quickstart/linux/my_application.h new file mode 100644 index 00000000..72271d5e --- /dev/null +++ b/examples/flutter/quickstart/linux/my_application.h @@ -0,0 +1,18 @@ +#ifndef FLUTTER_MY_APPLICATION_H_ +#define FLUTTER_MY_APPLICATION_H_ + +#include + +G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, + GtkApplication) + +/** + * my_application_new: + * + * Creates a new Flutter-based application. + * + * Returns: a new #MyApplication. + */ +MyApplication* my_application_new(); + +#endif // FLUTTER_MY_APPLICATION_H_ diff --git a/examples/flutter/quickstart/macos/.gitignore b/examples/flutter/quickstart/macos/.gitignore new file mode 100644 index 00000000..746adbb6 --- /dev/null +++ b/examples/flutter/quickstart/macos/.gitignore @@ -0,0 +1,7 @@ +# Flutter-related +**/Flutter/ephemeral/ +**/Pods/ + +# Xcode-related +**/dgph +**/xcuserdata/ diff --git a/examples/flutter/quickstart/macos/Flutter/Flutter-Debug.xcconfig b/examples/flutter/quickstart/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 00000000..4b81f9b2 --- /dev/null +++ b/examples/flutter/quickstart/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/examples/flutter/quickstart/macos/Flutter/Flutter-Release.xcconfig b/examples/flutter/quickstart/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 00000000..5caa9d15 --- /dev/null +++ b/examples/flutter/quickstart/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/examples/flutter/quickstart/macos/Flutter/GeneratedPluginRegistrant.swift b/examples/flutter/quickstart/macos/Flutter/GeneratedPluginRegistrant.swift new file mode 100644 index 00000000..b6c27f96 --- /dev/null +++ b/examples/flutter/quickstart/macos/Flutter/GeneratedPluginRegistrant.swift @@ -0,0 +1,12 @@ +// +// Generated file. Do not edit. +// + +import FlutterMacOS +import Foundation + +import thermion_flutter + +func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { + SwiftThermionFlutterPlugin.register(with: registry.registrar(forPlugin: "SwiftThermionFlutterPlugin")) +} diff --git a/examples/flutter/quickstart/macos/Podfile b/examples/flutter/quickstart/macos/Podfile new file mode 100644 index 00000000..90de47d4 --- /dev/null +++ b/examples/flutter/quickstart/macos/Podfile @@ -0,0 +1,43 @@ +platform :osx, '13.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_macos_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_macos_build_settings(target) + end +end diff --git a/examples/flutter/quickstart/macos/Podfile.lock b/examples/flutter/quickstart/macos/Podfile.lock new file mode 100644 index 00000000..1a5a471c --- /dev/null +++ b/examples/flutter/quickstart/macos/Podfile.lock @@ -0,0 +1,22 @@ +PODS: + - FlutterMacOS (1.0.0) + - thermion_flutter (0.0.1): + - FlutterMacOS + +DEPENDENCIES: + - FlutterMacOS (from `Flutter/ephemeral`) + - thermion_flutter (from `Flutter/ephemeral/.symlinks/plugins/thermion_flutter/macos`) + +EXTERNAL SOURCES: + FlutterMacOS: + :path: Flutter/ephemeral + thermion_flutter: + :path: Flutter/ephemeral/.symlinks/plugins/thermion_flutter/macos + +SPEC CHECKSUMS: + FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 + thermion_flutter: debb51a861788780ce40e11e4400c2e5a8681fdf + +PODFILE CHECKSUM: 1888651be91a8ad58692c1add9ce24279fd4e950 + +COCOAPODS: 1.15.2 diff --git a/examples/flutter/quickstart/macos/Runner.xcodeproj/project.pbxproj b/examples/flutter/quickstart/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 00000000..a3932134 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,803 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + 56F02897B820ADA2DE043C9B /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 93162ABED09E78126BD3CDE5 /* Pods_Runner.framework */; }; + 62AA8D6F0977DC04C5F3E47D /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9491FF37DFB0425E4EA0B397 /* Pods_RunnerTests.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC10EC2044A3C60003C045; + remoteInfo = Runner; + }; + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* quickstart.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = quickstart.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 4DE9521732D230B91BB45C73 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 5C2B9597C21FB64F23F75F32 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; + 61CABADBE923C1C839256779 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 89306E3842C70B544B3CD9C8 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + 914F20B2B6A55F4538F4FECA /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; + 93162ABED09E78126BD3CDE5 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9491FF37DFB0425E4EA0B397 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; + E5EDF04F05E94A7EC21CBB16 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 331C80D2294CF70F00263BE5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 62AA8D6F0977DC04C5F3E47D /* Pods_RunnerTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 56F02897B820ADA2DE043C9B /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0AD0DB307687B659B7995D8A /* Pods */ = { + isa = PBXGroup; + children = ( + 4DE9521732D230B91BB45C73 /* Pods-Runner.debug.xcconfig */, + 89306E3842C70B544B3CD9C8 /* Pods-Runner.release.xcconfig */, + 61CABADBE923C1C839256779 /* Pods-Runner.profile.xcconfig */, + 914F20B2B6A55F4538F4FECA /* Pods-RunnerTests.debug.xcconfig */, + 5C2B9597C21FB64F23F75F32 /* Pods-RunnerTests.release.xcconfig */, + E5EDF04F05E94A7EC21CBB16 /* Pods-RunnerTests.profile.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + 331C80D6294CF71000263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C80D7294CF71000263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + 331C80D6294CF71000263BE5 /* RunnerTests */, + 33CC10EE2044A3C60003C045 /* Products */, + D73912EC22F37F3D000D13A0 /* Frameworks */, + 0AD0DB307687B659B7995D8A /* Pods */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* quickstart.app */, + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + D73912EC22F37F3D000D13A0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 93162ABED09E78126BD3CDE5 /* Pods_Runner.framework */, + 9491FF37DFB0425E4EA0B397 /* Pods_RunnerTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C80D4294CF70F00263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 465FA95FF24452F333D1C1C1 /* [CP] Check Pods Manifest.lock */, + 331C80D1294CF70F00263BE5 /* Sources */, + 331C80D2294CF70F00263BE5 /* Frameworks */, + 331C80D3294CF70F00263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C80DA294CF71000263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + ED773E1A7DA74470DCD044C6 /* [CP] Check Pods Manifest.lock */, + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + CB1E43C40756BBF229674223 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* quickstart.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C80D4294CF70F00263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 33CC10EC2044A3C60003C045; + }; + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 331C80D4294CF70F00263BE5 /* RunnerTests */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C80D3294CF70F00263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; + }; + 465FA95FF24452F333D1C1C1 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + CB1E43C40756BBF229674223 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + ED773E1A7DA74470DCD044C6 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C80D1294CF70F00263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC10EC2044A3C60003C045 /* Runner */; + targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; + }; + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 331C80DB294CF71000263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 914F20B2B6A55F4538F4FECA /* Pods-RunnerTests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.quickstart.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/quickstart.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/quickstart"; + }; + name = Debug; + }; + 331C80DC294CF71000263BE5 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5C2B9597C21FB64F23F75F32 /* Pods-RunnerTests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.quickstart.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/quickstart.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/quickstart"; + }; + name = Release; + }; + 331C80DD294CF71000263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = E5EDF04F05E94A7EC21CBB16 /* Pods-RunnerTests.profile.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.quickstart.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/quickstart.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/quickstart"; + }; + name = Profile; + }; + 338D0CE9231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Profile; + }; + 338D0CEA231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 13.0; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Profile; + }; + 338D0CEB231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 33CC10F92044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 33CC10FA2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 33CC10FC2044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 13.0; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 33CC10FD2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 13.0; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 33CC111C2044C6BA0003C045 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 33CC111D2044C6BA0003C045 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C80DB294CF71000263BE5 /* Debug */, + 331C80DC294CF71000263BE5 /* Release */, + 331C80DD294CF71000263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug */, + 33CC10FA2044A3C60003C045 /* Release */, + 338D0CE9231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug */, + 33CC10FD2044A3C60003C045 /* Release */, + 338D0CEA231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug */, + 33CC111D2044C6BA0003C045 /* Release */, + 338D0CEB231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/examples/flutter/quickstart/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/examples/flutter/quickstart/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/examples/flutter/quickstart/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/examples/flutter/quickstart/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 00000000..8cd4e3e4 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/flutter/quickstart/macos/Runner.xcworkspace/contents.xcworkspacedata b/examples/flutter/quickstart/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..21a3cc14 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/examples/flutter/quickstart/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/examples/flutter/quickstart/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/examples/flutter/quickstart/macos/Runner/AppDelegate.swift b/examples/flutter/quickstart/macos/Runner/AppDelegate.swift new file mode 100644 index 00000000..b3c17614 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import Cocoa +import FlutterMacOS + +@main +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } +} diff --git a/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..a2ec33f1 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "1x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "1x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_1024.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png new file mode 100644 index 00000000..82b6f9d9 Binary files /dev/null and b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png differ diff --git a/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png new file mode 100644 index 00000000..13b35eba Binary files /dev/null and b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png differ diff --git a/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png new file mode 100644 index 00000000..0a3f5fa4 Binary files /dev/null and b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png differ diff --git a/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png new file mode 100644 index 00000000..bdb57226 Binary files /dev/null and b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png differ diff --git a/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png new file mode 100644 index 00000000..f083318e Binary files /dev/null and b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png differ diff --git a/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png new file mode 100644 index 00000000..326c0e72 Binary files /dev/null and b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png differ diff --git a/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png new file mode 100644 index 00000000..2f1632cf Binary files /dev/null and b/examples/flutter/quickstart/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png differ diff --git a/examples/flutter/quickstart/macos/Runner/Base.lproj/MainMenu.xib b/examples/flutter/quickstart/macos/Runner/Base.lproj/MainMenu.xib new file mode 100644 index 00000000..80e867a4 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner/Base.lproj/MainMenu.xib @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/flutter/quickstart/macos/Runner/Configs/AppInfo.xcconfig b/examples/flutter/quickstart/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 00000000..b638164d --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = quickstart + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = com.example.quickstart + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved. diff --git a/examples/flutter/quickstart/macos/Runner/Configs/Debug.xcconfig b/examples/flutter/quickstart/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 00000000..36b0fd94 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/examples/flutter/quickstart/macos/Runner/Configs/Release.xcconfig b/examples/flutter/quickstart/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 00000000..dff4f495 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/examples/flutter/quickstart/macos/Runner/Configs/Warnings.xcconfig b/examples/flutter/quickstart/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 00000000..42bcbf47 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/examples/flutter/quickstart/macos/Runner/DebugProfile.entitlements b/examples/flutter/quickstart/macos/Runner/DebugProfile.entitlements new file mode 100644 index 00000000..dddb8a30 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + + diff --git a/examples/flutter/quickstart/macos/Runner/Info.plist b/examples/flutter/quickstart/macos/Runner/Info.plist new file mode 100644 index 00000000..624ac974 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner/Info.plist @@ -0,0 +1,34 @@ + + + + + MetalCaptureEnabled + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/examples/flutter/quickstart/macos/Runner/MainFlutterWindow.swift b/examples/flutter/quickstart/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 00000000..3cc05eb2 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,15 @@ +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } +} diff --git a/examples/flutter/quickstart/macos/Runner/Release.entitlements b/examples/flutter/quickstart/macos/Runner/Release.entitlements new file mode 100644 index 00000000..852fa1a4 --- /dev/null +++ b/examples/flutter/quickstart/macos/Runner/Release.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/examples/flutter/quickstart/macos/RunnerTests/RunnerTests.swift b/examples/flutter/quickstart/macos/RunnerTests/RunnerTests.swift new file mode 100644 index 00000000..61f3bd1f --- /dev/null +++ b/examples/flutter/quickstart/macos/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import Cocoa +import FlutterMacOS +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/examples/flutter/quickstart/pubspec.yaml b/examples/flutter/quickstart/pubspec.yaml new file mode 100644 index 00000000..64904504 --- /dev/null +++ b/examples/flutter/quickstart/pubspec.yaml @@ -0,0 +1,40 @@ +name: quickstart +description: "A new Flutter project." +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +version: 1.0.0+1 + +environment: + sdk: '>=3.3.0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + cupertino_icons: ^1.0.8 + vector_math: ^2.1.4 + + win32: 5.5.1 + web: 1.0.0 + thermion_flutter: ^0.2.1-dev.7 + +dev_dependencies: + flutter_test: + sdk: flutter + flutter_lints: ^4.0.0 + +dependency_overrides: + thermion_dart: + path: /Users/nickfisher/Documents/polyvox/apps/packages/thermion/thermion_dart + thermion_flutter_web: + path: /Users/nickfisher/Documents/polyvox/apps/packages/thermion/thermion_flutter/thermion_flutter_web + thermion_flutter: + path: /Users/nickfisher/Documents/polyvox/apps/packages/thermion/thermion_flutter/thermion_flutter + thermion_flutter_platform_interface: + path: /Users/nickfisher/Documents/polyvox/apps/packages/thermion/thermion_flutter/thermion_flutter_platform_interface + thermion_flutter_ffi: + path: /Users/nickfisher/Documents/polyvox/apps/packages/thermion/thermion_flutter/thermion_flutter_ffi + +flutter: + uses-material-design: true + assets: + - assets/ diff --git a/examples/flutter/quickstart/test/widget_test.dart b/examples/flutter/quickstart/test/widget_test.dart new file mode 100644 index 00000000..fe677c1e --- /dev/null +++ b/examples/flutter/quickstart/test/widget_test.dart @@ -0,0 +1,30 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility in the flutter_test package. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:quickstart/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +} diff --git a/examples/flutter/quickstart/web/favicon.png b/examples/flutter/quickstart/web/favicon.png new file mode 100644 index 00000000..8aaa46ac Binary files /dev/null and b/examples/flutter/quickstart/web/favicon.png differ diff --git a/examples/flutter/quickstart/web/icons/Icon-192.png b/examples/flutter/quickstart/web/icons/Icon-192.png new file mode 100644 index 00000000..b749bfef Binary files /dev/null and b/examples/flutter/quickstart/web/icons/Icon-192.png differ diff --git a/examples/flutter/quickstart/web/icons/Icon-512.png b/examples/flutter/quickstart/web/icons/Icon-512.png new file mode 100644 index 00000000..88cfd48d Binary files /dev/null and b/examples/flutter/quickstart/web/icons/Icon-512.png differ diff --git a/examples/flutter/quickstart/web/icons/Icon-maskable-192.png b/examples/flutter/quickstart/web/icons/Icon-maskable-192.png new file mode 100644 index 00000000..eb9b4d76 Binary files /dev/null and b/examples/flutter/quickstart/web/icons/Icon-maskable-192.png differ diff --git a/examples/flutter/quickstart/web/icons/Icon-maskable-512.png b/examples/flutter/quickstart/web/icons/Icon-maskable-512.png new file mode 100644 index 00000000..d69c5669 Binary files /dev/null and b/examples/flutter/quickstart/web/icons/Icon-maskable-512.png differ diff --git a/examples/flutter/quickstart/web/index.html b/examples/flutter/quickstart/web/index.html new file mode 100644 index 00000000..cbadfa17 --- /dev/null +++ b/examples/flutter/quickstart/web/index.html @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + quickstart + + + + + + + + + +
+ + + + + \ No newline at end of file diff --git a/examples/flutter/quickstart/web/manifest.json b/examples/flutter/quickstart/web/manifest.json new file mode 100644 index 00000000..1dd1a2f1 --- /dev/null +++ b/examples/flutter/quickstart/web/manifest.json @@ -0,0 +1,35 @@ +{ + "name": "quickstart", + "short_name": "quickstart", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + }, + { + "src": "icons/Icon-maskable-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "icons/Icon-maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ] +} diff --git a/examples/flutter/quickstart/web/thermion_dart.js b/examples/flutter/quickstart/web/thermion_dart.js new file mode 120000 index 00000000..5d40113f --- /dev/null +++ b/examples/flutter/quickstart/web/thermion_dart.js @@ -0,0 +1 @@ +../../../assets/thermion_dart.js \ No newline at end of file diff --git a/examples/flutter/quickstart/web/thermion_dart.wasm b/examples/flutter/quickstart/web/thermion_dart.wasm new file mode 120000 index 00000000..194fa421 --- /dev/null +++ b/examples/flutter/quickstart/web/thermion_dart.wasm @@ -0,0 +1 @@ +../../../assets/thermion_dart.wasm \ No newline at end of file diff --git a/examples/flutter/quickstart/windows/.gitignore b/examples/flutter/quickstart/windows/.gitignore new file mode 100644 index 00000000..d492d0d9 --- /dev/null +++ b/examples/flutter/quickstart/windows/.gitignore @@ -0,0 +1,17 @@ +flutter/ephemeral/ + +# Visual Studio user-specific files. +*.suo +*.user +*.userosscache +*.sln.docstates + +# Visual Studio build-related files. +x64/ +x86/ + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ diff --git a/examples/flutter/quickstart/windows/CMakeLists.txt b/examples/flutter/quickstart/windows/CMakeLists.txt new file mode 100644 index 00000000..21862f80 --- /dev/null +++ b/examples/flutter/quickstart/windows/CMakeLists.txt @@ -0,0 +1,108 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.14) +project(quickstart LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "quickstart") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(VERSION 3.14...3.25) + +# Define build configuration option. +get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +if(IS_MULTICONFIG) + set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" + CACHE STRING "" FORCE) +else() + if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") + endif() +endif() +# Define settings for the Profile build mode. +set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") +set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") +set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") +set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") + +# Use Unicode for all projects. +add_definitions(-DUNICODE -D_UNICODE) + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_17) + target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") + target_compile_options(${TARGET} PRIVATE /EHsc) + target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") + target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# Application build; see runner/CMakeLists.txt. +add_subdirectory("runner") + + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# Support files are copied into place next to the executable, so that it can +# run in place. This is done instead of making a separate bundle (as on Linux) +# so that building and running from within Visual Studio will work. +set(BUILD_BUNDLE_DIR "$") +# Make the "install" step default, as it's required to run. +set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +if(PLUGIN_BUNDLED_LIBRARIES) + install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() + +# Copy the native assets provided by the build.dart from all packages. +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/") +install(DIRECTORY "${NATIVE_ASSETS_DIR}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + CONFIGURATIONS Profile;Release + COMPONENT Runtime) diff --git a/examples/flutter/quickstart/windows/flutter/CMakeLists.txt b/examples/flutter/quickstart/windows/flutter/CMakeLists.txt new file mode 100644 index 00000000..903f4899 --- /dev/null +++ b/examples/flutter/quickstart/windows/flutter/CMakeLists.txt @@ -0,0 +1,109 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.14) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. +set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") + +# Set fallback configurations for older versions of the flutter tool. +if (NOT DEFINED FLUTTER_TARGET_PLATFORM) + set(FLUTTER_TARGET_PLATFORM "windows-x64") +endif() + +# === Flutter Library === +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "flutter_export.h" + "flutter_windows.h" + "flutter_messenger.h" + "flutter_plugin_registrar.h" + "flutter_texture_registrar.h" +) +list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") +add_dependencies(flutter flutter_assemble) + +# === Wrapper === +list(APPEND CPP_WRAPPER_SOURCES_CORE + "core_implementations.cc" + "standard_codec.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_PLUGIN + "plugin_registrar.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_APP + "flutter_engine.cc" + "flutter_view_controller.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") + +# Wrapper sources needed for a plugin. +add_library(flutter_wrapper_plugin STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} +) +apply_standard_settings(flutter_wrapper_plugin) +set_target_properties(flutter_wrapper_plugin PROPERTIES + POSITION_INDEPENDENT_CODE ON) +set_target_properties(flutter_wrapper_plugin PROPERTIES + CXX_VISIBILITY_PRESET hidden) +target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) +target_include_directories(flutter_wrapper_plugin PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_plugin flutter_assemble) + +# Wrapper sources needed for the runner. +add_library(flutter_wrapper_app STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_APP} +) +apply_standard_settings(flutter_wrapper_app) +target_link_libraries(flutter_wrapper_app PUBLIC flutter) +target_include_directories(flutter_wrapper_app PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_app flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") +set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} + ${PHONY_OUTPUT} + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" + ${FLUTTER_TARGET_PLATFORM} $ + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} +) diff --git a/examples/flutter/quickstart/windows/flutter/generated_plugin_registrant.cc b/examples/flutter/quickstart/windows/flutter/generated_plugin_registrant.cc new file mode 100644 index 00000000..64919ad2 --- /dev/null +++ b/examples/flutter/quickstart/windows/flutter/generated_plugin_registrant.cc @@ -0,0 +1,14 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + +#include + +void RegisterPlugins(flutter::PluginRegistry* registry) { + ThermionFlutterPluginCApiRegisterWithRegistrar( + registry->GetRegistrarForPlugin("ThermionFlutterPluginCApi")); +} diff --git a/examples/flutter/quickstart/windows/flutter/generated_plugin_registrant.h b/examples/flutter/quickstart/windows/flutter/generated_plugin_registrant.h new file mode 100644 index 00000000..dc139d85 --- /dev/null +++ b/examples/flutter/quickstart/windows/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void RegisterPlugins(flutter::PluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/examples/flutter/quickstart/windows/flutter/generated_plugins.cmake b/examples/flutter/quickstart/windows/flutter/generated_plugins.cmake new file mode 100644 index 00000000..55f1a93d --- /dev/null +++ b/examples/flutter/quickstart/windows/flutter/generated_plugins.cmake @@ -0,0 +1,24 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST + thermion_flutter +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin) diff --git a/examples/flutter/quickstart/windows/runner/CMakeLists.txt b/examples/flutter/quickstart/windows/runner/CMakeLists.txt new file mode 100644 index 00000000..394917c0 --- /dev/null +++ b/examples/flutter/quickstart/windows/runner/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.14) +project(runner LANGUAGES CXX) + +# Define the application target. To change its name, change BINARY_NAME in the +# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer +# work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} WIN32 + "flutter_window.cpp" + "main.cpp" + "utils.cpp" + "win32_window.cpp" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" + "Runner.rc" + "runner.exe.manifest" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add preprocessor definitions for the build version. +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") + +# Disable Windows macros that collide with C++ standard library functions. +target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") + +# Add dependency libraries and include directories. Add any application-specific +# dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) +target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) diff --git a/examples/flutter/quickstart/windows/runner/Runner.rc b/examples/flutter/quickstart/windows/runner/Runner.rc new file mode 100644 index 00000000..fb14283d --- /dev/null +++ b/examples/flutter/quickstart/windows/runner/Runner.rc @@ -0,0 +1,121 @@ +// Microsoft Visual C++ generated resource script. +// +#pragma code_page(65001) +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_APP_ICON ICON "resources\\app_icon.ico" + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) +#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD +#else +#define VERSION_AS_NUMBER 1,0,0,0 +#endif + +#if defined(FLUTTER_VERSION) +#define VERSION_AS_STRING FLUTTER_VERSION +#else +#define VERSION_AS_STRING "1.0.0" +#endif + +VS_VERSION_INFO VERSIONINFO + FILEVERSION VERSION_AS_NUMBER + PRODUCTVERSION VERSION_AS_NUMBER + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904e4" + BEGIN + VALUE "CompanyName", "com.example" "\0" + VALUE "FileDescription", "quickstart" "\0" + VALUE "FileVersion", VERSION_AS_STRING "\0" + VALUE "InternalName", "quickstart" "\0" + VALUE "LegalCopyright", "Copyright (C) 2024 com.example. All rights reserved." "\0" + VALUE "OriginalFilename", "quickstart.exe" "\0" + VALUE "ProductName", "quickstart" "\0" + VALUE "ProductVersion", VERSION_AS_STRING "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1252 + END +END + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED diff --git a/examples/flutter/quickstart/windows/runner/flutter_window.cpp b/examples/flutter/quickstart/windows/runner/flutter_window.cpp new file mode 100644 index 00000000..955ee303 --- /dev/null +++ b/examples/flutter/quickstart/windows/runner/flutter_window.cpp @@ -0,0 +1,71 @@ +#include "flutter_window.h" + +#include + +#include "flutter/generated_plugin_registrant.h" + +FlutterWindow::FlutterWindow(const flutter::DartProject& project) + : project_(project) {} + +FlutterWindow::~FlutterWindow() {} + +bool FlutterWindow::OnCreate() { + if (!Win32Window::OnCreate()) { + return false; + } + + RECT frame = GetClientArea(); + + // The size here must match the window dimensions to avoid unnecessary surface + // creation / destruction in the startup path. + flutter_controller_ = std::make_unique( + frame.right - frame.left, frame.bottom - frame.top, project_); + // Ensure that basic setup of the controller was successful. + if (!flutter_controller_->engine() || !flutter_controller_->view()) { + return false; + } + RegisterPlugins(flutter_controller_->engine()); + SetChildContent(flutter_controller_->view()->GetNativeWindow()); + + flutter_controller_->engine()->SetNextFrameCallback([&]() { + this->Show(); + }); + + // Flutter can complete the first frame before the "show window" callback is + // registered. The following call ensures a frame is pending to ensure the + // window is shown. It is a no-op if the first frame hasn't completed yet. + flutter_controller_->ForceRedraw(); + + return true; +} + +void FlutterWindow::OnDestroy() { + if (flutter_controller_) { + flutter_controller_ = nullptr; + } + + Win32Window::OnDestroy(); +} + +LRESULT +FlutterWindow::MessageHandler(HWND hwnd, UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + // Give Flutter, including plugins, an opportunity to handle window messages. + if (flutter_controller_) { + std::optional result = + flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, + lparam); + if (result) { + return *result; + } + } + + switch (message) { + case WM_FONTCHANGE: + flutter_controller_->engine()->ReloadSystemFonts(); + break; + } + + return Win32Window::MessageHandler(hwnd, message, wparam, lparam); +} diff --git a/examples/flutter/quickstart/windows/runner/flutter_window.h b/examples/flutter/quickstart/windows/runner/flutter_window.h new file mode 100644 index 00000000..6da0652f --- /dev/null +++ b/examples/flutter/quickstart/windows/runner/flutter_window.h @@ -0,0 +1,33 @@ +#ifndef RUNNER_FLUTTER_WINDOW_H_ +#define RUNNER_FLUTTER_WINDOW_H_ + +#include +#include + +#include + +#include "win32_window.h" + +// A window that does nothing but host a Flutter view. +class FlutterWindow : public Win32Window { + public: + // Creates a new FlutterWindow hosting a Flutter view running |project|. + explicit FlutterWindow(const flutter::DartProject& project); + virtual ~FlutterWindow(); + + protected: + // Win32Window: + bool OnCreate() override; + void OnDestroy() override; + LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, + LPARAM const lparam) noexcept override; + + private: + // The project to run. + flutter::DartProject project_; + + // The Flutter instance hosted by this window. + std::unique_ptr flutter_controller_; +}; + +#endif // RUNNER_FLUTTER_WINDOW_H_ diff --git a/examples/flutter/quickstart/windows/runner/main.cpp b/examples/flutter/quickstart/windows/runner/main.cpp new file mode 100644 index 00000000..b7fd16b9 --- /dev/null +++ b/examples/flutter/quickstart/windows/runner/main.cpp @@ -0,0 +1,43 @@ +#include +#include +#include + +#include "flutter_window.h" +#include "utils.h" + +int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, + _In_ wchar_t *command_line, _In_ int show_command) { + // Attach to console when present (e.g., 'flutter run') or create a + // new console when running with a debugger. + if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { + CreateAndAttachConsole(); + } + + // Initialize COM, so that it is available for use in the library and/or + // plugins. + ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); + + flutter::DartProject project(L"data"); + + std::vector command_line_arguments = + GetCommandLineArguments(); + + project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); + + FlutterWindow window(project); + Win32Window::Point origin(10, 10); + Win32Window::Size size(1280, 720); + if (!window.Create(L"quickstart", origin, size)) { + return EXIT_FAILURE; + } + window.SetQuitOnClose(true); + + ::MSG msg; + while (::GetMessage(&msg, nullptr, 0, 0)) { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + } + + ::CoUninitialize(); + return EXIT_SUCCESS; +} diff --git a/examples/flutter/quickstart/windows/runner/resource.h b/examples/flutter/quickstart/windows/runner/resource.h new file mode 100644 index 00000000..66a65d1e --- /dev/null +++ b/examples/flutter/quickstart/windows/runner/resource.h @@ -0,0 +1,16 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Runner.rc +// +#define IDI_APP_ICON 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/examples/flutter/quickstart/windows/runner/resources/app_icon.ico b/examples/flutter/quickstart/windows/runner/resources/app_icon.ico new file mode 100644 index 00000000..c04e20ca Binary files /dev/null and b/examples/flutter/quickstart/windows/runner/resources/app_icon.ico differ diff --git a/examples/flutter/quickstart/windows/runner/runner.exe.manifest b/examples/flutter/quickstart/windows/runner/runner.exe.manifest new file mode 100644 index 00000000..153653e8 --- /dev/null +++ b/examples/flutter/quickstart/windows/runner/runner.exe.manifest @@ -0,0 +1,14 @@ + + + + + PerMonitorV2 + + + + + + + + + diff --git a/examples/flutter/quickstart/windows/runner/utils.cpp b/examples/flutter/quickstart/windows/runner/utils.cpp new file mode 100644 index 00000000..3a0b4651 --- /dev/null +++ b/examples/flutter/quickstart/windows/runner/utils.cpp @@ -0,0 +1,65 @@ +#include "utils.h" + +#include +#include +#include +#include + +#include + +void CreateAndAttachConsole() { + if (::AllocConsole()) { + FILE *unused; + if (freopen_s(&unused, "CONOUT$", "w", stdout)) { + _dup2(_fileno(stdout), 1); + } + if (freopen_s(&unused, "CONOUT$", "w", stderr)) { + _dup2(_fileno(stdout), 2); + } + std::ios::sync_with_stdio(); + FlutterDesktopResyncOutputStreams(); + } +} + +std::vector GetCommandLineArguments() { + // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. + int argc; + wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); + if (argv == nullptr) { + return std::vector(); + } + + std::vector command_line_arguments; + + // Skip the first argument as it's the binary name. + for (int i = 1; i < argc; i++) { + command_line_arguments.push_back(Utf8FromUtf16(argv[i])); + } + + ::LocalFree(argv); + + return command_line_arguments; +} + +std::string Utf8FromUtf16(const wchar_t* utf16_string) { + if (utf16_string == nullptr) { + return std::string(); + } + unsigned int target_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + -1, nullptr, 0, nullptr, nullptr) + -1; // remove the trailing null character + int input_length = (int)wcslen(utf16_string); + std::string utf8_string; + if (target_length == 0 || target_length > utf8_string.max_size()) { + return utf8_string; + } + utf8_string.resize(target_length); + int converted_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + input_length, utf8_string.data(), target_length, nullptr, nullptr); + if (converted_length == 0) { + return std::string(); + } + return utf8_string; +} diff --git a/examples/flutter/quickstart/windows/runner/utils.h b/examples/flutter/quickstart/windows/runner/utils.h new file mode 100644 index 00000000..3879d547 --- /dev/null +++ b/examples/flutter/quickstart/windows/runner/utils.h @@ -0,0 +1,19 @@ +#ifndef RUNNER_UTILS_H_ +#define RUNNER_UTILS_H_ + +#include +#include + +// Creates a console for the process, and redirects stdout and stderr to +// it for both the runner and the Flutter library. +void CreateAndAttachConsole(); + +// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string +// encoded in UTF-8. Returns an empty std::string on failure. +std::string Utf8FromUtf16(const wchar_t* utf16_string); + +// Gets the command line arguments passed in as a std::vector, +// encoded in UTF-8. Returns an empty std::vector on failure. +std::vector GetCommandLineArguments(); + +#endif // RUNNER_UTILS_H_ diff --git a/examples/flutter/quickstart/windows/runner/win32_window.cpp b/examples/flutter/quickstart/windows/runner/win32_window.cpp new file mode 100644 index 00000000..60608d0f --- /dev/null +++ b/examples/flutter/quickstart/windows/runner/win32_window.cpp @@ -0,0 +1,288 @@ +#include "win32_window.h" + +#include +#include + +#include "resource.h" + +namespace { + +/// Window attribute that enables dark mode window decorations. +/// +/// Redefined in case the developer's machine has a Windows SDK older than +/// version 10.0.22000.0. +/// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute +#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE +#define DWMWA_USE_IMMERSIVE_DARK_MODE 20 +#endif + +constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; + +/// Registry key for app theme preference. +/// +/// A value of 0 indicates apps should use dark mode. A non-zero or missing +/// value indicates apps should use light mode. +constexpr const wchar_t kGetPreferredBrightnessRegKey[] = + L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"; +constexpr const wchar_t kGetPreferredBrightnessRegValue[] = L"AppsUseLightTheme"; + +// The number of Win32Window objects that currently exist. +static int g_active_window_count = 0; + +using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); + +// Scale helper to convert logical scaler values to physical using passed in +// scale factor +int Scale(int source, double scale_factor) { + return static_cast(source * scale_factor); +} + +// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. +// This API is only needed for PerMonitor V1 awareness mode. +void EnableFullDpiSupportIfAvailable(HWND hwnd) { + HMODULE user32_module = LoadLibraryA("User32.dll"); + if (!user32_module) { + return; + } + auto enable_non_client_dpi_scaling = + reinterpret_cast( + GetProcAddress(user32_module, "EnableNonClientDpiScaling")); + if (enable_non_client_dpi_scaling != nullptr) { + enable_non_client_dpi_scaling(hwnd); + } + FreeLibrary(user32_module); +} + +} // namespace + +// Manages the Win32Window's window class registration. +class WindowClassRegistrar { + public: + ~WindowClassRegistrar() = default; + + // Returns the singleton registrar instance. + static WindowClassRegistrar* GetInstance() { + if (!instance_) { + instance_ = new WindowClassRegistrar(); + } + return instance_; + } + + // Returns the name of the window class, registering the class if it hasn't + // previously been registered. + const wchar_t* GetWindowClass(); + + // Unregisters the window class. Should only be called if there are no + // instances of the window. + void UnregisterWindowClass(); + + private: + WindowClassRegistrar() = default; + + static WindowClassRegistrar* instance_; + + bool class_registered_ = false; +}; + +WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; + +const wchar_t* WindowClassRegistrar::GetWindowClass() { + if (!class_registered_) { + WNDCLASS window_class{}; + window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); + window_class.lpszClassName = kWindowClassName; + window_class.style = CS_HREDRAW | CS_VREDRAW; + window_class.cbClsExtra = 0; + window_class.cbWndExtra = 0; + window_class.hInstance = GetModuleHandle(nullptr); + window_class.hIcon = + LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); + window_class.hbrBackground = 0; + window_class.lpszMenuName = nullptr; + window_class.lpfnWndProc = Win32Window::WndProc; + RegisterClass(&window_class); + class_registered_ = true; + } + return kWindowClassName; +} + +void WindowClassRegistrar::UnregisterWindowClass() { + UnregisterClass(kWindowClassName, nullptr); + class_registered_ = false; +} + +Win32Window::Win32Window() { + ++g_active_window_count; +} + +Win32Window::~Win32Window() { + --g_active_window_count; + Destroy(); +} + +bool Win32Window::Create(const std::wstring& title, + const Point& origin, + const Size& size) { + Destroy(); + + const wchar_t* window_class = + WindowClassRegistrar::GetInstance()->GetWindowClass(); + + const POINT target_point = {static_cast(origin.x), + static_cast(origin.y)}; + HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); + UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); + double scale_factor = dpi / 96.0; + + HWND window = CreateWindow( + window_class, title.c_str(), WS_OVERLAPPEDWINDOW, + Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), + Scale(size.width, scale_factor), Scale(size.height, scale_factor), + nullptr, nullptr, GetModuleHandle(nullptr), this); + + if (!window) { + return false; + } + + UpdateTheme(window); + + return OnCreate(); +} + +bool Win32Window::Show() { + return ShowWindow(window_handle_, SW_SHOWNORMAL); +} + +// static +LRESULT CALLBACK Win32Window::WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + if (message == WM_NCCREATE) { + auto window_struct = reinterpret_cast(lparam); + SetWindowLongPtr(window, GWLP_USERDATA, + reinterpret_cast(window_struct->lpCreateParams)); + + auto that = static_cast(window_struct->lpCreateParams); + EnableFullDpiSupportIfAvailable(window); + that->window_handle_ = window; + } else if (Win32Window* that = GetThisFromHandle(window)) { + return that->MessageHandler(window, message, wparam, lparam); + } + + return DefWindowProc(window, message, wparam, lparam); +} + +LRESULT +Win32Window::MessageHandler(HWND hwnd, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + switch (message) { + case WM_DESTROY: + window_handle_ = nullptr; + Destroy(); + if (quit_on_close_) { + PostQuitMessage(0); + } + return 0; + + case WM_DPICHANGED: { + auto newRectSize = reinterpret_cast(lparam); + LONG newWidth = newRectSize->right - newRectSize->left; + LONG newHeight = newRectSize->bottom - newRectSize->top; + + SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, + newHeight, SWP_NOZORDER | SWP_NOACTIVATE); + + return 0; + } + case WM_SIZE: { + RECT rect = GetClientArea(); + if (child_content_ != nullptr) { + // Size and position the child window. + MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, + rect.bottom - rect.top, TRUE); + } + return 0; + } + + case WM_ACTIVATE: + if (child_content_ != nullptr) { + SetFocus(child_content_); + } + return 0; + + case WM_DWMCOLORIZATIONCOLORCHANGED: + UpdateTheme(hwnd); + return 0; + } + + return DefWindowProc(window_handle_, message, wparam, lparam); +} + +void Win32Window::Destroy() { + OnDestroy(); + + if (window_handle_) { + DestroyWindow(window_handle_); + window_handle_ = nullptr; + } + if (g_active_window_count == 0) { + WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); + } +} + +Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { + return reinterpret_cast( + GetWindowLongPtr(window, GWLP_USERDATA)); +} + +void Win32Window::SetChildContent(HWND content) { + child_content_ = content; + SetParent(content, window_handle_); + RECT frame = GetClientArea(); + + MoveWindow(content, frame.left, frame.top, frame.right - frame.left, + frame.bottom - frame.top, true); + + SetFocus(child_content_); +} + +RECT Win32Window::GetClientArea() { + RECT frame; + GetClientRect(window_handle_, &frame); + return frame; +} + +HWND Win32Window::GetHandle() { + return window_handle_; +} + +void Win32Window::SetQuitOnClose(bool quit_on_close) { + quit_on_close_ = quit_on_close; +} + +bool Win32Window::OnCreate() { + // No-op; provided for subclasses. + return true; +} + +void Win32Window::OnDestroy() { + // No-op; provided for subclasses. +} + +void Win32Window::UpdateTheme(HWND const window) { + DWORD light_mode; + DWORD light_mode_size = sizeof(light_mode); + LSTATUS result = RegGetValue(HKEY_CURRENT_USER, kGetPreferredBrightnessRegKey, + kGetPreferredBrightnessRegValue, + RRF_RT_REG_DWORD, nullptr, &light_mode, + &light_mode_size); + + if (result == ERROR_SUCCESS) { + BOOL enable_dark_mode = light_mode == 0; + DwmSetWindowAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE, + &enable_dark_mode, sizeof(enable_dark_mode)); + } +} diff --git a/examples/flutter/quickstart/windows/runner/win32_window.h b/examples/flutter/quickstart/windows/runner/win32_window.h new file mode 100644 index 00000000..e901dde6 --- /dev/null +++ b/examples/flutter/quickstart/windows/runner/win32_window.h @@ -0,0 +1,102 @@ +#ifndef RUNNER_WIN32_WINDOW_H_ +#define RUNNER_WIN32_WINDOW_H_ + +#include + +#include +#include +#include + +// A class abstraction for a high DPI-aware Win32 Window. Intended to be +// inherited from by classes that wish to specialize with custom +// rendering and input handling +class Win32Window { + public: + struct Point { + unsigned int x; + unsigned int y; + Point(unsigned int x, unsigned int y) : x(x), y(y) {} + }; + + struct Size { + unsigned int width; + unsigned int height; + Size(unsigned int width, unsigned int height) + : width(width), height(height) {} + }; + + Win32Window(); + virtual ~Win32Window(); + + // Creates a win32 window with |title| that is positioned and sized using + // |origin| and |size|. New windows are created on the default monitor. Window + // sizes are specified to the OS in physical pixels, hence to ensure a + // consistent size this function will scale the inputted width and height as + // as appropriate for the default monitor. The window is invisible until + // |Show| is called. Returns true if the window was created successfully. + bool Create(const std::wstring& title, const Point& origin, const Size& size); + + // Show the current window. Returns true if the window was successfully shown. + bool Show(); + + // Release OS resources associated with window. + void Destroy(); + + // Inserts |content| into the window tree. + void SetChildContent(HWND content); + + // Returns the backing Window handle to enable clients to set icon and other + // window properties. Returns nullptr if the window has been destroyed. + HWND GetHandle(); + + // If true, closing this window will quit the application. + void SetQuitOnClose(bool quit_on_close); + + // Return a RECT representing the bounds of the current client area. + RECT GetClientArea(); + + protected: + // Processes and route salient window messages for mouse handling, + // size change and DPI. Delegates handling of these to member overloads that + // inheriting classes can handle. + virtual LRESULT MessageHandler(HWND window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Called when CreateAndShow is called, allowing subclass window-related + // setup. Subclasses should return false if setup fails. + virtual bool OnCreate(); + + // Called when Destroy is called. + virtual void OnDestroy(); + + private: + friend class WindowClassRegistrar; + + // OS callback called by message pump. Handles the WM_NCCREATE message which + // is passed when the non-client area is being created and enables automatic + // non-client DPI scaling so that the non-client area automatically + // responds to changes in DPI. All other messages are handled by + // MessageHandler. + static LRESULT CALLBACK WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Retrieves a class instance pointer for |window| + static Win32Window* GetThisFromHandle(HWND const window) noexcept; + + // Update the window frame's theme to match the system theme. + static void UpdateTheme(HWND const window); + + bool quit_on_close_ = false; + + // window handle for top level window. + HWND window_handle_ = nullptr; + + // window handle for hosted content. + HWND child_content_ = nullptr; +}; + +#endif // RUNNER_WIN32_WINDOW_H_ diff --git a/thermion_dart/README.md b/thermion_dart/README.md index 5cbf0244..89b9b6bd 100644 --- a/thermion_dart/README.md +++ b/thermion_dart/README.md @@ -22,49 +22,3 @@ - camera/entity manipulation with mouse (desktop) and gestures (mobile) - skinning + morph animations -### Quickstart (Flutter) - -``` -_thermionViewer = await ThermionFlutterPlugin.createViewer(); - -// Geometry and models are represented as "entities". Here, we load a glTF -// file containing a plain cube. -// By default, all paths are treated as asset paths. To load from a file -// instead, use file:// URIs. -var entity = - await _thermionViewer!.loadGlb("assets/cube.glb", keepData: true); - -// Thermion uses a right-handed coordinate system where +Y is up and -Z is -// "into" the screen. -// By default, the camera is located at (0,0,0) looking at (0,0,-1); this -// would place it directly inside the cube we just loaded. -// -// Let's move the camera to (0,0,10) to ensure the cube is visible in the -// viewport. -await _thermionViewer!.setCameraPosition(0, 0, 10); - -// Without a light source, your scene will be totally black. Let's load a skybox -// (a cubemap image that is rendered behind everything else in the scene) -// and an image-based indirect light that has been precomputed from the same -// skybox. -await _thermionViewer!.loadSkybox("assets/default_env_skybox.ktx"); -await _thermionViewer!.loadIbl("assets/default_env_ibl.ktx"); - -// Finally, you need to explicitly enable rendering. Setting rendering to -// false is designed to allow you to pause rendering to conserve battery life -await _thermionViewer!.setRendering(true); -``` - -and then in your Flutter application: -``` - @override - Widget build(BuildContext context) { - return Stack(children: [ - if (_thermionViewer != null) - Positioned.fill( - child: ThermionWidget( - viewer: _thermionViewer!, - )), - ]); - } -``` \ No newline at end of file diff --git a/thermion_flutter/thermion_flutter/README.md b/thermion_flutter/thermion_flutter/README.md index 99708fc5..851773ec 100644 --- a/thermion_flutter/thermion_flutter/README.md +++ b/thermion_flutter/thermion_flutter/README.md @@ -15,3 +15,49 @@ discord contributors +### Quickstart (Flutter) + +``` +_thermionViewer = await ThermionFlutterPlugin.createViewer(); + +// Geometry and models are represented as "entities". Here, we load a glTF +// file containing a plain cube. +// By default, all paths are treated as asset paths. To load from a file +// instead, use file:// URIs. +var entity = + await _thermionViewer!.loadGlb("assets/cube.glb", keepData: true); + +// Thermion uses a right-handed coordinate system where +Y is up and -Z is +// "into" the screen. +// By default, the camera is located at (0,0,0) looking at (0,0,-1); this +// would place it directly inside the cube we just loaded. +// +// Let's move the camera to (0,0,10) to ensure the cube is visible in the +// viewport. +await _thermionViewer!.setCameraPosition(0, 0, 10); + +// Without a light source, your scene will be totally black. Let's load a skybox +// (a cubemap image that is rendered behind everything else in the scene) +// and an image-based indirect light that has been precomputed from the same +// skybox. +await _thermionViewer!.loadSkybox("assets/default_env_skybox.ktx"); +await _thermionViewer!.loadIbl("assets/default_env_ibl.ktx"); + +// Finally, you need to explicitly enable rendering. Setting rendering to +// false is designed to allow you to pause rendering to conserve battery life +await _thermionViewer!.setRendering(true); +``` + +and then in your Flutter application: +``` + @override + Widget build(BuildContext context) { + return Stack(children: [ + if (_thermionViewer != null) + Positioned.fill( + child: ThermionWidget( + viewer: _thermionViewer!, + )), + ]); + } +``` \ No newline at end of file