Skip to content

Commit 9b4875a

Browse files
authored
Merge pull request #126145 from MalcolmTyrrell/conversionResultFile
Section on the result file.
2 parents 327fbb9 + 7132bcf commit 9b4875a

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

articles/remote-rendering/how-tos/conversion/get-information.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,38 @@
11
---
2-
title: Get information about a converted model
3-
description: Description of all model conversion parameters
2+
title: Get information about conversions
3+
description: Get information about conversions
44
author: malcolmtyrrell
55
ms.author: matyrr
66
ms.date: 03/05/2020
77
ms.topic: how-to
88
---
99

10-
# Get information about a converted model
10+
# Get information about conversions
1111

12-
The arrAsset file produced by the conversion service is solely intended for consumption by the rendering service. There may be times, however, when you want to access information about a model without starting a rendering session. Therefore, the conversion service places a JSON file beside the arrAsset file in the output container. For example, if a file `buggy.gltf` is converted, the output container will contain a file called `buggy.info.json` beside the converted asset `buggy.arrAsset`. It contains information about the source model, the converted model, and about the conversion itself.
12+
## Information about a conversion: The result file
13+
14+
When the conversion service converts an asset, it writes a summary of any issues into a "result file".
15+
For example, if a file `buggy.gltf` is converted, the output container will contain a file called `buggy.result.json`.
16+
17+
The result file lists any errors and warnings that occurred during the conversion and gives a result summary, which is one of `succeeded`, `failed` or `succeeded with warnings`.
18+
The result file is structured as a JSON array of objects, each of which has a string property that is one of `warning`, `error`, `internal warning`, `internal error`, and `result`.
19+
There will be at most one error (either `error` or `internal error`) and there will always be one `result`.
20+
21+
## Example *result* file
22+
23+
The following example describes a conversion that successfully generated an arrAsset.
24+
However, since there was a missing texture, the resulting arrAsset may not be as intended.
25+
26+
```JSON
27+
[
28+
{"warning":"4004","title":"Missing texture","details":{"texture":"buggy_baseColor.png","material":"buggy_col"}},
29+
{"result":"succeeded with warnings"}
30+
]
31+
```
32+
33+
## Information about a converted model: The info file
34+
35+
The arrAsset file produced by the conversion service is solely intended for consumption by the rendering service. There may be times, however, when you want to access information about a model without starting a rendering session. To support this workflow, the conversion service places a JSON file beside the arrAsset file in the output container. For example, if a file `buggy.gltf` is converted, the output container will contain a file called `buggy.info.json` beside the converted asset `buggy.arrAsset`. It contains information about the source model, the converted model, and about the conversion itself.
1336

1437
## Example *info* file
1538

@@ -120,6 +143,12 @@ This section records information calculated from the converted asset.
120143
* `recenteringOffset`: When the `recenterToOrigin` option in the [ConversionSettings](configure-model-conversion.md) is enabled, this value is the translation that would move the converted model back to its original position.
121144
* `boundingBox`: The bounds of the model.
122145

146+
## Deprecated features
147+
148+
The conversion service writes the files `stdout.txt` and `stderr.txt` to the output container, and these had been the only source of warnings and errors.
149+
These files are now deprecated. Instead, please use
150+
[result files](#information-about-a-conversion-the-result-file) for this purpose.
151+
123152
## Next steps
124153

125154
* [Model conversion](model-conversion.md)

articles/remote-rendering/how-tos/conversion/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
href: configure-model-conversion.md
99
- name: Override materials during model conversion
1010
href: override-materials.md
11-
- name: Get information about a converted model
11+
- name: Get information about conversions
1212
href: get-information.md

0 commit comments

Comments
 (0)