-
Notifications
You must be signed in to change notification settings - Fork 944
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
Testing improved artoolkit5 js #359
Conversation
- modified arjs-session
@nickw1 Haven't had the time to continue on this... but maybe if i have a bit of time i can make in another PR the webpack changes for the three.js location based as we discussed in another issue. So we could release another npm beta package. |
@kalwalt sounds good. |
I think i'm very close to solve this PR. But i need to make some tests on Mobile devices. |
I made a simple test with an Android Device and finally this seems to fix the diplay issue. We can start to think to merge into |
- fix labelingMode for White Markers - build production libs
i should check if latest commits, about arjs-session, may affect location-based, after that i think i can merge this PR. |
Aframe location-based shouldn't be touched by these changes, but anyway i will test them. |
- upgrading other packages
I tested the aframe location-based examples and i didn't find any issue with the new changes but i found some cors issue @nickw1 with the hikar resources (?).
but the example can track the Hiro marker, i think this happens because onResize happens before arController is ready. |
The example is the peakfinder-2d and i receive a cors error about failing to download some resources. I f i get again this error i will open an issue. |
@nickw1 @nicolocarpignoli if you have nothing against it i will merge this PR soon. |
@kalwalt Nothing in here that should affect any of my code AFAIK. Which example was giving a CORS error? |
yes i think so too.
If i remember well the peakfinder-2d example but i pulled in this branch your changes and i will test again. Note i'm not outside Europe. If i have this issue again i will report to you. 🙂 If my tests are ok i will merge this PR on |
@nick1 i can confirm that issue on the peakfinder-2d example, but maybe happens only testing on localhost? see the log:
|
tested the three.js location based example: Only the red cube is showed and is fixed in the middle of the device screen. I'm sure that example worked before, but i can't understand what is causing. Note i have enabled GPS position on my device (I double checked this). The current changes are only 837906d I will try a previous commit to see to be sure. |
If i force with:
i can see all the four cubes in the N W E S positions, it seems that testing in localhost the code AR.js/three.js/examples/location-based/index.js Lines 25 to 37 in 837906d
Anyway this is not the argument of this PR. We can do these fix/improvements in another PR. |
i have this issue also in dev branch and in master (for other examples that require hikar resosurces). As i said i don't tink this is related to this PR so i will merge it, but i will host some example on my https://github.com/kalwalt/kalwalt-interactivity-AR repository for testing. |
@kalwalt Sorry! That URL is out of date, the server on hikar.org is now Node-based and has a different URL. Forgot I'd included it in the peakfinder! Will update. Not sure about the problem with the three location based example, but it sounds like the orientation controls are not working. Is this on a mobile device? The box will be fixed in the middle of the screen on a desktop as it relies on the device sensors to orientate. |
Ok, no problem. If you can give me the correct url i will fix it in the next days. I have some free time starting from Monday and so i can continue on this an if it is all ok, make the Big merge on master branch.
Yes this happens while testing on a Mobile device, if i can i will try to fix also this. |
@kalwalt I've just fixed it myself and committed to dev. I will also need to fix the On another matter I just tried building the latest
Is this expected? e.g. I'm building the wrong way? |
Thank you for the fix! |
OK thanks. I am using Node 14 but will try re-installing the modules. I have just done another commit to fix the URL in the |
Re-installing the modules seemed to fix the issue :-) BTW I have now opened a PR #396 for the three.js location based, to allow event handling for GPS updates. It's pretty simple but @kalwalt feel free to check it. As I've promised before I am also proposing to re-write the A-Frame location-based components to use the pure three code under the hood. (What I think we really need are people with iDevices to make changes and test, as at the moment, this code is only known to work on the Android/Chrome combination) |
... also have now completed a simple three.js location-based tutorial on the docs, see AR-js-org/AR.js-Docs#17 This assumes the changes made in #396. |
Ok, perfect. Probably was caused by the package-lock.json file. I added because depnadbot require it. I think it's useful for the project.
Yes, thank you i will do it!
I think we can do this after merging the ES6 feature (now in dev) in master. So i hope very soon...
I agree with you, anyway i think i will buy a reconditioned/cheap IPhone for testing pourpose. I have the same problem with webarkit/ARnft and webarkit/jsartoolkitNFT where IDevice users asking to solve variuos issues, but i can't do so much without a device... |
That's great! |
What kind of change does this PR introduce?
Try to solve a issue that occurs testing marker examples.
Can it be referenced to an Issue? If so what is the issue # ?
see #357
How can we test it?
Try only the three.js/examples/minimal_ES6.html and aframe/examples/marker-based/minimal_ES6.html.
Summary
Meshes onto the marker appears skewed or not aligned to the marker.
Does this PR introduce a breaking change?
No, it shouldn't but it's a WIP.
Please TEST your PR before proposing it. Specify here what device you have used for tests, version of OS and version of Browser
Oppo a72 android device.
Other information
See to do list/tasks to do before merging:
To do list:
package-lock.json
file