You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The global artoolkitNFT variable is not necessary and we can remove it, there are other way to pass data and objects.
I will try to summarize how we can do this and which steps are required to accomplish this.
Remove artoolkitNFT from getNFTMarkerInfo()
First step is to remove the artoolkitNFT global variable defined here
int trackResult = ar2TrackingMod(arc->ar2Handle, arc->surfaceSet[arc->detectedPage], arc->videoFrame, trans, &err);
arc->videoLuma and arc->videoFrame are pointers used to pass the grayscale data and the video data stream, but we need to pass this data in another way (not with frameMalloc).
Remove artoolkitNFT gloabl variable
The global artoolkitNFT variable is not necessary and we can remove it, there are other way to pass data and objects.
I will try to summarize how we can do this and which steps are required to accomplish this.
Remove artoolkitNFT from getNFTMarkerInfo()
First step is to remove the artoolkitNFT global variable defined here
jsartoolkitNFT/emscripten/ARToolKitJS.cpp
Lines 162 to 228 in b86b70b
Remove artoolkitNFT from setup
Second step is remove it from setup() method
jsartoolkitNFT/emscripten/ARToolKitJS.cpp
Lines 704 to 741 in b86b70b
jsartoolkitNFT/emscripten/ARToolKitJS.cpp
Lines 685 to 698 in b86b70b
in detectNFTMarker()
jsartoolkitNFT/emscripten/ARToolKitJS.cpp
Line 273 in e9cd198
and lastly in getNFTMarkerInfo()
jsartoolkitNFT/emscripten/ARToolKitJS.cpp
Line 130 in e9cd198
arc->videoLuma and arc->videoFrame are pointers used to pass the grayscale data and the video data stream, but we need to pass this data in another way (not with
frameMalloc
).Summarizing
The text was updated successfully, but these errors were encountered: