Page MenuHome

Error collada import about negative numbers (source file does not have negative numbers for materials)
Confirmed, NormalPublicKNOWN ISSUE

Description

System Information
Operating system: Darwin-15.6.0-x86_64-i386-64bit 64 Bits
Graphics card: ATI Radeon HD 5770 OpenGL Engine ATI Technologies Inc. 4.1 ATI-1.42.15

Blender Version
Broken: version: 2.83 (sub 17), branch: master, commit date: 2020-05-19 23:11, hash: rB8f050b6825b8
Worked: (newest version of Blender that worked as expected)

Short description of error
Trying to import a DAE file causes sometimes errors in the console. The issue is that if there are errors in the materials it should step over these. I get this error about negative numbers in for an IOR value, but I do not see these in the file? Another point is that the import states "Import : ok" but nothing happens? WHen I check the DAE value, I don't see any negative numbers for any material and thus I don't understand the error given.

Another "issue" is, way is collada addon build in now? This used be an addon. I cant find it anywhere and looks like its compiled inside blender now,

+----------------------------------
+-- Collada Import parameters------
| input file      : /Users/macpro1/Downloads/CCvision Car wrapping artwork/VW-Tcross/vw_655.dae
| use units       : no
| autoconnect     : no
+-- Armature Import parameters ----
| find bone chains: no
| min chain len   : 0
| fix orientation : no
| keep bind info  : yes
| import Image: /Users/macpro1/Downloads/CCvision Car wrapping artwork/VW-Tcross/paint_frame.jpg
| import Image: /Users/macpro1/Downloads/CCvision Car wrapping artwork/VW-Tcross/paint_frame.jpg
| import Image: /Users/macpro1/Downloads/CCvision Car wrapping artwork/VW-Tcross/tire.jpg
Sax FWL (Warning): Texture with sid "Map #3-image" not found in effect with id "paint_frame-fx".
IOR of negative value is not allowed for materials (using Blender default value instead)IOR of negative value is not allowed for materials (using Blender default value instead)+----------------------------------
| Collada Import : OK
+----------------------------------

Exact steps for others to reproduce the error
01 unzip linked file below
02 Import file but using File > Import > Collada
03 See console for errors, nothing is imported when errors occur (not ideal)

http://www.filedropper.com/tcross

Event Timeline

Richard Antalik (ISS) changed the task status from Needs Triage to Confirmed.May 26 2020, 6:23 PM

I can see materials imported, so something has happened, but other data are missing.

Also Collada is now built in. You should be able to install addon importing collada files besides built-in functionality.

Bastien Montagne (mont29) changed the subtype of this task from "Report" to "Known Issue".

The IOR message is harmless. OpenCollada's getFloatValue() defaults to -1 when a float parameter is missing, so a file without an <index_of_refraction> is indistinguishable from a file with <index_of_refraction><float>-1</float><index_of_refraction>. That's why it thinks there's a negative value.

AFAICT (link to OpenCollada class) there is no way to tell the default -1 from an explicitly provided <float>-1</float>. It'd be easy to skip the error message if the value is -1 at the cost of not warning for files that explicitly set -1.

...or just not warn at all.