Results 1 to 7 of 7

Thread: extra and effect tags

  1. #1
    Junior Member
    Join Date
    Jan 2006
    Posts
    4

    extra and effect tags

    Two questions.

    - The extra tag in some places is said to occur any number of times, in others one or zero times according to the spec. For example in library_cameras it's unbounded and in camera is one or zero.

    I was taking a look at the COLLADASchema.xsd and it seems that the extra tag is always unbounded. So is it always unbounded?

    - I couldn't find a reference to the effect tag under library_effects in the 1.4 spec. Isn't it part of the common profile?

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

    Re: extra and effect tags

    Quote Originally Posted by thiagosc
    Two questions.

    - The extra tag in some places is said to occur any number of times, in others one or zero times according to the spec. For example in library_cameras it's unbounded and in camera is one or zero.

    I was taking a look at the COLLADASchema.xsd and it seems that the extra tag is always unbounded. So is it always unbounded?
    Yes, the schema is always right

    The spec seems right too, since "zero or more times" is the same as "any number of times". but this is inconsistent and can be confusing, and will be fixed.
    Quote Originally Posted by thiagosc
    - I couldn't find a reference to the effect tag under library_effects in the 1.4 spec. Isn't it part of the common profile?
    Strange, the spec for <library_effects> says:
    Child elements: asset, effect, extra
    also it says:
    The <library_effects> element can have one or more <effect> elements.

  3. #3
    Junior Member
    Join Date
    Jan 2006
    Posts
    4
    Hi, thanks for the answer.

    About the effect tag I mean that I can't find what attributes or values go into the effect tag. There's the mention to it in library_effects but it doesn't really tell what the data related to it is.

    And the extra tag, if you look at 3-14, in the camera tag "related elements" section, it says "the <extra> element may occur zero or one time".

  4. #4
    Senior Member
    Join Date
    Jul 2004
    Location
    Santa Clara
    Posts
    356
    Quote Originally Posted by thiagosc
    Hi, thanks for the answer.

    About the effect tag I mean that I can't find what attributes or values go into the effect tag. There's the mention to it in library_effects but it doesn't really tell what the data related to it is.
    The spec says that the child elements are:
    asset, annotate, image, newparam, profile_CG, profile_GLSL, profile_COMMON

    Quote Originally Posted by thiagosc
    And the extra tag, if you look at 3-14, in the camera tag "related elements" section, it says "the <extra> element may occur zero or one time".
    Yes, I can see that, and as I said this is not an error, it is an inconsistence, since it is the same as saying that you can have <extra> any number of times, which is what the schema says also.

  5. #5
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    Quote Originally Posted by remi
    since it is the same as saying that you can have <extra> any number of times
    It says zero or one time, not zero or more times or any number of times.

  6. #6
    Senior Member
    Join Date
    Jul 2004
    Location
    Santa Clara
    Posts
    356
    Oh, I missed that.
    You are right the spec is wrong for <camera>

    Many thanks for the bug report.

  7. #7
    Junior Member
    Join Date
    Jan 2006
    Posts
    4
    Quote Originally Posted by remi
    The spec says that the child elements are:
    asset, annotate, image, newparam, profile_CG, profile_GLSL, profile_COMMON
    Yes, I was looking at ch3, this information is in ch7 COLLADA FX.

Posting Permissions

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