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
Merge of 'collada_metadata' branch breaks loading of collada files #2507
Comments
It seems I misunderstood the limitations of IrrXML. IrrXML doesn't recognise the construction: Should be fixed by pull request #2516 |
I guess we should replace irrXml with somethink like pugiXml. Any opinions or feature requests? Thanks! |
Hi Kim, I know I haven't contributed anything in a while, but I have been using pugixml in the hobby project I've been working on for a while. It has some really nice functionality, but it also has some drawbacks. The biggest being that the root document object isn't copyable (if I remember correctly anyway), making it a bit annoying at times. You end up just passing around references to the root node, but it's worth noting. It does also have some nice features like a walker interface to make tree traversal easy, and good load/save support. It definitely has a learning curve though - also beware of the fact that it's easy to not actually create nodes & attributes and not even realize it because of the way the sort-of fluent interface works, and it won't warn you. Just thought you might find this info useful. |
I don't really think it's worth changing XML parser. I don't think a DOM style parser is sensible for this application. |
IrrXML is causing some truly weird warnings with high warning levels on clang and GCC. Something about overflows in IrrString. I'd like get rid of it just to get rid of those. |
Perhaps Expat? https://libexpat.github.io/ That said, all this is a long way from the original issue. @kimkulling can you create a new issue for updating the XML parser and move these comments there? |
@robindegen @kimkulling I believe this issue now corrected, can you confirm and close it? |
@RichardTea Yes it was fixed. Thanks |
After the merge of branch collada_metadata ( rev 7b6cb57 ) the loading of certain collada files has broken.
I see that ColladaParser::SkipElement is trying to find the end tag of "author" for my file, but it never actually finds this. This results in the while loop reading until the reader has nothing left to read. The result is that the entire file is not loaded.
After reverting back to the commit right before this merge ( 0b9da72 ) fixes the issue and the file is loadable again.
I'm testing this with a file exported with the collada exporter for 3ds max (generated back in 2016).
The file can be found here:
https://github.com/aeon-engine/aeon-engine/blob/master/bin/resources/meshes/elementalist-warrior-female-character-f/x-elemetal.dae
The text was updated successfully, but these errors were encountered: