View Issue Details

IDProjectCategoryView StatusLast Update
0004323FreeCADBugpublic2021-02-07 22:08
Reportercadandre Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
PlatformPCOSWindowsOS Version10
Product Version0.18 
Target Version0.20 
Summary0004323: Import of any .dae (Collada)-file fails
DescriptionAccording to
https://wiki.freecadweb.org/index.php?title=Extra_python_modules#pyCollada

FreeCAD on Windows should be able to open/import .dae-files
Quote:
'Windows

On Windows since 0.15 pycollada is included in both the FreeCAD release and developer builds so no additional steps are necessary.'

Nevertheless every import of .dae-files (Open as well as Import) fails (see screenshot attached). If somebody tells me where to find the errormessage at the bottom of the screenshot, I could provide it.
Steps To Reproduceopen/import any .dae-file
Tags#post-to-forum, 0.18
FreeCAD InformationOS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)

Activities

cadandre

2020-04-24 21:23

reporter  

dae_import_fails.png (24,952 bytes)   
dae_import_fails.png (24,952 bytes)   

openBrain

2020-04-24 22:38

developer   ~0014371

@cadandre : please address your issue according our reporting guidelines by opening a topic in our forum. Thx

chennes

2021-02-07 21:41

developer   ~0015303

Here's an example DAE file for testing.
ExampleCollada.dae (15,833 bytes)   
<?xml version="1.0" encoding="UTF-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
  <asset>
    <contributor>
      <authoring_tool>Converted by the PolyTrans Collada exporter</authoring_tool>
    </contributor>
    <created>20XX-04-09T14:24:50Z</created>
    <modified>20XX-04-09T14:24:50Z</modified>
    <unit meter="0.010000" name="centimeters"/>
    <up_axis>Y_UP</up_axis>
  </asset>
  <library_images>
    <image id= "ceramic_tif" name= "ceramic_tif" >
      <init_from>file: ///ceramic.tif </init_from>
    </image>
  </library_images>
  <library_materials>
    <material id="default" name="default_1">
      <instance_effect url="#default-fx"/>
    </material>
    <material id="floor__ceramic__tiled"
 	name="floor__ceramic__tiled_1">
      <instance_effect url="#floor__ceramic__tiled-fx"/>
    </material>
  </library_materials>
  <library_effects>
    <effect id="default-fx" name="default_2">
      <profile_COMMON>
        <technique sid="common">
          <phong>
            <emission>
              <color>0.000000 0.000000 0.000000 1</color>
            </emission>
            <ambient>
              <color>0.300000 0.300000 0.300000 1</color>
            </ambient>
            <diffuse>
              <color>0.400000 0.400000 0.400000 1</color>
            </diffuse>
            <specular>
              <color>0.700000 0.700000 0.700000 1</color>
            </specular>
            <shininess>
              <float>16.000000</float>
            </shininess>
            <reflective>
              <color>0.000000 0.000000 0.000000 1</color>
            </reflective>
            <reflectivity>
              <float>0.000000</float>
            </reflectivity>
            <transparent opaque="A_ONE">
              <color>1.000000 1.000000 1.000000 1</color>
            </transparent>
            <transparency>
              <float>1.000000</float>
            </transparency>
            <index_of_refraction>
              <float>1.000000</float>
            </index_of_refraction>
          </phong>
          <extra>
            <technique profile="OKINO">
              <filter_color>
                <color>1.000000 1.000000 1.000000 1</color>
              </filter_color>
              <phong>
                <shininess>32</shininess>
                <metal>0.000000</metal>
              </phong>
              <shading_coefficients>
                <ambient>0.300000</ambient>
                <diffuse>0.400000</diffuse>
                <specular>0.700000</specular>
                <luminous>0.000000</luminous>
                <reflect>0.000000</reflect>
                <filter>1.000000</filter>
              </shading_coefficients>
              <opacity>
                <face>1.000000</face>
                <reflect>1.000000</reflect>
                <edge>1.000000</edge>
                <edge_exponent> 1.000000 </edge_exponent>
                <edge_enable>0</edge_enable>
              </opacity>
            </technique>
          </extra>
        </technique>
      </profile_COMMON>
    </effect>
    <effect id="floor__ceramic__tiled-fx" 
	name="floor__ceramic__tiled_2">
      <profile_COMMON>
        <newparam sid= "ceramic_tif-surface" >
          <surface type="2D">
            <init_from>ceramic_tif</init_from>
          </surface>
        </newparam>
        <newparam sid="ceramic_tif-sampler">
          <sampler2D>
            <source>ceramic_tif-surface</source>
            <wrap_s>WRAP</wrap_s>
            <wrap_t>WRAP</wrap_t>
            <minfilter>LINEAR_MIPMAP_LINEAR</minfilter>
            <magfilter>LINEAR</magfilter>
          </sampler2D>
        </newparam>
        <technique sid="common">
          <phong>
            <emission>
              <color>0.000000 0.000000 0.000000 1</color>
            </emission>
            <ambient>
              <color>0.300000 0.300000 0.300000 1</color>
            </ambient>
            <diffuse>
              <texture texture="ceramic_tif-sampler" texcoord="uv0">
              <extra>
                <technique profile="OKINO">
                  <weighting>1.000000</weighting>
                  <modulation_source>rgb</modulation_source>
                  <color_blending_mask>off</color_blending_mask>
                  <mix_with_previous_layer>1.000000</mix_with_previous_layer>
                </technique>
                <technique profile="MAX3D">
                  <amount>1.000000</amount>
                </technique>
                <technique profile="MAYA">
                  <wrapU>1</wrapU>
                  <wrapV>1</wrapV>
                  <repeatU>1.000000</repeatU>
                  <repeatV>1.000000</repeatV>
                  <offsetU>0.000000</offsetU>
                  <offsetV>0.000000</offsetV>
                  <rotateUV>0.000000</rotateUV>
                </technique>
              </extra>
              </texture>
            </diffuse>
            <specular>
              <color>0.250000 0.250000 0.250000 1</color>
            </specular>
            <shininess>
              <float>16.000000</float>
            </shininess>
            <reflective>
              <color>0.000000 0.000000 0.000000 1</color>
            </reflective>
            <reflectivity>
              <float>0.000000</float>
            </reflectivity>
            <transparent opaque="A_ONE">
              <color>1.000000 1.000000 1.000000 1</color>
            </transparent>
            <transparency>
              <float>1.000000</float>
            </transparency>
            <index_of_refraction>
              <float>1.000000</float>
            </index_of_refraction>
          </phong>
          <extra>
            <technique profile="OKINO">
              <filter_color>
                <color>1.000000 1.000000 1.000000 1</color>
              </filter_color>
              <phong>
                <shininess>32</shininess>
                <metal>0.000000</metal>
              </phong>
              <shading_coefficients>
                <ambient>0.300000</ambient>
                <diffuse>0.568627</diffuse>
                <specular>0.250000</specular>
                <luminous>0.000000</luminous>
                <reflect>0.000000</reflect>
                <filter>1.000000</filter>
              </shading_coefficients>
              <opacity>
                <face>1.000000</face>
                <reflect>1.000000</reflect>
                <edge>1.000000</edge>
                <edge_exponent>1.000000</edge_exponent>
                <edge_enable>0</edge_enable>
              </opacity>
            </technique>
            <technique profile="FCOLLADA">
              <bump>
                <texture texture="ceramic_tif-sampler" texcoord="uv0">
                <extra>
                  <technique profile="OKINO">
                    <weighting>0.050000</weighting>
                    <modulation_source>rgb</modulation_source>
                  </technique>
                  <technique profile="MAX3D">
                    <amount>0.050000</amount>
                  </technique>
                  <technique profile="MAYA">
                    <wrapU>1</wrapU>
                    <wrapV>1</wrapV>
                    <repeatU>1.000000</repeatU>
                    <repeatV>1.000000</repeatV>
                    <offsetU>0.000000</offsetU>
                    <offsetV>0.000000</offsetV>
                    <rotateUV>0.000000</rotateUV>
                  </technique>
                </extra>
                </texture>
              </bump>
            </technique>
          </extra>
        </technique>
      </profile_COMMON>
    </effect>
  </library_effects>
  <library_cameras>
    <camera id="default-camera" name="default_3">
      <optics>
        <technique_common>
          <perspective>
            <xfov>28.072487</xfov>
            <yfov>28.072487</yfov>
            <znear>0.010000</znear>
            <zfar>1000000.000000</zfar>
          </perspective>
        </technique_common>
      </optics>
      <extra>
        <technique profile="OKINO">
          <interestdist>32.015621</interestdist>
        </technique>
        <technique profile="XSI">
          <XSI_Camera>
            <xsi_param sid="interestdist">32.015621</xsi_param>
          </XSI_Camera>
        </technique>
      </extra>
    </camera>
  </library_cameras>
  <library_lights>
    <light id="defaultambient-light" name="defaultambient">
      <technique_common>
        <ambient>
          <color>1.000000 1.000000 1.000000</color>
        </ambient>
      </technique_common>
    </light>
    <light id="light-light" name="light">
      <technique_common>
        <directional>
          <color>1.000000 1.000000 1.000000</color>
        </directional>
      </technique_common>
    </light>
    <light id="light-light_1" name="light_1">
      <technique_common>
        <directional>
          <color>1.000000 1.000000 1.000000</color>
        </directional>
      </technique_common>
    </light>
  </library_lights>
  <library_geometries>
    <geometry id="rectangle_object-mesh" name="rectangle_object">
      <mesh>
        <source id="rectangle_object-mesh-positions">
          <float_array id="rectangle_object-mesh-positions-array" count="12">
		-2.000000 -2.000000 0.000000 -2.000000 2.000000 0.000000 2.000000 
		-2.000000 0.000000 2.000000 2.000000 0.000000</float_array>
          <technique_common>
            <accessor source="#rectangle_object-mesh-positions-array" count="4" stride="3">
              <param name="X" type="float"/>
              <param name="Y" type="float"/>
              <param name="Z" type="float"/>
            </accessor>
          </technique_common>
        </source>
        <source id="rectangle_object-mesh-normals">
          <float_array id="rectangle_object-mesh-normals-array" count="3">
		0.000000 0.000000 1.000000</float_array>
          <technique_common>
            <accessor source="#rectangle_object-mesh-normals-array" count="1" stride="3">
              <param name="X" type="float"/>
              <param name="Y" type="float"/>
              <param name="Z" type="float"/>
            </accessor>
          </technique_common>
        </source>
        <source id="rectangle_object-mesh-map-channel1">
          <float_array id="rectangle_object-mesh-map-channel1-array" count="8">
		0.000000 0.000000 0.000000 1.000000 1.000000 0.000000 1.000000 1.000000</float_array>
          <technique_common>
            <accessor source="#rectangle_object-mesh-map-channel1-array" count="4" stride="2">
              <param name="S" type="float"/>
              <param name="T" type="float"/>
            </accessor>
          </technique_common>
        </source>
        <source id="rectangle_object-mesh-tangent1">
          <float_array id="rectangle_object-mesh-tangent1-array" count="3">
		1.000000 0.000000 0.000000</float_array>
          <technique_common>
            <accessor source="#rectangle_object-mesh-tangent1-array" count="1" stride="3">
              <param name="X" type="float"/>
              <param name="Y" type="float"/>
              <param name="Z" type="float"/>
            </accessor>
          </technique_common>
        </source>
        <source id="rectangle_object-mesh-binormal1">
          <float_array id="rectangle_object-mesh-binormal1-array" count="3">
		0.000000 1.000000 0.000000</float_array>
          <technique_common>
            <accessor source="#rectangle_object-mesh-binormal1-array" count="1" stride="3">
              <param name="X" type="float"/>
              <param name="Y" type="float"/>
              <param name="Z" type="float"/>
            </accessor>
          </technique_common>
        </source>
        <vertices id="rectangle_object-mesh-vertices">
          <input semantic="POSITION" source="#rectangle_object-mesh-positions"/>
        </vertices>
        <polylist material="NUGRAF___SPECIAL_INHERITED_SURFACE_MARKER" count="1">
          <input semantic="VERTEX" source="#rectangle_object-mesh-vertices" offset="0"/>
          <input semantic="NORMAL" source="#rectangle_object-mesh-normals" offset="1"/>
          <input semantic="TEXCOORD" source="#rectangle_object-mesh-map-channel1" offset="2" set="1"/>
          <input semantic="TANGENT" source="#rectangle_object-mesh-tangent1" offset="3" set="1"/>
          <input semantic="BINORMAL" source="#rectangle_object-mesh-binormal1" offset="4" set="1"/>
          <vcount>4 </vcount>
          <p>0 0 0 0 0 2 0 2 0 0 3 0 3 0 0 1 0 1 0 0 </p>
        </polylist>
      </mesh>
    </geometry>
  </library_geometries>
  <library_visual_scenes>
    <visual_scene id="RootNode" name="RootNode">
      <node id="default-node" name="default_3" type="NODE">
        <translate>20.000000 15.000000 20.000000</translate>
        <rotate>-0.503521 0.838431 0.208565 52.581881</rotate>
        <scale>1.000000 1.000000 1.000000</scale>
        <instance_camera url="#default-camera"/>
      </node>
      <node id="defaultambient-node" name="defaultambient" type="NODE">
        <instance_light url="#defaultambient-light"/>
      </node>
      <node id="light-node" name="light" type="NODE">
        <translate>-99.999992 99.999992 49.999996</translate>
        <rotate>-0.809017 -0.500000 0.309017 74.754734</rotate>
        <scale>1.000000 1.000000 1.000000</scale>
        <instance_light url="#light-light"/>
      </node>
      <node id="light-node_1" name="light_1" type="NODE">
        <translate>99.999992 99.999992 49.999996</translate>
        <rotate>-0.809017 0.500000 -0.309017 74.754734</rotate>
        <scale>1.000000 1.000000 1.000000</scale>
        <instance_light url="#light-light_1"/>
      </node>
      <node id="rectangle-node" name="rectangle" type="NODE">
        <translate>0.000000 2.000000 0.000000</translate>
        <instance_geometry url="#rectangle_object-mesh">
          <bind_material>
            <technique_common>
              <instance_material symbol="NUGRAF___SPECIAL_INHERITED_SURFACE_MARKER" 
		target="#floor__ceramic__tiled">
                <bind_vertex_input semantic="uv0" input_semantic="TEXCOORD" 
			input_set="1"/>
              </instance_material>
            </technique_common>
          </bind_material>
        </instance_geometry>
      </node>
      <extra>
        <technique profile="OKINO">
          <scene_bounding_min>-2.000000 0.000000 0.000000</scene_bounding_min>
          <scene_bounding_max>2.000000 4.000000 0.000000</scene_bounding_max>
        </technique>
        <technique profile="MAX3D">
          <frame_rate>30</frame_rate>
        </technique>
        <technique profile="XSI">
          <SI_Scene>
            <xsi_param sid="frameRate">30</xsi_param>
            <xsi_param sid="start">0.000000</xsi_param>
            <xsi_param sid="end">3.333333</xsi_param>
            <xsi_param sid="timing">"SECONDS"</xsi_param>
          </SI_Scene>
          <SI_Ambience>
            <xsi_param sid="red">1.000000</xsi_param>
            <xsi_param sid="green">1.000000</xsi_param>
            <xsi_param sid="blue">1.000000</xsi_param>
          </SI_Ambience>
        </technique>
        <technique profile="FCOLLADA">
          <start_time>0.000000</start_time>
          <end_time>3.333333</end_time>
        </technique>
      </extra>
    </visual_scene>
  </library_visual_scenes>
  <scene>
    <instance_visual_scene url="#RootNode"/>
  </scene>
</COLLADA>
ExampleCollada.dae (15,833 bytes)   

chennes

2021-02-07 22:08

developer   ~0015304

I am able to load the example file under the following:
OS: Windows 10 Version 2004
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23971 (Git)
Build type: Release
Branch: master
Hash: a3fb41502b079a86175e6a414d82956a48bab4e2
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)

Issue History

Date Modified Username Field Change
2020-04-24 21:23 cadandre New Issue
2020-04-24 21:23 cadandre Tag Attached: 0.18
2020-04-24 21:23 cadandre File Added: dae_import_fails.png
2020-04-24 22:38 openBrain Tag Attached: #post-to-forum
2020-04-24 22:38 openBrain Status new => feedback
2020-04-24 22:38 openBrain Note Added: 0014371
2021-02-06 06:49 abdullah Target Version => 0.20
2021-02-07 21:41 chennes Note Added: 0015303
2021-02-07 21:41 chennes File Added: ExampleCollada.dae
2021-02-07 22:08 chennes Note Added: 0015304