Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#26475] wrong in Collada export.

Date:
2011-03-12 16:56
Priority:
3
State:
Closed
Submitted by:
Juan Linietsky (reduz)
Assigned to:
Nathan Letwory (jesterking)
Category:
None
Status:
Closed
Relates to:
[#31362]
Duplicates:
Patches:
 
Summary:
<instance_material> wrong in Collada export.
Detailed description
The symbol="" in <instance_material> is wrong, it must match the corresponding material="" in <triangles>,<polygons> or <poly_list>.
It is, instead, pointing to the material ID, so objects loaded have no material.

Followup

Message
  • Date: 2011-03-22 12:45
  • Sender: Imran Syed
  • Yo jester..

    I made a couple of changes that seem to fix this issue. The bug reporter was 'goruka' on irc and I checked the collada spec and it is supposed to be as he says.

    I am attaching the patch here. goruka reported that he does not build by himself so is unable to test export his own models/scenes for now. Maybe I'll get someone to make a build with the patch so he can test it (if necessary).
  • Date: 2011-03-22 12:47
  • Sender: Imran Syed
  • Added attachment?
  • Date: 2011-03-22 21:45
  • Sender: Nathan Letwory
  • Thanks! I'll be looking into the patch now.
  • Date: 2011-03-22 23:51
  • Sender: Nathan Letwory
  • Thanks for the report and patch. I've applied the patch and commited it in r35711.
  • Date: 2012-05-07 20:39
  • Sender: Gaia Clary
  • This fix breaks the Second Life Collada importer.

    The reason is that different objects get different material symbols for the same material.
    Although this seems to not violate the Collada specification, the Second LIfe importer
    relies on the fact that identical materials use identical symbol names.

    I have tested that the sequence number which was intriduced with commit 35711 is not needed.
    I have added a patch for this a few days ago ( i just now found that this bug report causes the
    problem). my patch is here:

    http://projects.blender.org/tracker/index.php?func=detail&aid=31335&group_id=9&atid=127

    I have already verified that materials keep intact after reimport of the exported dae files to blender.
    Please can someone approve that my patch really creates collada conform output ?
    Then my patch would fix the issues with Second Life as well.

    thanks
    Gaia
  • Date: 2012-05-08 01:00
  • Sender: Gaia Clary
  • I closed this again and opened a new bug report.
    that is probably cleaner than to reopen an old report.
 

Attached Files:

Name Date Download
instance_material.patch 2011-03-22 12:48 Download

Changes:

Field Old Value Date By
status_idOpen2012-05-08 01:00gaiaclary
close_dateNone2012-05-08 01:00gaiaclary
StatusReopened2012-05-08 01:00gaiaclary
close_date2011-03-22 23:512012-05-07 20:39gaiaclary
StatusFixed / Closed2012-05-07 20:39gaiaclary
status_idClosed2012-05-07 20:39gaiaclary
status_idOpen2011-03-22 23:51jesterking
close_dateNone2011-03-22 23:51jesterking
StatusInvestigate2011-03-22 23:51jesterking
File Added15466: instance_material.patch2011-03-22 12:48freakabcd
assigned_tonone2011-03-12 23:24jesterking
details The symbol="" in <instance_material> is wrong, it must match the corresponding material="" in <triangles>,<polygons> or <poly_list>. It is, instead, pointing to the material ID, so objects loaded have no material. 2011-03-12 23:24jesterking
StatusNew2011-03-12 23:24jesterking

Changes:

Blender 2.x BF release: Blender 2.6 Bug Tracker
   [#31362] Collada: Naming convention for Material symbols breaks Second Life Importer (Relation: Relates to)