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/
56 stars 32 forks source link

failing load models #39

Closed Miorey closed 10 months ago

Miorey commented 11 months ago

wowhead decide to change it cors policies for that reason the models are no more available I will fix this issue but it will take a while

LichKing255 commented 11 months ago

confirm

Ataxia123 commented 10 months ago

Hey any updates on this issue? i tried to use the branch with the I guess experimental fixes but couldn't get it to work. any suggestions?

Miorey commented 10 months ago

Hi @Ataxia123 I will push a new version Monday or Tuesday with the fix.

Miorey commented 10 months ago

In the last version I explain how to bypass cors policies. Please read the documentation carefully. I close the issue.

Miorey commented 10 months ago

To fix the issue you will need to store the files from zaming. To do this locally you can use my bypass cors docker image

version: '3'

services:
  bypass-cors-policies:
    image: miorey/bypass-cors-policies:v1
    environment:
      - SERVER_NAME=https://wow.zamimg.com
    volumes:
      - ./storage:/usr/src/app/storage
    ports:
      - "2999:3000"

in your html file change

    <script src="http://localhost:2999/modelviewer/live/viewer/viewer.min.js"></script>

and

    window.CONTENT_PATH = `http://localhost:2999/modelviewer/live/`