Comments (8)
Thanks!!!, now all examples work fine. ;)
from ossos.
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.
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.
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.
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.
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.
wups found the _setup.txt file in _res
from ossos.
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)
- Cannot import latest ReadyPlayerMe models
- Running examples HOT 7
- Error following setup instructions during `npm run dev` HOT 1
- [Suggestion] Store resources as submodule HOT 3
- Full body IK example
- Spring bone clamping? HOT 1
- Using GLTF2 loaded files with <primitive object=...> in ThreeJS Fiber HOT 3
- Invalid Retarget transformation on `Armature.offset.set()` for movement scaling & rotation
- Library build commands don't create `ossos.cjs.js`, must manually rename. HOT 1
- Development of v0.0.4 HOT 2
- [Suggestion] If you enable github pages, you can host the demos directly from the repo. HOT 4
- generic model from Mixamo not working HOT 39
- Why there are "poses" in gltf HOT 3
- Possible use standard glb ?
- demo resourses not work in example htmls HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ossos.