-
-
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
Removing artoolkitNFT as a global variable (part 2) #283
Conversation
Node tests fails because i haven't updated the |
7471ad3
to
f922f99
Compare
While testing the ARToolkitNFT_ES6_gray_example.html example i got:
|
@@ -34,7 +34,7 @@ | |||
* | |||
*/ | |||
import ARToolkitNFT from "./ARToolkitNFT_simd"; | |||
import ARControllerNFT from "./ARControllerNFT"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i was exporting the wrong lib here! it wasn't using simd at all...
@@ -1,5 +1,5 @@ | |||
import ARToolkitNFT from "./ARToolkitNFT_simd"; | |||
import ARControllerNFT from "./ARControllerNFT"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above.
@@ -918,7 +918,7 @@ export default class ARControllerNFT implements AbstractARControllerNFT { | |||
q += 4; | |||
} | |||
} else if (this.grayscaleEnabled == true) { | |||
this.videoLuma.set(this.grayscaleSource); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i can't understand why this will make fail, with an out bounds error. I will investigate.
@@ -918,7 +918,7 @@ export default class ARControllerNFT implements AbstractARControllerNFT { | |||
q += 4; | |||
} | |||
} else if (this.grayscaleEnabled == true) { | |||
this.videoLuma.set(this.grayscaleSource); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as bove.
I think i can delete these lines of code jsartoolkitNFT/src/ARToolkitNFT.ts Lines 45 to 47 in e9cd198
and jsartoolkitNFT/src/ARToolkitNFT.ts Lines 133 to 134 in e9cd198
actually you can't use the artoolkitNFT global variable because is not correctly exported (attached) to the window object.I will leave untouched the old code (the minified and other build libs...) but i think we can avoid the use of a global variable. |
List of Features/changes
This PR is a continuation from # 276