-
Notifications
You must be signed in to change notification settings - Fork 3
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
Behaviour when loading file is different to behaviour when re-running file #41
Comments
@hybridherbst quick question, unrelated to your observation but related to your file: |
Actually I just realized that no string value types are spec-compliant, but are often needed to test anything.. |
Yeah, good question, and I believe it depends on the spec for Unfortunately I don't know how to get Aero (where I believe the extension is coming from) to actually export a KHR_interactivity file... @lexaknyazev for string types used in extensions, like the ADBE/output_console_node, do you have a recommendation? Should the value be stored as |
Its one of those things I asked to clarify in spec, I think values are never not-arrayed whether custom types or not (your test file also have few booleans that need to be put into array, I think) Speaking of custom types, spec only mentions them for variables not for inputs, so its unclear if its even allowed |
@hybridherbst can you link the fork so I can pull and test? |
@mattmacf98 opened a PR so you can see them in one place: |
In the console I see
Which makes me think there is something weird going on for the value being provided by the Eq node Also, when I log out console.log(a,b) in the equality node I get Now I have added some logging when I parse the type and see Evaluating Bool: val[0]=undefined to false, val=true, so it looks like for inlined boolean values, I am not encapsulating the value in an array |
Screen.Recording.2025-01-14.at.6.34.52.PM.movOk there were two issues here
fixes that issue. Weirdly Number([20]) will actually unwrap the array for us and give us 20 which is why int and float parsin worked fine.
I have provided an example with properly wrapped boolean values. This one only fails on the tests with inlined nans and Infinities on since JSON does not allow storing NaN and Infinity. I will make a code change to parse the arrayish booleans properly tomorrow. I think we should update these tests not to use inlined Infinity an Na as these are not allowed in JSON's spec |
Screen.Recording.2025-01-14.at.6.56.27.PM.movOne alternative Idea to hardcoding NaN and Infinity into the JSON is to just make them using math/div. This works great with the small change to parse arrayish bools and the test asset as checks for all cases! |
This file tests all math nodes for float types:
20250109-MathTests.zip
! This issue requires the fixes from our fork at the moment – registering missing nodes etc.
However, when initially loading it, it looks like this:
When pressing Play again, it looks like this:
I'm unsure what's wrong here. I believe the data is correct but maybe there's something else going on.
The text was updated successfully, but these errors were encountered: