Results 1 to 9 of 9

Thread: Sketchup validation vs. OpenCollada validation

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    6

    Sketchup validation vs. OpenCollada validation

    When validating my .dae files using the OpenCollada validator, I am successful. However, upon trying to import the same .dae into SketchUp, I receive an error. Subsequently, I am given the option to open it, which is successful. The error in SketchUp is as follows:

    "The .dae or .kmz file you are attempting to import cannot be validated. Your file may import just fine but there is a possibility SketchUp could import it incorrectly or even crash."

    Does anyone have any ideas what distinguishes the SketchUp validator from the OpenCollada validator?

    I have attached the .dae file so you might try it yourself. It is valid against the Collada 1.4.1 Schema.

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: Sketchup validation vs. OpenCollada validation

    Seems to load fine in SketchUp 8.

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Posts
    6

    Re: Sketchup validation vs. OpenCollada validation

    I am also using Sketchup 8 and I can load the collada file, but I still get a message that says the file is improperly formed. Like I said above, I can ultimately import the geometry, but I am confused at why this message appears. Can you indicate to me why I get this message?

  4. #4
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: Sketchup validation vs. OpenCollada validation

    I don't know about SketchUp's validator so I've asked someone at Google to respond.

    On my Macbook, I get the following validation error with xmllint:
    Code :
    $ xmllint --version --noout --schema [url]http://www.collada.org/2005/11/COLLADASchema.xsd[/url] collada.dae 
     
    /usr/local/bin/xmllint: using libxml version 20708
       compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib 
    collada.dae:33: element transparent: Schemas validity error : Element '{http://www.collada.org/2005/11/COLLADASchema}transparent': Missing child element(s). Expected is one of ( {http://www.collada.org/2005/11/COLLADASchema}color, {http://www.collada.org/2005/11/COLLADASchema}param, {http://www.collada.org/2005/11/COLLADASchema}texture ).
    collada.dae fails to validate

    This means that on line 33 of your document, there is an empty element that must not be empty:

    Code :
                <transparent opaque="RGB_ZERO" />

  5. #5
    Junior Member
    Join Date
    Jul 2011
    Posts
    3

    Re: Sketchup validation vs. OpenCollada validation

    The Sketchup validator uses the 1.4.1 schema and tinyxml as the library that takes the schema and compares it to the current file.

    When I run xmllint, I see the same Element empty error that Mark has described in his post. If you do not want SketchUp to validate a .dae file before importing you can un-check the 'Validate COLLADA file' check-box under the Options in the Import Dialog for COLLADA files.

    hope this helps.
    Simone.

  6. #6
    Junior Member
    Join Date
    Jun 2011
    Posts
    6

    Re: Sketchup validation vs. OpenCollada validation

    Hey guys,

    xmllint was exactly the tool I was looking for! Thanks a lot for the support on this one! One baby step closer to a good Collada exporter!

    Now that I am aware of this, why does anyone even suggest the OpenCOLLADA validator? Does it have any advantage over using xmllint and the schema?

    Thanks again!

    ~Peter

  7. #7
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: Sketchup validation vs. OpenCollada validation

    Validation is done at the XML level. XML instance documents, i.e. COLLADA .dae documents, are validated against either a DTD or schema (XML Schema, RELAX NG, etc.) by any XML validating parser (libxml2, tinyxml, expat, xerces, MSXML4, MSXML6, etc.). I.e. you don't need COLLADA software to validate documents.

    It's all the same minus differences in software versions and bugs. You want to use newer software to get the best results. For example, older versions of libxml2 have a bug that prevents them from validating with the COLLADASchema.xsd schema.

    Btw OpenCOLLADA/COLLADAValidator uses libxml2 so make sure to update your libxml2 installation.

  8. #8
    Senior Member
    Join Date
    Jul 2004
    Location
    Santa Clara
    Posts
    356

    Re: Sketchup validation vs. OpenCollada validation

    I use an interactive windows tool that I hacked from a Microsoft open source project - XML notepad. I like the interactivity, editing, and the graphical browsing (see attached image). It also has a XLS processor, search...

    You can get it at github.com/RemiArnaud/DAE-notepad

    for more information about all the XML tools available and their application to COLLADA, please read chapter 9: a COLLADA toobook from AK Peters 'Game Development Tools' book.

    http://www.amazon.com/Game-Development- ... 568814321/

    - Remi

  9. #9
    soniayqa
    Guest

    Re: Sketchup validation vs. OpenCollada validation

    thanks for the xmlmint tip, I have actually used liquid xml editor but its not free so always good when you can get it for free!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •