Code Monkey home page Code Monkey logo

Comments (4)

pshustad avatar pshustad commented on September 7, 2024

Proposed fix is to convert the rootFilePathto a proper URI before passing it to the daeURI constructor:

diff --git a/dom/src/dae/daeIOPluginCommon.cpp b/dom/src/dae/daeIOPluginCommon.cpp
index 1553454..b18555f 100644
--- a/dom/src/dae/daeIOPluginCommon.cpp
+++ b/dom/src/dae/daeIOPluginCommon.cpp
@@ -92,7 +92,7 @@ daeInt daeIOPluginCommon::read(const daeURI& uri, daeString docBuffer)
         if (zaeHandler.isZipFile())
         {
             string rootFilePath = zaeHandler.obtainRootFilePath();
-            daeURI rootFileURI(*fileURI.getDAE(), rootFilePath);
+           daeURI rootFileURI(*fileURI.getDAE(),cdom::nativePathToUri(rootFilePath));
             domObject = readFromFile(rootFileURI);
             if (!domObject)
             {

After this fix, the tutorial_ik5d example (and others) work as expected

from collada-dom.

rdiankov avatar rdiankov commented on September 7, 2024

it must have been an adventure getting windows to work. thanks for the patch ;0)

from collada-dom.

pshustad avatar pshustad commented on September 7, 2024

Hi Rosen.
Thank you.
Please let me know if you are interested in the patches I had to make to the OpenRave master as well. I compiled with Boost 1.46.1, using Python 2.6 and had to do quite a few changes to the Openrave libraries in order to make it compile and run.

Regards,
Per

From: Rosen Diankov [mailto:[email protected]]
Sent: 8. september 2014 15:07
To: rdiankov/collada-dom
Cc: Per Sandved Hustad
Subject: Re: [collada-dom] Openrave crashes reading Collada zae on Windows 7 due to invalid URI in daeIOPluginCommon.cpp (#8)

it must have been an adventure getting windows to work. thanks for the patch ;0)


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-54814224.

from collada-dom.

rdiankov avatar rdiankov commented on September 7, 2024

sure! please send them.

from collada-dom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.