Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 984 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 984 Bytes

procthor_model_usd_converter

This repository is used to convert JSON files generated by procthor into USD files. Currently, it only supports Windows.

How to use this repo?

1. Clone the AI2-THOR repository

git clone https://github.com/allenai/ai2thor.git

2. Install the Unity 2020.3.25f1

3. Install the USD Package.

See the documentation of the package https://github.com/Unity-Technologies/usd-unity-sdk/blob/dev/package/com.unity.formats.usd/Documentation~/index.md. Don't forget to add the Assembly Definition References, see the https://github.com/allenai/ai2thor/tree/main/unity#add-third-party-plugin.

4. Enter the folder ai2thor/unity/Assets/Scripts, clone this repo here.

git clone https://github.com/zhiyuan-gao/procthor_model_usd_converter.git

5. Open Unity, add a new game object in an empty scene. Add the JsonReader script to the game object.

Input the json file path and the output folder's path. Click 'ReadJson'.