Skip to content

deanalvero/dota2-xr-heroes

Repository files navigation

Dota 2 XR Heroes

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.

Testing Android XR with Dota 2 XR Heroes

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.

Instructions

GLB Model

  1. Download the hero models from the Dota 2 Item Workshop page.
  2. Import the models to Blender.
  3. From Blender, export the models to glb format.
  4. Add the models to this project in the assets/models path.

Json Data

  1. Use Google Chrome and enable Developer Tools.
  2. Visit the Dota 2 heroes page.
  3. Click on the hero you want.
  4. Find the response that returns the hero data.
  5. 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.

Image URL

  1. Use Google Chrome and enable Developer Tools.
  2. Visit the Dota 2 heroes page.
  3. Click on the hero you want.
  4. Find the response that shows where the ability images are stored.
  5. Update the ABILITY_IMAGE_URL in UrlConstants.

Notes

Enjoy! If you need an Android XR developer, feel free to reach out to me. I am open to any opportunities.

About

An Android XR app that lets you view Dota 2 hero data and model in an XR headset.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages