Skip to content

Commit

Permalink
Merge pull request #279 from asam-ev/276-fix-indentation-in-example-f…
Browse files Browse the repository at this point in the history
…iles

276 fix indentation in example files
  • Loading branch information
ClemensLinnhoff authored Jan 7, 2025
2 parents 8edda7a + fb53a34 commit 00ecc34
Show file tree
Hide file tree
Showing 17 changed files with 6,855 additions and 6,763 deletions.
52 changes: 26 additions & 26 deletions examples/environment_example/environment_example.xoma
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"metadata": {
"name": "environment_example",
"description": "This is an example environment with a short road.",
"uuid": "13426059-a91e-44d2-aa0e-3b4244e759aa",
"assetVersion": "1.0.0",
"openMaterialVersion": "1.0.0",
"copyright": "(C) 2024 Persival GmbH;",
"license": "MPL-2.0",
"author": "[email protected]",
"modelCreationTool": "Blender",
"creationDate": "20241213T160000Z",
"modelingMethod": "Modeled freely without real world counterpart",
"validationDescription": "Since this is a fictional environment, the geometry was not validated. Standard compliance was verified manually.",
"assetType": "object",
"objectClass": "environment",
"animated": false,
"pbrMaterialWorkflow": "metallic",
"triangleCount": 50760,
"meshCount": 63,
"textureResolutions": ["1K"],
"normalMapFormat": "OpenGL",
"boundingBox": {
"x" : [-83.81, 32.4394],
"y" : [-23.6508, 29.3334],
"z" : [-0.749803, 12.3761]
"metadata": {
"name": "environment_example",
"description": "This is an example environment with a short road.",
"uuid": "13426059-a91e-44d2-aa0e-3b4244e759aa",
"assetVersion": "1.0.0",
"openMaterialVersion": "1.0.0",
"copyright": "(C) 2024 Persival GmbH;",
"license": "MPL-2.0",
"author": "[email protected]",
"modelCreationTool": "Blender",
"creationDate": "20241213T160000Z",
"modelingMethod": "Modeled freely without real world counterpart",
"validationDescription": "Since this is a fictional environment, the geometry was not validated. Standard compliance was verified manually.",
"assetType": "object",
"objectClass": "environment",
"animated": false,
"pbrMaterialWorkflow": "metallic",
"triangleCount": 50760,
"meshCount": 63,
"textureResolutions": ["1K"],
"normalMapFormat": "OpenGL",
"boundingBox": {
"x": [-83.81, 32.4394],
"y": [-23.6508, 29.3334],
"z": [-0.749803, 12.3761]
}
}
}
}
24 changes: 19 additions & 5 deletions examples/example_asset.xoma
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,30 @@
"pbrMaterialWorkflow": "metallic",
"triangleCount": 100000,
"meshCount": 10,
"textureResolutions": ["2K"],
"textureResolutions": [
"2K"
],
"normalMapFormat": "OpenGL",
"boundingBox": {
"x" : [-1, 1],
"y" : [-1, 1],
"z" : [0.0, 3]
"x": [
-1,
1
],
"y": [
-1,
1
],
"z": [
0.0,
3
]
}
},
"materialMappingUri": "example_mapping.xomm",
"materialTextureAssignment": [
["Material_Cube", "checker_xom.png"]
[
"Material_Cube",
"checker_xom.png"
]
]
}
32 changes: 16 additions & 16 deletions examples/example_mapping.xomm
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"metadata": {
"name": "example_mapping",
"description": "This is an example for a material mapping table. This file can be shared between multiple assets.",
"uuid": "c492bda2-7c84-43e6-be19-03115545e844",
"mappingVersion": "1.0.0",
"openMaterialVersion": "1.0.0",
"copyright": "(C) 2023-2024, Example Company",
"license": "MPL-2.0",
"author": "[email protected]",
"creationDate": "20240703T101728Z"
},
"materialMapping": [
["Material_Sphere", "example_material.xomp", "white aluminum"],
["rgb:255;0;0", "example_material.xomp", "white aluminum"],
["rgb:0;11;255", "example_material_2.xomp", "black aluminum"]
]
"metadata": {
"name": "example_mapping",
"description": "This is an example for a material mapping table. This file can be shared between multiple assets.",
"uuid": "c492bda2-7c84-43e6-be19-03115545e844",
"mappingVersion": "1.0.0",
"openMaterialVersion": "1.0.0",
"copyright": "(C) 2023-2024, Example Company",
"license": "MPL-2.0",
"author": "[email protected]",
"creationDate": "20240703T101728Z"
},
"materialMapping": [
["Material_Sphere", "example_material.xomp", "white aluminum"],
["rgb:255;0;0", "example_material.xomp", "white aluminum"],
["rgb:0;11;255", "example_material_2.xomp", "black aluminum"]
]
}
80 changes: 40 additions & 40 deletions examples/example_material.xomp
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
{
"metadata": {
"name": "aluminum",
"description": "aluminum material",
"uuid": "fe7d7070-50e5-45f1-9f26-58ecacb6ac5e",
"materialVersion": "1.0.0",
"creationDate": "20240703T101728Z",
"openMaterialVersion": "1.0.0",
"copyright": "(C) 2023-2024, Example Company",
"license": "MPL-2.0",
"author": "[email protected]"
},
"materialProperties": {
"surfaceRoughness": {
"surfaceHeightRms": 0.8,
"surfaceCorrelationLength": 1.0,
"source": "estimate"
"metadata": {
"name": "aluminum",
"description": "aluminum material",
"uuid": "fe7d7070-50e5-45f1-9f26-58ecacb6ac5e",
"materialVersion": "1.0.0",
"creationDate": "20240703T101728Z",
"openMaterialVersion": "1.0.0",
"copyright": "(C) 2023-2024, Example Company",
"license": "MPL-2.0",
"author": "[email protected]"
},
"emissivityData": {
"emissivityCoefficient": 0.07,
"temperature": 300.0,
"source": "internet: https://www.engineeringtoolbox.com/emissivity-coefficients-d_447.html"
},
"elasticityData": {
"youngsModulus": 70e9,
"poissonsRatio": 0.35,
"source": "internet: https://en.wikipedia.org/wiki/Aluminium"
},
"densityData": {
"density": 2699.0,
"source": "internet: https://en.wikipedia.org/wiki/Aluminium"
},
"electromagneticPropertiesUri": "example_material_emp.xompt",
"opticalPropertiesUri": "example_material_optical.xompt",
"brdfUris": [
"example_material_camera_brdf.xompt",
"example_material_lidar_brdf.xompt"
],
"reflectanceUris": [
"example_material_radar_reflectance.xompt"
]
}
"materialProperties": {
"surfaceRoughness": {
"surfaceHeightRms": 0.8,
"surfaceCorrelationLength": 1.0,
"source": "estimate"
},
"emissivityData": {
"emissivityCoefficient": 0.07,
"temperature": 300.0,
"source": "internet: https://www.engineeringtoolbox.com/emissivity-coefficients-d_447.html"
},
"elasticityData": {
"youngsModulus": 70e9,
"poissonsRatio": 0.35,
"source": "internet: https://en.wikipedia.org/wiki/Aluminium"
},
"densityData": {
"density": 2699.0,
"source": "internet: https://en.wikipedia.org/wiki/Aluminium"
},
"electromagneticPropertiesUri": "example_material_emp.xompt",
"opticalPropertiesUri": "example_material_optical.xompt",
"brdfUris": [
"example_material_camera_brdf.xompt",
"example_material_lidar_brdf.xompt"
],
"reflectanceUris": [
"example_material_radar_reflectance.xompt"
]
}
}
64 changes: 32 additions & 32 deletions examples/example_material_2.xomp
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"metadata": {
"name": "another example",
"description": "Second example material to showcase ASAM OpenMATERIAL 3D assignment and mapping",
"uuid": "807db46a-3965-4e5d-83d4-3ddebad07dc3",
"materialVersion": "1.0.0",
"creationDate": "20241024T110000Z",
"openMaterialVersion": "1.0.0",
"copyright": "(C) 2023-2024, Example Company",
"license": "MPL-2.0",
"author": "[email protected]"
},
"materialProperties": {
"surfaceRoughness": {
"surfaceHeightRms": 0.5,
"surfaceCorrelationLength": 0.3,
"source": "estimate"
"metadata": {
"name": "another example",
"description": "Second example material to showcase ASAM OpenMATERIAL 3D assignment and mapping",
"uuid": "807db46a-3965-4e5d-83d4-3ddebad07dc3",
"materialVersion": "1.0.0",
"creationDate": "20241024T110000Z",
"openMaterialVersion": "1.0.0",
"copyright": "(C) 2023-2024, Example Company",
"license": "MPL-2.0",
"author": "[email protected]"
},
"emissivityData": {
"emissivityCoefficient": 0.07,
"temperature": 300.0,
"source": "internet: https://www.engineeringtoolbox.com/emissivity-coefficients-d_447.html"
},
"elasticityData": {
"youngsModulus": 70e9,
"poissonsRatio": 0.35,
"source": "internet: https://en.wikipedia.org/wiki/Aluminium"
},
"densityData": {
"density": 2699.0,
"source": "internet: https://en.wikipedia.org/wiki/Aluminium"
},
"electromagneticPropertiesUri": "example_material_emp.xompt"
}
"materialProperties": {
"surfaceRoughness": {
"surfaceHeightRms": 0.5,
"surfaceCorrelationLength": 0.3,
"source": "estimate"
},
"emissivityData": {
"emissivityCoefficient": 0.07,
"temperature": 300.0,
"source": "internet: https://www.engineeringtoolbox.com/emissivity-coefficients-d_447.html"
},
"elasticityData": {
"youngsModulus": 70e9,
"poissonsRatio": 0.35,
"source": "internet: https://en.wikipedia.org/wiki/Aluminium"
},
"densityData": {
"density": 2699.0,
"source": "internet: https://en.wikipedia.org/wiki/Aluminium"
},
"electromagneticPropertiesUri": "example_material_emp.xompt"
}
}
Loading

0 comments on commit 00ecc34

Please sign in to comment.