Git Product home page Git Product logo

Comments (8)

delmohf avatar delmohf commented on May 11, 2024 1

Thanks!!!, now all examples work fine. ;)

from ossos.

sketchpunk avatar sketchpunk commented on May 11, 2024

Hopefully that error is in response to the _res folder being empty. Look at /examples/_res/_setup.txt You'll need to download the animations + models separately. They can get pretty big so I didn't want them to be included in the ossos repo. All you'll really need from the res repo is the anim folder, models/nabba & models/tina. The rest of the models aren't being used in the ossos examples but you can download them if you want other things to play with.

If res is the issue there should be some sort of 404 or not found error, so not sure if this will fix the specific error your getting, but I've only tested thing with chrome on windows, so if your using a different browser + OS, the error messages will be different then what I'm used to.

from ossos.

delmohf avatar delmohf commented on May 11, 2024

Thanks! Ok, I cloned the res repository and put its content in examples_res then run:

npm run dev

but only these examples worked:

http://localhost:3000/examples/threejs/000_gltf2_mesh.html (just the load of nabba.gltf)
http://localhost:3000/examples/threejs/007_ik_solvers.html

with all other examples I got a JavaScript error in devtools console, e.g.:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '0') at Object.multiply8 (quat2.js:596)

Are they errors to be fixed or should I do something else to see the examples in the browser????

PS: I am using Chrome and Windows Subsystem for Linux (WSL) so vite webserver is running on Ubuntu.

from ossos.

sketchpunk avatar sketchpunk commented on May 11, 2024

Only 001_skin_dq.html & 001_skin_dqt.html are using quat2.js which is from the gl-matrix math library. The other examples shouldn't have that error since the rest of the examples are using Matrix Skinning, not dual quaternions.

At this point I'm not sure what the problem might be, maybe vite or the whole dev setup doesn't work well under ubuntu.

from ossos.

sketchpunk avatar sketchpunk commented on May 11, 2024

I just noticed that examples on my end don't work either. There was a bug that went by unnoticed from my last commit. Its all fixed up in the latest commit. Hopefully this will fix the issues you where experiencing.

It was related to me changing bone.pidx into a non-nullable type, some places where still testing for nulls which resulted in certain conditions running when they shouldn't which lead to weird errors coming from gl-matrix.

from ossos.

arpu avatar arpu commented on May 11, 2024

this is still a problem on latest master?

i get

index.ts:512          GET http://localhost:3000/examples/_res/models/nabba/nabba.gltf net::ERR_ABORTED 404 (Not Found)
fetch @ index.ts:512
(anonymous) @ 000_gltf2_mesh.html?html-proxy&index=0.js:14
load (async)
(anonymous) @ 000_gltf2_mesh.html?html-proxy&index=0.js:10
UtilGltf2.js:25 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'getMesh')
    at Function.loadMesh (UtilGltf2.js:25:24)
    at 000_gltf2_mesh.html?html-proxy&index=0.js:15:29

from ossos.

arpu avatar arpu commented on May 11, 2024

wups found the _setup.txt file in _res

from ossos.

sketchpunk avatar sketchpunk commented on May 11, 2024

Yea, the res folder is kinda big with lots of binary which makes me not want to include it into the repo. Think i'm going to make an Index page for examples that links to everything, plus leave a note that people will need to download the res repo separately for meshes, animations & textures.

from ossos.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.