An Android app that works in Android XR and lets users view Dota 2 hero data and hero model. In Home Space mode, only data is shown. In Full Space mode, users can also view and manipulate a 3D hero model.
I don't own the model, json data, and images so they are not committed in this repo. Instructions on how to obtain them are available below.
- Download the hero models from the Dota 2 Item Workshop page.
- Import the models to Blender.
- From Blender, export the models to glb format.
- Add the models to this project in the assets/models path.
- Use Google Chrome and enable Developer Tools.
- Visit the Dota 2 heroes page.
- Click on the hero you want.
- Find the response that returns the hero data.
- Save the hero data in the assets/herodata.json.
Note: The format of hero data may change at any time. The data classes in data.model will need to be updated accordingly.
- Use Google Chrome and enable Developer Tools.
- Visit the Dota 2 heroes page.
- Click on the hero you want.
- Find the response that shows where the ability images are stored.
- Update the ABILITY_IMAGE_URL in UrlConstants.
Enjoy! If you need an Android XR developer, feel free to reach out to me. I am open to any opportunities.
