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
Looks like AWD models don't load at all in away3d for html5 builds. This seems to be true both for the latest version of openfl/lime (6.1.0 and 5.4.0 at time of writing), and also the old versions I've been using for development (5.1.5 and 5.2.1).
In away3d.loaders.parsers.AWD2Parser.hx, if I set debug=true; on line 47, I get the following output in HTML5:
It's reading a compression value of 189, which is well out of bounds and clearly wrong. For comparison, here is the same debug output in flash, where the test model loads correctly:
(I'm using cat.awd from this issue as the test model: #13)
I'm really interested in getting these three interconnected bugs fixed (this one, #13 and #4) so that I can release a project I've been working on! Therefore, I'm going to try offering a bounty, which I've never done before. (inspired by a recent openfl issue)
I offer a bounty of 100 EUR for a pull request to this project that fixes AWD parsing for both native and html5, for the most recent builds of openfl and lime. I consider AWD parsing sufficiently fixed for me if the demo cat model in this issue (#13) can be loaded successfully in both native and html5.
The text was updated successfully, but these errors were encountered:
It was a weird one to find, as the byte arrays looked different between Flash and HTML5. It turns out that in the Asset loading system, binary files are detected by extension. AWD is not in that list. As such it was being interpretted as text and resulting in odd values.
Adding the following to the project.xml seemed to fix it for me, forcing the file type to be binary
related issues: #13 #4
Looks like AWD models don't load at all in away3d for html5 builds. This seems to be true both for the latest version of openfl/lime (6.1.0 and 5.4.0 at time of writing), and also the old versions I've been using for development (5.1.5 and 5.2.1).
In away3d.loaders.parsers.AWD2Parser.hx, if I set
debug=true;
on line 47, I get the following output in HTML5:It's reading a compression value of 189, which is well out of bounds and clearly wrong. For comparison, here is the same debug output in flash, where the test model loads correctly:
(I'm using cat.awd from this issue as the test model: #13)
I'm really interested in getting these three interconnected bugs fixed (this one, #13 and #4) so that I can release a project I've been working on! Therefore, I'm going to try offering a bounty, which I've never done before. (inspired by a recent openfl issue)
I offer a bounty of 100 EUR for a pull request to this project that fixes AWD parsing for both native and html5, for the most recent builds of openfl and lime. I consider AWD parsing sufficiently fixed for me if the demo cat model in this issue (#13) can be loaded successfully in both native and html5.
The text was updated successfully, but these errors were encountered: