• Advertisement
Sign in to follow this  

COLLADA joint names array from <library_controllers> is null after loading file

This topic is 1325 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I use autogenerated classed from COLLADA schema 1.4.1 for loading and parsing collada files feom C#.
But I have an issue trying to parse <source id="skin-joints"> inside <controller> tag.
I don`t know why, but exactly that array with bone names loaded nothing except joints count and source id.
All other sources loading correctly. I tested on few different files and always the same error.
Loading file code:
public static COLLADA Load(string fileName)
            FileStream stream = new FileStream(fileName, FileMode.Open);
            COLLADA result;
                result = Load(stream);
            return result;

        public static COLLADA Load(Stream stream)
            StreamReader str = new StreamReader(stream);
            XmlSerializer xSerializer = new XmlSerializer(typeof(COLLADA));

            return (COLLADA)xSerializer.Deserialize(str);            
Does anyone faced with it or does anyone know how to fix that issue?
As alternative I can parse that part of file by standart XML parser, but I wish to solve this issue using COLLADA classes.
Edited by BlackJoker

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement