Miorey / wow-model-viewer

A library for displaying interactive 3D models of World of Warcraft characters, items, and NPCs on your website using data from Wowhead. Customize the display with control over camera angles and animation.
https://miorey.github.io/wow-model-viewer/
53 stars 31 forks source link

Add an alternative for SOD (classic) items #58

Open yrodrigez opened 1 month ago

yrodrigez commented 1 month ago

There are some items that are failing when fetch. IE: https://www.wowhead.com/classic/item=220588/cobra-fang-claw#dropped-by

This fails: https://wow.zamimg.com/modelviewer/live/meta/item/679611.json

https://www.wowhead.com/classic/item=220750/fractured-mind-pauldrons https://wow.zamimg.com/modelviewer/live/meta/armor/3/680018.json

@Miorey do you have any alternative for this?

Helias commented 1 month ago

you could impleement a mechanism that checks if the call fails, if it fails it could rely on classic instead of live wow.zamimg.com/modelviewer/classic/meta/item/679611.json

same for wotlk/tbc

Miorey commented 4 weeks ago

@Helias @yrodrigez I think I already implement something inside the lib I will check. A bit busy those times sorry for delay

Miorey commented 3 weeks ago

@yrodrigez I added a way to handle classics view. I merged the new features to master and also a demo https://github.com/Miorey/wow-model-viewer/tree/demo If you can take a look before i push the new npm version it will be cool.