Results 1 to 3 of 3

Thread: Inconsistency in booleans: true/false and/or 1/0?

  1. #1
    Member
    Join Date
    Dec 2004
    Location
    SCEA, Foster City
    Posts
    36

    Inconsistency in booleans: true/false and/or 1/0?

    It seems that COLLADA-DOM only accepts true/false in booleans for example
    <dynamic>false</dynamics>. However FCollada/FeelingViewer uses 1/0.

    What is the rule here?

    See also:
    http://www.feelingsoftware.com/bugzilla ... .cgi?id=81

    ------- Comment #1 from glaforte at feelingsoftware.com 2006-07-14 09:38 -------
    I just ran a validator on the COLLADA 1.4.1 schema and there are, admitedly,
    quite a few validation errors. They are mostly due to the ordering of nodes.
    On the other hand: <dynamic>1</dynamic> is accepted, although not correctly
    ordered in the rigid body.

  2. #2
    Senior Member
    Join Date
    Aug 2005
    Location
    California
    Posts
    165
    according to xml schema
    3.2.2 boolean

    [Definition:] boolean has the ·value space· required to support the mathematical concept of binary-valued logic: {true, false}.
    3.2.2.1 Lexical representation

    An instance of a datatype that is defined as ·boolean· can have the following legal literals {true, false, 1, 0}.
    I will have to make sure the DOM can handle both.

    -Andy

  3. #3
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771
    Please note that "true" and "false" are case-sensitive.

Posting Permissions

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