space-game/gameEditor/assets/example.scene/meshes/790b6a71-5425-47f2-ae64-f2d04e2e3c6d.json
Michael Mainguy 4c9e1f65c0 Add BabylonJS Editor workspace boilerplate
Includes:
- Editor project configuration and cache files
- Sample scene with example meshes and geometries
- Asset files (asteroid, base GLB models, environment map)
- Vite/TypeScript configuration for editor preview
- Editor script components for game objects

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 07:49:00 -06:00

734 lines
26 KiB
JSON

{
"meshes": [
{
"name": "Asteroid",
"id": "790b6a71-5425-47f2-ae64-f2d04e2e3c6d",
"uniqueId": 1764789858422,
"type": "Mesh",
"position": [
-33.08901451261646,
40.81207511231127,
-108.3875380136813
],
"rotationQuaternion": [
0,
0,
0,
1
],
"scaling": [
5,
5,
5
],
"localMatrix": [
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1
],
"isEnabled": true,
"isVisible": true,
"infiniteDistance": false,
"pickable": true,
"receiveShadows": true,
"billboardMode": 0,
"visibility": 1,
"alwaysSelectAsActiveMesh": false,
"checkCollisions": false,
"ellipsoid": [
0.5,
1,
0.5
],
"ellipsoidOffset": [
0,
0,
0
],
"doNotSyncBoundingInfo": false,
"isBlocker": false,
"sideOrientation": 0,
"isUnIndexed": false,
"geometryUniqueId": 1764789858423,
"geometryId": "9092e1b8-d64b-409a-9067-1f9373f47df3",
"subMeshes": null,
"materialUniqueId": 1764789858424,
"materialId": "81400b58-6fbe-4364-8c25-b5a03c536f05",
"metadata": {
"scripts": [
{
"enabled": true,
"key": "scripts/editorScripts/AsteroidComponent.ts",
"values": {
"linearVelocity": {
"type": "vector3",
"value": [
0,
0,
-30
]
},
"angularVelocity": {
"type": "vector3",
"value": [
0,
0,
0
]
},
"mass": {
"type": "number",
"value": 1
},
"targetId": {
"type": "string",
"description": "Reference to a TargetComponent node",
"value": ""
},
"targetMode": {
"type": "string",
"description": "orbit | moveToward | (empty)",
"value": ""
}
},
"_id": "750ffa11-d797-43f4-a63b-0e1592a4f6af"
}
],
"parentId": 1764789858421
},
"instances": [
{
"name": "Asteroid",
"id": "Asteroid",
"isEnabled": true,
"isVisible": true,
"isPickable": true,
"checkCollisions": false,
"position": [
66.2149304569587,
40.81207511231127,
-126.79009642287176
],
"scaling": [
5,
5,
5
],
"rotationQuaternion": [
0,
0,
0,
1
],
"metadata": {
"scripts": [
{
"key": "scripts/editorScripts/AsteroidComponent.ts",
"enabled": true,
"values": {
"linearVelocity": {
"type": "vector3",
"value": [
2,
0,
0
]
},
"angularVelocity": {
"type": "vector3",
"value": [
0,
0,
0
]
},
"mass": {
"type": "number",
"value": 1
},
"targetId": {
"type": "string",
"description": "Reference to a TargetComponent node",
"value": ""
},
"targetMode": {
"type": "string",
"description": "orbit | moveToward | (empty)",
"value": ""
}
},
"_id": "74563a74-be80-46fe-8dc3-189b03247c20"
}
],
"parentId": 1764789858421
},
"animations": [],
"ranges": [],
"uniqueId": 71
},
{
"name": "Asteroid",
"id": "Asteroid",
"isEnabled": true,
"isVisible": true,
"isPickable": true,
"checkCollisions": false,
"position": [
0,
-22.646529278627046,
-74.97825372352042
],
"scaling": [
5,
5,
5
],
"rotationQuaternion": [
0,
0,
0,
1
],
"metadata": {
"scripts": [
{
"key": "scripts/editorScripts/AsteroidComponent.ts",
"enabled": true,
"values": {
"linearVelocity": {
"type": "vector3",
"value": [
0,
0,
-2
]
},
"angularVelocity": {
"type": "vector3",
"value": [
0,
0,
0
]
},
"mass": {
"type": "number",
"value": 1
},
"targetId": {
"type": "string",
"description": "Reference to a TargetComponent node",
"value": ""
},
"targetMode": {
"type": "string",
"description": "orbit | moveToward | (empty)",
"value": ""
}
},
"_id": "79ae3cbb-7653-409c-9d0a-3e0b254e6731"
}
],
"parentId": 1764789858421
},
"animations": [],
"ranges": [],
"uniqueId": 71
}
],
"animations": [],
"ranges": [],
"layerMask": 268435455,
"alphaIndex": 1.7976931348623157e+308,
"hasVertexAlpha": false,
"overlayAlpha": 0,
"overlayColor": [
0,
0,
0
],
"renderOverlay": false,
"applyFog": true,
"delayLoadingFile": "assets/example.scene/geometries/9092e1b8-d64b-409a-9067-1f9373f47df3.babylonbinarymeshdata",
"boundingBoxMaximum": [
2.8008618354797363,
2.679150342941284,
2.679150104522705
],
"boundingBoxMinimum": [
-2.054845094680786,
-2.679150342941284,
-2.679150104522705
],
"_binaryInfo": {
"positionsAttrDesc": {
"count": 912,
"stride": 3,
"offset": 0,
"dataType": 1
},
"normalsAttrDesc": {
"count": 912,
"stride": 3,
"offset": 3648,
"dataType": 1
},
"uvsAttrDesc": {
"count": 608,
"stride": 2,
"offset": 7296,
"dataType": 1
},
"indicesAttrDesc": {
"count": 342,
"stride": 1,
"offset": 9728,
"dataType": 0
},
"subMeshesAttrDesc": {
"count": 1,
"stride": 5,
"offset": 11096,
"dataType": 0
}
},
"positions": null,
"normals": null,
"uvs": null,
"hasUVs": true,
"indices": null
}
],
"transformNodes": [],
"cameras": [],
"lights": [],
"materials": [
{
"tags": null,
"directIntensity": 1,
"emissiveIntensity": 1,
"environmentIntensity": 1,
"specularIntensity": 1,
"disableBumpMap": false,
"albedoTexture": {
"tags": null,
"url": "assets/editor-generated_aed030862c8a5064c80262817ba13a70.jpg",
"uOffset": 0,
"vOffset": 0,
"uScale": 1,
"vScale": -1,
"uAng": 0,
"vAng": 0,
"wAng": 0,
"uRotationCenter": 0.5,
"vRotationCenter": 0.5,
"wRotationCenter": 0.5,
"homogeneousRotationInUVTransform": false,
"isBlocking": true,
"name": "assets/editor-generated_aed030862c8a5064c80262817ba13a70.jpg",
"metadata": {},
"hasAlpha": false,
"getAlphaFromRGB": false,
"level": 1,
"coordinatesIndex": 0,
"optimizeUVAllocation": true,
"coordinatesMode": 0,
"wrapU": 1,
"wrapV": 1,
"wrapR": 1,
"anisotropicFilteringLevel": 4,
"isCube": false,
"is3D": false,
"is2DArray": false,
"gammaSpace": false,
"invertZ": false,
"lodLevelInAlpha": false,
"lodGenerationOffset": 0,
"lodGenerationScale": 0,
"linearSpecularLOD": false,
"isRenderTarget": false,
"animations": [],
"invertY": true,
"samplingMode": 3,
"_useSRGBBuffer": false,
"internalTextureLabel": "/Users/michaelmainguy/WebstormProjects/space-game/gameEditor",
"noMipmap": false
},
"ambientTextureStrength": 1,
"ambientTextureImpactOnAnalyticalLights": 0,
"emissiveTexture": {
"tags": null,
"url": "assets/editor-generated_aed030862c8a5064c80262817ba13a70.jpg",
"uOffset": 0,
"vOffset": 0,
"uScale": 1,
"vScale": -1,
"uAng": 0,
"vAng": 0,
"wAng": 0,
"uRotationCenter": 0.5,
"vRotationCenter": 0.5,
"wRotationCenter": 0.5,
"homogeneousRotationInUVTransform": false,
"isBlocking": true,
"name": "assets/editor-generated_aed030862c8a5064c80262817ba13a70.jpg",
"metadata": {},
"hasAlpha": false,
"getAlphaFromRGB": false,
"level": 1,
"coordinatesIndex": 0,
"optimizeUVAllocation": true,
"coordinatesMode": 0,
"wrapU": 1,
"wrapV": 1,
"wrapR": 1,
"anisotropicFilteringLevel": 4,
"isCube": false,
"is3D": false,
"is2DArray": false,
"gammaSpace": false,
"invertZ": false,
"lodLevelInAlpha": false,
"lodGenerationOffset": 0,
"lodGenerationScale": 0,
"linearSpecularLOD": false,
"isRenderTarget": false,
"animations": [],
"invertY": true,
"samplingMode": 3,
"_useSRGBBuffer": false,
"internalTextureLabel": "/Users/michaelmainguy/WebstormProjects/space-game/gameEditor",
"noMipmap": false
},
"metallic": 0,
"roughness": 1,
"metallicF0Factor": 0,
"metallicReflectanceColor": [
0.23755916953086853,
0.23755916953086853,
0.23755916953086853
],
"useOnlyMetallicFromMetallicReflectanceTexture": false,
"ambient": [
0,
0,
0
],
"albedo": [
1,
1,
1
],
"baseWeight": 1,
"reflectivity": [
1,
1,
1
],
"reflection": [
1,
1,
1
],
"emissive": [
0.3999999761581421,
0.3999999761581421,
0.3999999761581421
],
"microSurface": 1,
"useLightmapAsShadowmap": false,
"useAlphaFromAlbedoTexture": false,
"forceAlphaTest": false,
"alphaCutOff": 0.4,
"useSpecularOverAlpha": true,
"useMicroSurfaceFromReflectivityMapAlpha": false,
"useRoughnessFromMetallicTextureAlpha": true,
"useRoughnessFromMetallicTextureGreen": false,
"useMetallnessFromMetallicTextureBlue": false,
"useAmbientOcclusionFromMetallicTextureRed": false,
"useAmbientInGrayScale": false,
"useAutoMicroSurfaceFromReflectivityMap": false,
"usePhysicalLightFalloff": true,
"useGLTFLightFalloff": false,
"useRadianceOverAlpha": true,
"useObjectSpaceNormalMap": false,
"useParallax": false,
"useParallaxOcclusion": false,
"parallaxScaleBias": 0.05,
"disableLighting": false,
"forceIrradianceInFragment": false,
"maxSimultaneousLights": 32,
"invertNormalMapX": false,
"invertNormalMapY": false,
"twoSidedLighting": true,
"useAlphaFresnel": false,
"useLinearAlphaFresnel": false,
"forceNormalForward": false,
"enableSpecularAntiAliasing": true,
"useHorizonOcclusion": true,
"useRadianceOcclusion": true,
"unlit": false,
"applyDecalMapAfterDetailMap": false,
"id": "81400b58-6fbe-4364-8c25-b5a03c536f05",
"name": "Material.001",
"metadata": {},
"checkReadyOnEveryCall": false,
"checkReadyOnlyOnce": false,
"state": "",
"alpha": 1,
"backFaceCulling": false,
"cullBackFaces": true,
"_alphaMode": [
2
],
"_needDepthPrePass": false,
"disableDepthWrite": false,
"disableColorWrite": false,
"forceDepthWrite": false,
"depthFunction": 0,
"separateCullingPass": false,
"fogEnabled": true,
"pointSize": 1,
"zOffset": 0,
"zOffsetUnits": 0,
"pointsCloud": false,
"fillMode": 0,
"_isVertexOutputInvariant": false,
"transparencyMode": 0,
"stencil": {
"tags": null,
"func": 519,
"backFunc": 519,
"funcRef": 1,
"funcMask": 255,
"opStencilFail": 7680,
"opDepthFail": 7680,
"opStencilDepthPass": 7681,
"backOpStencilFail": 7680,
"backOpDepthFail": 7680,
"backOpStencilDepthPass": 7681,
"mask": 255,
"enabled": false
},
"uniqueId": 1764789858424,
"plugins": {
"PBRBRDFConfiguration": {
"tags": null,
"useEnergyConservation": true,
"useSmithVisibilityHeightCorrelated": true,
"useSphericalHarmonics": true,
"useSpecularGlossinessInputEnergyConservation": true,
"mixIblRadianceWithIrradiance": true,
"useLegacySpecularEnergyConservation": true,
"baseDiffuseModel": 0,
"dielectricSpecularModel": 0,
"conductorSpecularModel": 0,
"name": "PBRBRDF",
"priority": 90,
"resolveIncludes": false,
"registerForExtraEvents": false
},
"PBRClearCoatConfiguration": {
"tags": null,
"isEnabled": false,
"intensity": 1,
"roughness": 0,
"indexOfRefraction": 1.5,
"useRoughnessFromMainTexture": true,
"remapF0OnInterfaceChange": true,
"isTintEnabled": false,
"tintColor": [
1,
1,
1
],
"tintColorAtDistance": 1,
"tintThickness": 1,
"name": "PBRClearCoat",
"priority": 100,
"resolveIncludes": false,
"registerForExtraEvents": false
},
"PBRIridescenceConfiguration": {
"tags": null,
"isEnabled": false,
"intensity": 1,
"minimumThickness": 100,
"maximumThickness": 400,
"indexOfRefraction": 1.3,
"name": "PBRIridescence",
"priority": 110,
"resolveIncludes": false,
"registerForExtraEvents": false
},
"PBRAnisotropicConfiguration": {
"tags": null,
"isEnabled": false,
"intensity": 1,
"direction": [
1,
0
],
"legacy": false,
"name": "PBRAnisotropic",
"priority": 110,
"resolveIncludes": false,
"registerForExtraEvents": false
},
"PBRSheenConfiguration": {
"tags": null,
"isEnabled": false,
"linkSheenWithAlbedo": false,
"intensity": 1,
"color": [
1,
1,
1
],
"useRoughnessFromMainTexture": true,
"albedoScaling": false,
"name": "Sheen",
"priority": 120,
"resolveIncludes": false,
"registerForExtraEvents": false
},
"PBRSubSurfaceConfiguration": {
"tags": null,
"isRefractionEnabled": false,
"isTranslucencyEnabled": false,
"isDispersionEnabled": false,
"isScatteringEnabled": false,
"_scatteringDiffusionProfileIndex": 0,
"refractionIntensity": 1,
"translucencyIntensity": 1,
"useAlbedoToTintRefraction": false,
"useAlbedoToTintTranslucency": false,
"indexOfRefraction": 1.5,
"_volumeIndexOfRefraction": -1,
"invertRefractionY": false,
"linkRefractionWithTransparency": false,
"minimumThickness": 0,
"maximumThickness": 1,
"useThicknessAsDepth": false,
"tintColor": [
1,
1,
1
],
"tintColorAtDistance": 1,
"dispersion": 0,
"diffusionDistance": [
1,
1,
1
],
"useMaskFromThicknessTexture": false,
"useGltfStyleTextures": true,
"applyAlbedoAfterSubSurface": false,
"legacyTranslucency": false,
"name": "PBRSubSurface",
"priority": 130,
"resolveIncludes": false,
"registerForExtraEvents": true
},
"DetailMapConfiguration": {
"tags": null,
"diffuseBlendLevel": 1,
"roughnessBlendLevel": 1,
"bumpLevel": 1,
"normalBlendMethod": 0,
"isEnabled": false,
"name": "DetailMap",
"priority": 140,
"resolveIncludes": false,
"registerForExtraEvents": false
}
},
"customType": "BABYLON.PBRMaterial"
}
],
"geometries": {
"boxes": [],
"spheres": [],
"cylinders": [],
"toruses": [],
"grounds": [],
"planes": [],
"torusKnots": [],
"vertexData": []
},
"metadata": {
"scripts": [
{
"enabled": true,
"key": "scripts/editorScripts/AsteroidComponent.ts",
"values": {
"linearVelocity": {
"type": "vector3",
"value": [
0,
0,
-30
]
},
"angularVelocity": {
"type": "vector3",
"value": [
0,
0,
0
]
},
"mass": {
"type": "number",
"value": 1
},
"targetId": {
"type": "string",
"description": "Reference to a TargetComponent node",
"value": ""
},
"targetMode": {
"type": "string",
"description": "orbit | moveToward | (empty)",
"value": ""
}
},
"_id": "750ffa11-d797-43f4-a63b-0e1592a4f6af"
}
],
"parentId": 1764789858421
},
"basePoseMatrix": [
-1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1
]
}