Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#25575] Collada import problem with Maya2010 exported collada files

Date:
2011-01-10 20:43
Priority:
3
State:
Closed
Submitted by:
Morten Mikkelsen (sparky)
Assigned to:
Nathan Letwory (jesterking)
Category:
None
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Collada import problem with Maya2010 exported collada files
Detailed description
I am using the default 2.56 from here --> http://www.blender.org/download/get-256-beta/

I have attached 3 files. George_1.3 was exported from blender and works fine for import into blender.
The other file george_of_maya.dae was generated by importing the original into Maya2010
and then exporting it again as collada.

It is immediately rejected by the blender collada importer. With a simpler file (a cube) I tracked down
that commending out the defined textures in the library_effects section allows it to proceed with
reading the file. However, in the case of george it appears to bring down blender. You can see this in
the george_of_maya2.dae file where I commented out the strange texture (that maya puts in dunno why) manually.

Followup

Message
  • Date: 2011-01-10 20:45
  • Sender: Jeroen Bakker
  • Moved from Blender 2.4x Bug Tracker to Blender 2.5 Bug Tracker
  • Date: 2011-01-10 21:33
  • Sender: Martijn Berger
  • I get a result with a fresh checkout from svn on linux 64bit. attached my result.
  • Date: 2011-01-10 22:49
  • Sender: Morten Mikkelsen
  • Could you please clarify? What does "get a result" mean?
    Also I don't see the attachment though I am new to this system so could be I am simply looking in the wrong place.
    I see my own 3 attachments though.

    Cheers,

    Morten
  • Date: 2011-01-10 23:27
  • Sender: Morten Mikkelsen
  • I should mention btw I am running under windows7 64bit home edition.
  • Date: 2011-01-10 23:41
  • Sender: Nathan Letwory
  • I get a crash on win7 64 ultimate with both 2.56a and current trunk. I got this backtrace:



    > blender.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::size() Line 1666 + 0x5 bytes C++
    blender.exe!bc_get_joint_name<COLLADAFW::Node>(COLLADAFW::Node * node=0x0000000000000000) Line 48 + 0xa bytes C++
    blender.exe!SkinInfo::link_armature(bContext * C=0x0000000002ce6898, Object * ob=0x000000000853b178, std::map<COLLADAFW::UniqueId,COLLADAFW::Node *,std::less<COLLADAFW::UniqueId>,std::allocator<std::pair<COLLADAFW::UniqueId const ,COLLADAFW::Node *> > > & joint_by_uid=[348](({INVALID={...} mClassId=NO_TYPE mObjectId=0 ...},0x0000000000000000 {mOriginalId={...} mName={...} mType=??? ...}),({INVALID={...} mClassId=NODE mObjectId=62 ...},0x000000000864def0 {mOriginalId="CTR_Armat_CTR_FK_Mid" mName="CTR_Armat_CTR_FK_Mid" mType=JOINT ...}),...,...), TransformReader * tm=0x0000000000a2ee20) Line 246 + 0x26 bytes C++
    blender.exe!ArmatureImporter::make_armatures(bContext * C=0x0000000002ce6898) Line 456 C++
    blender.exe!DocumentImporter::finish() Line 197 C++
    blender.exe!COLLADASaxFWL::PostProcessor::postProcess() Line 91 C++
    blender.exe!COLLADASaxFWL::Loader::loadDocument(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & fileName="D:\bugtesting\25575_george_of_maya2.dae", COLLADAFW::IWriter * writer=0x0000000000a2ed20) Line 228 C++
    blender.exe!COLLADAFW::Root::loadDocument(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & fileName="D:\bugtesting\25575_george_of_maya2.dae") Line 28 C++
    blender.exe!DocumentImporter::import() Line 137 + 0x19 bytes C++
    blender.exe!collada_import(bContext * C=0x0000000002ce6898, const char * filepath=0x0000000000a2f420) Line 38 C++
    blender.exe!wm_collada_import_exec(bContext * C=0x0000000002ce6898, wmOperator * op=0x00000000085808c8) Line 1908 C
    blender.exe!wm_handler_fileselect_call(bContext * C=0x0000000002ce6898, ListBase * handlers=0x0000000003285968, wmEventHandler * handler=0x0000000008584068, wmEvent * event=0x0000000008565df8) Line 1326 + 0x27 bytes C
    blender.exe!wm_handlers_do(bContext * C=0x0000000002ce6898, wmEvent * event=0x0000000008565df8, ListBase * handlers=0x0000000003285968) Line 1464 + 0x22 bytes C
    blender.exe!wm_event_do_handlers(bContext * C=0x0000000002ce6898) Line 1732 + 0x1e bytes C
    blender.exe!WM_main(bContext * C=0x0000000002ce6898) Line 345 C
    blender.exe!main(int argc=1, unsigned char * * argv=0x0000000002d535d0) Line 1204 C
  • Date: 2011-01-10 23:44
  • Sender: Nathan Letwory
  • This is with george_of_maya2.dae
  • Date: 2011-01-11 00:19
  • Sender: Nathan Letwory
  • Ok, apparently this is because a lot of joints are with COLLADAFW::UniqueId::INVALID. I'll test with the first (1.3) file still, but I think I'll commit fix for this at least to prevent from further crashing.
  • Date: 2011-01-11 00:24
  • Sender: Nathan Letwory
  • Re-assigning to myself. Fix for crash coming up soon
  • Date: 2011-01-11 00:28
  • Sender: Nathan Letwory
  • So the 1.3 file also imports ok without the fix, so somehow the maya export seems kinda broken. Committing a fix to ignore joints with invalid UID to prevent crashes.
  • Date: 2011-01-11 00:35
  • Sender: Nathan Letwory
  • Committed crash prevention r34239. Please test where possible. It is quite likely that the armature import doesn't work for these files. I'm not sure yet whether the problem is in the maya export or not, something to investigate with more detail.
  • Date: 2011-01-11 15:27
  • Sender: Nathan Letwory
  • indeed, that one isn't exported by Maya 2010, but by Blender 2.56 (r33949)
  • Date: 2011-01-11 15:28
  • Sender: Nathan Letwory
  • Morten, can you verify that the crash doesn't happen anymore?
  • Date: 2011-01-11 19:05
  • Sender: Morten Mikkelsen
  • Hey Nathan,

    I need to get setup first to compile Blender. I am just getting into the community and haven't done so yet (sorry).
    If you have a build handy I'd be happy to install it and try it. If I need to build it myself that's ok too but it will have to wait a few days.
  • Date: 2011-01-17 12:01
  • Sender: Nathan Letwory
  • Hey, to come back on this issue, did you export from Maya with the built-in COLLADA support?

    I got feedback from a COLLADA person that the built-in support of Maya and Max are very bad, and that it would be better for users to use the OpenCOLLADA plugins for those: http://code.google.com/p/opencollada/

    I'm thinking of including this into our own documentation, so users know to get the better COLLADA support for their packages. I'd be interested in an export/import try with these. If you could find the time to generate a set of files and attach them using the plugins, I'd be very happy.
  • Date: 2011-01-17 18:32
  • Sender: Morten Mikkelsen
  • Yes I think I did. Thanks a lot for that heads-up. I'll give the new plugins a go and let you know how it works out. Thanks.
  • Date: 2011-02-28 15:48
  • Sender: Nathan Letwory
  • Crash prevention works, closing bug report.
 

Attached Files:

Name Date Download
George_1.3.dae 2011-01-10 20:43 Download
george_of_maya2.dae 2011-01-10 20:43 Download
george_of_maya.dae 2011-01-10 20:43 Download

Changes:

Field Old Value Date By
status_idOpen2011-02-28 15:48jesterking
close_dateNone2011-02-28 15:48jesterking
StatusReady2011-02-28 15:48jesterking
StatusInvestigate2011-01-11 00:35jesterking
StatusNew2011-01-11 00:24jesterking
assigned_tojbakker2011-01-11 00:24jesterking
typeBlender 2.4x Bug Tracker2011-01-10 20:45jbakker
assigned_tonone2011-01-10 20:45jbakker
File Added14470: George_1.3.dae2011-01-10 20:43sparky
File Added14468: george_of_maya.dae2011-01-10 20:43sparky
File Added14469: george_of_maya2.dae2011-01-10 20:43sparky