-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merging upstream from XRPackage #46
base: master
Are you sure you want to change the base?
Conversation
…595c7ad5ce from XRPackage
…03a59a8e2eb from XRPackage small avatars code cleanup - commit aa2c0ddf69855415a0a1979f60ccf8056fdf345b from XRPackage Clean up spring bone manager promise - commit f930d12b4e8f468141ddce708a1f0474e7c6f78e from XRPackage
…7887f2c8c056ff455 from XRPackage
update three.module.js - commit a23f131e7a643de29c07d3826076e1cd0d00889f from XRPackage Major xrpackage refactoring - commit 09524374d5bdc7535e946b5742c520550def3d7d from XRPackage Update three.module.js - commit d76fe1513ba2908e8425f6ccdfb42608c56cf46e from XRPackage Clean up framebuffer latching - commit 71e86a10ccd7d6d26c26c371abe651d48f786e4c from XRPackage Add THREE.js WebGLRenderer getFramebuffer method - commit 1b13f447577669b8274b2924df7cc1e69014169b from XRPackage
Add OrbitControls.js - commit 5837f95e53bacef1721b14353a5e48ec2436c18c from XRPackage
Thanks!! This looks correct on a first look -- we'll need to test it with some headsets to make sure it's working. Once that is done we can probably move the |
Awesome, please let me know if there's anything I missed! |
Unfortunately this did not load for me (opening
Did it load for you? |
If The proper way to do that is probably to use an |
Got it, will take a further look! Thanks for the heads up :) |
Hey @avaer, I added some fixes for those module imports by adding However, when I run locally, I still get these errors: bmfont.js:11 Uncaught ReferenceError: THREE is not defined
at Object.1../lib/utils (bmfont.js:11)
at o (bmfont.js:1)
at r (bmfont.js:1)
at bmfont.js:1
1../lib/utils @ bmfont.js:11
o @ bmfont.js:1
r @ bmfont.js:1
(anonymous) @ bmfont.js:1
GLTFLoader.js:9 Uncaught ReferenceError: THREE is not defined
at GLTFLoader.js:9 The var THREE = require('./three.js') but this doesn't work since For the If you know any simple fixes for these errors let me know and I'll get right on them! Thanks :) |
For THREE.js on the frontend we usually do
https://github.com/webaverse/xrpackage/blob/3a014baeb6526221289535967b8cba8fc9a6d5b4/run.html#L64 Note that we probably shouldn't set it as a |
Either we should pull the GLTFLoader from the models-loader page, or not use models-loader and rewrite support into this library. The former is far easier. |
We were able to fix the issue by changing imports to use |
This worries me a little bit. The purpose of the PR is to make sure that the working avatars code from |
Yeah I definitely agree, but I think the main issue is that the For example, the Really any solutions you have are greatly appreciated! I'm sure there's probably a more correct way to fix things, but I'm not exactly sure what that might be. 😅 |
This repo has everything already patched though right? https://github.com/webaverse/xrpackage/tree/master/xrpackage/avatars The point is that this was already overhauled over there. We just need to move those changes into this repo. |
5fa2a14
to
592a790
Compare
I think this commit should be good, added |
This looks good, it just needs more thorough testing to go through all of the avatars to make sure they are working correctly in WebXR. |
@yahengsu Does this mean we can remove the [WIP] tag? |
Oh yeah, absolutely haha |
Updated avatar files based on previous commits on the files in the XRPackage repo. Based on issue #36 on the XRPackage repo.
Changes in each commit are followed by the commit-msg and commit hash of the original commit in the XRPackage repo, with multiple commits being melded together if multiple changes were made to a single file. I looked into cherry-picking commits from the XRPackage repo to the exokit repo since it would be nice to maintain git history, but didn't find an easy way to do so.
Feedback on anything I missed and how to test the changes would be greatly appreciated! Apart from opening
index.html
locally, runningnpm start
, and checking the files manually, I wasn't really sure how to confirm these changes were acceptable.Also please let me know if I missed the mark completely and did something completely different than what you intended 😛 this is all a great learning experience for me!