Results 1 to 4 of 4

Thread: Materials referenced by name instead of by id?

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    4

    Materials referenced by name instead of by id?

    On page 66 of the 1.3 spec the spec says "The material attribute refers to the name of a <material> element, using a url expression. Does this mean it refers to the name attribute of a material as opposed to the id attribute?

    This isn't just me being pedantic, the blender exporter gives materials different names and id's, and it refers to the name of the mesh not the id, so I wanted to check whether the exporters behaviour is correct before submitting a bug report.

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771
    It refers to the ID attribute. Typically you will see this usage in .dae content:
    Code :
    <material name="someblue" id="blue5"/>
     
    <polygons material="#blue5"/>
    The polygon references the material using a URL fragment reference, usually in the current document.

  3. #3
    Junior Member
    Join Date
    Oct 2005
    Posts
    4
    Thanks Marcus

  4. #4
    Junior Member
    Join Date
    Mar 2005
    Location
    Lulea, Sweden
    Posts
    29
    This problem is now fixed with the 0.2 release.
    / Master Tonberry

Posting Permissions

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