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

Missing Concrete Examples of Usage #49

Open micaelparadox opened 3 months ago

micaelparadox commented 3 months ago

Missing Examples, I'm trying to integrate it to my application using nodejs and express ex i would like a guide since i add your lib in my project, somehow I'm failing to load

@Miorey

image

image

Miorey commented 3 months ago

Hello @micaelparadox I try to make a video of the usage asap. Do you have a public branch of what you did ? Or can you invite me to your repo ?

micaelparadox commented 3 months ago

https://github.com/micaelparadox/chardev-wotlk/tree/error-branch

in this commit hash my attempt to run such project so that i can display some sample.

https://github.com/micaelparadox/chardev-wotlk/commit/3f33f09190760bb39907a546e09debbf393c65be

there is a branch and invited you tho

micaelparadox commented 3 months ago

image

Connection refused, haha. I managed to bypass the previous error by exporting the ZamModelViewer class, but I'm still a bit lost on how to implement the view modeling. My plan is to display models based on my items in the database, in a way that's similar to the retail armory from back in the day. So, when someone is creating a character, they would see a 3D model showing off the gear. Basically, in this dashboard, I'd like to display a basic character model to test it out.

Miorey commented 3 months ago

@micaelparadox I take a look on it tomorrow.

Miorey commented 3 months ago

Hey @micaelparadox I made a little upgrade of the lib to add a more simple usage of the demo so here are steps by steps what you have to do:

git clone https://github.com/Miorey/wow-model-viewer 
cd wow-model-viewer
git switch demo
docker-compose up
http-server ./

If you haven’t docker-compose for docker compose use this:

docker compose up

npm install --global http-server is required if not already done.

The demo works for me here: http://127.0.0.1:8080/demo.html

If the demo works to me the lib should work in your project. If it already don't I take a look to your project.

micaelparadox commented 3 months ago

Thanks, I'll check it out!

On Wed, 8 May 2024 at 13:05 Clement Balea @.***> wrote:

Hey @micaelparadox https://github.com/micaelparadox I made a little upgrade of the lib to add a more simple usage of the demo so here are steps by steps what you have to do:

git clone https://github.com/Miorey/wow-model-viewer git switch demo docker-compose up http-server ./

If you haven’t docker-compose for docker compose use this:

docker compose up

npm install --global http-server is required if not already done.

The demo works for me here: http://127.0.0.1:8080/demo.html

If the demo works to me the lib should work in your project. If it already don't I take a look to your project.

— Reply to this email directly, view it on GitHub https://github.com/Miorey/wow-model-viewer/issues/49#issuecomment-2100915969, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQRZHX7YYMBZSAACVT3NLYDZBJEMHAVCNFSM6AAAAABHJ6B7QOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQHEYTKOJWHE . You are receiving this because you were mentioned.Message ID: @.***>