Skip to content
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

wrong path in cameraParametersUrl in threex-artoolkitcontext.js #44

Closed
kalwalt opened this issue Mar 6, 2020 · 6 comments
Closed

wrong path in cameraParametersUrl in threex-artoolkitcontext.js #44

kalwalt opened this issue Mar 6, 2020 · 6 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@kalwalt
Copy link
Member

kalwalt commented Mar 6, 2020

Do you want to request a feature or report a bug?
Trying to fix another bug #43 i found this one.

What is the current behavior?
in threex-artoolkitcontext.js there is this line:

cameraParametersUrl: ARjs.Context.baseURL + 'parameters/camera_para.dat',

but it is wrong because point to non existent path.

If the current behavior is a bug, please provide the steps to reproduce.
Do this, in dev example comment out this line:

cameraParametersUrl: THREEx.ArToolkitContext.baseURL + '../data/data/camera_para.dat',

in this way you will force to use the path from threex-artoolkitcontext.js, and you will receive this error:

artoolkit.api.js:1603 GET http://localhost:3000/three.js/parameters/camera_para.dat 404 (Not Found)
artoolkit.min.js:1 Error: supplied file does not appear to be an ARToolKit camera parameter file.
artoolkit.min.js:1 loadCamera(): Error loading parameter file /camera_param_0 for camera.
artoolkit.min.js:1 Allocated videoFrameSize 172800
artoolkit.min.js:18 Uncaught 
ExitStatus {name: "ExitStatus", message: "Program terminated with exit(0)", status: 0

to solve we need to change the path for cameraParametersUrl in this way:

cameraParametersUrl: ARjs.Context.baseURL + '../data/data/camera_para.dat',

Please mention other relevant information such as the browser version, Operating System and Device Name
Tested on Desktop localhost (ubuntu 18.04.03)
What is the expected behavior?
It should load the default camera parameters.

@kalwalt kalwalt self-assigned this Mar 6, 2020
@kalwalt kalwalt added the bug Something isn't working label Mar 6, 2020
@kalwalt kalwalt added this to WIP in v3 Mar 6, 2020
@kalwalt
Copy link
Member Author

kalwalt commented Mar 6, 2020

I will fix tomorrow this.

kalwalt added a commit that referenced this issue Mar 10, 2020
@nicolocarpignoli
Copy link
Member

Great job @kalwalt, i'm closing this as you solved on the linked PR.

@kalwalt
Copy link
Member Author

kalwalt commented Mar 10, 2020

yes, i think it was a very old isue indeed.

@kalwalt
Copy link
Member Author

kalwalt commented Mar 10, 2020

In the future we can consider also another solution for default data configuration, it would be useful have a config file where to store all this settings and so a user can easily changes the default settings. See for example the Ogre engine or other project that has a similar approach. I will open a separate issue for this feature.

@nicolocarpignoli nicolocarpignoli moved this from WIP to DONE in v3 Mar 10, 2020
@Samar3dgeneralists
Copy link

Facing an similar issue the above solution not working or might be i am doing wrong, can anyone give me the Solution, here is the error i am seen on my screen.
error 2023-05-12 162419

@kalwalt
Copy link
Member Author

kalwalt commented May 13, 2023

Facing an similar issue the above solution not working or might be i am doing wrong, can anyone give me the Solution, here is the error i am seen on my screen. error 2023-05-12 162419

This issue is closed and you have already posted in a new issue here #539 !!

Please don't double posting!

@AR-js-org AR-js-org locked as resolved and limited conversation to collaborators May 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
No open projects
v3
  
DONE
Development

No branches or pull requests

3 participants