Error collada import about negative numbers (source file does not have negative numbers for materials) #77059

Open
opened 2020-05-25 21:19:14 +02:00 by Rombout Versluijs · 8 comments

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: 8f050b6825
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

**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: `8f050b6825` 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

Added subscriber: @RomboutVersluijs

Added subscriber: @RomboutVersluijs

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

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.

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.

Added subscriber: @mont29

Added subscriber: @mont29
[Tcross.zip](https://archive.blender.org/developer/F8918940/Tcross.zip)
Contributor

Added subscriber: @scurest

Added subscriber: @scurest
Contributor

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>-1<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 -1. 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.

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 ](https://github.com/KhronosGroup/OpenCOLLADA/blob/6031fa956e1da4bbdd910af3a8f9e924ef0fca7a/COLLADAFramework/include/COLLADAFWFloatOrParam.h)) 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.
Philipp Oeser removed the
Interest
Pipeline, Assets & IO
label 2023-02-10 08:54:19 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#77059
No description provided.