-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Feature node libs #140
base: dev
Are you sure you want to change the base?
Feature node libs #140
Conversation
The new loadCamera function now can run without errors but i don't receive a message like: jsartoolkitNFT/emscripten/ARToolKitJS.cpp Lines 704 to 741 in 251de77
setCamera: jsartoolkitNFT/emscripten/ARToolKitJS.cpp Lines 413 to 456 in 251de77
It could depends by the type of printings, maybe stream by ARLOGw is not outputted in node? |
i make a simple test, i added a simple std::cout message before: if (arc->param.xsize != arc->width || arc->param.ysize != arc->height) {
ARLOGw("*** Camera Parameter resized from %d, %d. ***\n", arc->param.xsize, arc->param.ysize);
arParamChangeSize(&(arc->param), arc->width, arc->height, &(arc->param));
} and i get the message in the console, so i assume that for some reason simply the camera is not resized. |
- only basic methods
Testing new node listeners, but actually the code (see node/example.js) can't detect and track the pinball image. If the data passed to the process function it should print that the nft marker is tracked, Instead i got a NftMarkerInfo struct with a not found marker. When i have a bit of time i will try to debug why is not detecting. |
In regards of the previous comment: this could be caused because artoolkitNFT.NFTMarkerInfo Is not attached to the |
- fix for wrong merge in ARToolKitJS.cpp
jsartoolkitNFT imported in a node environment
This continue from #128. As said in the issue and other, we should create an independentlib for node. The main reason is the loading of files, in node.js is different compared to a browser env. I will try to use the NODEFS loading the FyleSystem (FS). Note that this code in the PR is quite experimental, and i can't assure of the result.
Tasks to be completed