I’m having some similar problems with my parser… everything worked fine, i have loaded like 20 different maya models… but then i started to have the following error with some files:
Error: Failed to open file:/e:/Proyectos/collada-dom/dom/projects/vc8-1.4/ambulante_anim2.dae in daeLIBXMLPlugin::readFromFile
Error: Failed to load file:/e:/Proyectos/collada-dom/dom/projects/vc8-1.4/ambulante_anim2.dae
And the funny thing is, when i change the file name for “ambulante_anim1.dae”, it works just fine… please if anyone can help, i’ll appreciate it deeply
Sounds like you are trying to load a 1.5 document with a 1.4 DOM or similar mismatch. Can you post the <COLLADA> element with the version attribute from your test.dae document?
Well that URL is technically a syntax error (should begin with “file:///e:”).
What did you change the filename to? Do you get a message saying what file was opened on success? Just interested in seeing the URL that works vs the one that you shown that doesn’t.
and this is the other uri of the same file but with the name changed to “ambulante_anim2.dae” which doesn’t work and gives me the same error as before:
Error: Failed to open file:/e:/Proyectos/collada-dom/dom/projects/vc8-1.4/ambulante_anim2.dae in daeLIBXMLPlugin::readFromFile
Error: Failed to load file:/e:/Proyectos/collada-dom/dom/projects/vc8-1.4/ambulante_anim2.dae
I am working with collada 1.4 for visualc++ 2005, thanks in advance.
None that I’m aware of (possibly polytrans?) although there are more applications supporting both versions appearing on the market lately. Importing and exporting between versions effectively handles that use-case.
Going back to your original post, I think you should build the DOM for 1.4.1 instead since you are using other tools that export 1.4.1 content (like Milkshape).
And this is the line from the other file, but it’s the same one, since the only thing i did was to copy the first file and then renamed it. (But just to be sure, I paste here the line here copied from the second file)
Thank you, this problem is giving me so much trouble, since i don’t know why some dae files work and other don’t, and for further info, the problem appears from the very beginning, when i try to open the file in this line:
It could just be a file system issue then. Try making a copy with a different name that won’t collide (thinking 8.3 hashing) such as “test1234.dae” and see if that loads.
Maybe. It seems to confirm an issue within libxml2 readFromfile(). You are going to have to debug into it and discover why libxml2 is having a problem with your copied file. It could be file permissions, invalid XML or UTF encoding, or something else.
I’m basically having the same exact problem. It’s not that anything I built is buggy nor is how I attempt to open a .DAE the problem (the library I wrote for converting .DAE files at the end of a production pipeline into a binary format worked great with 1.4.1) but rather I can’t find any export tools for 3DS Max 9 that export in 1.5; or if they do, I can’t figure out how to make them do so (they all export in 1.4.1). So, my main problem is that I have a working COLLADA 1.5 importer, but no exporter
I’m using colladadom 2.2 built with COLLADA 1.5 for opening .DAE files.
Also, I should add that I can load the COLLADA 1.5 files with my tool that are included in the colladadom 2.2 package under: [packageRoot]\dom est\1.5\data
with absolutely no errors. So I’m at an impasse unless I can find or write my own exporter (I’d prefer the former, as I’ve zero experience writing 3DS max plugins at the moment… necessity might soon change that though).
Thanks for the suggestion. I downloaded the source last night and built the plugin this morning; however, I’ve run into another problem.
I started by downloading the OpenCOLLADA project via Subversion:
svn co https://opencollada.svn.sourceforge.net/svnroot/opencollada/trunk opencollada
Per the prerequisites for OpenCOLLADA, I have 3DS Max 2009
and the SDK installed. Also, I built Boost 1.39.0 from source
for my platform, and set up the build environment as dictated
by BUILD in the COLLADAMax solution directory. I didn’t have
trouble building COLLADAMaxNew.dle (besides changing cp
to copy in the pre-build event) and it even seemed like
everything was going smoothly until I loaded up 3DS Max 2009
after building and installing the plugin. Upon load, I recieved
the following error message:
Caption: “Error loading DLLs”
Body: “DLL <COLLADAMaxNew.dle> failed to initialize.
Error code 193 - %1 is not a valid Win32 application.”
I built the plugin using both the “Debug Max2009” and
“Release Max2009” configurations and attempted to load each
manually via the Plugin Manager in 3DS Max 2009 with no
success (the same error came up with each attempt).
Unfortunately I’m not really versed in how Autodesk handles
plugins so I’m slightly mystified by this error.
I’m running Windows Vista Ultimate x64 and the 3DS Max 2009
64-bit build. Also, I compiled the project in Visual Studio
2008 (with which I converted the project from VS 2005).
I’ve also submitted this question to the project maintainer on SourceForge.net, but I also wanted to see if you had any insight into my problem