Page MenuHome

Collada importer improperly handles non-specular materials
Closed, ArchivedPublic

Description

System Information
64bit Linux Mint 16, kernel version 3.11.0
GeForce GTX 650 Ti, driver version 419.32

Blender Version
Broken: 2.69.0

Short description of error
When importing a Collada file, any materials that do not specify specular shading will have their specular set to the default. This appears to be incorrect, as a material should only have specular if it is specified. Because of this, collada files exported from blender that have no specular will have the default specular when re-imported. I have no idea if this behavior violates the collada standards, though I am assuming that it does violate the standard as it seems illogical.

Exact steps for others to reproduce the error

  1. Create a new object and create a new material for it
  2. Set the Specular Intensity to 0
  3. Export the scene to a Collada file.
  4. CTRL-N to start a new file.
  5. Import the Collada file you just exported
  6. The Specular Intensity will again be at 0.5

Details

Type
Bug

Event Timeline

Brecht Van Lommel (brecht) claimed this task.

I've added it to the list of Collada bugs here:
http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Import_Export

There's many issues in the importer and we don't have the resources to fix them at the moment. Looking at this material code it can use a rewrite, the way these collada parameters are mapped onto Blender materials doesn't make much sense to me.