Code Monkey home page Code Monkey logo

assimp2json's People

Contributors

acgessler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

assimp2json's Issues

Failure reading file withe the win32 binaries

Hi, I am trying to use the win32 binaries to read an ifc file with the following line:
C:\assimp2json-master\bin\Debug\assimp2json --log --verbose rac_basic_sample_project.ifc test.json
and it outputs:
failure to read file rac_basic_sample_project.ifc
I have successfully converted this file using the online converter so it seems like there is an issue with the win32 binaries... is it possible to have a look and update the binaries to their latest version please?
I have been trying to build it myself with CMake and Visual Studio 2013 and it does not find some libraries so I am stuck...
Any help would be greatly appreciated!!
Best
Alex

Converted models are in black sometimes

HI,

Really thanks for the great work,

if we convert some models in the OBJMTL or collada models, some of the time they are looking black, no textures are applying, so the models are looking very bad, what is the reason behind on it??

compile error with gtest

Sorry if I'm missing something obvious...
but I'm doing the usual "mkdir build && cd build && cmake ../ && make"
and getting a gtest error. Perhaps you're missing a CMakeLists or I'm missing a library or something?

Full output of make:

[ 79%] Built target assimp
[ 82%] Built target assimp2json
[ 82%] Performing update step for 'gtest'
Current branch master is up to date.
[ 82%] Performing configure step for 'gtest'
CMake Error at /home/kvd/www/other/assimp2json/build/assimp/test/gtest/src/gtest-stamp/gtest-    configure-.cmake:16 (message):
  Command failed: 1

   '/usr/bin/cmake' '-DCMAKE_BUILD_TYPE=' '-Dgtest_force_shared_crt=ON'             '-Dgtest_disable_pthreads:BOOL=OFF' '-GUnix Makefiles' '/home/kvd/www/other/assimp2json/build    /assimp/test/gtest/src/gtest'

  See also

    /home/kvd/www/other/assimp2json/build/assimp/test/gtest/src/gtest-stamp/gtest-configure-*.log


assimp/test/CMakeFiles/gtest.dir/build.make:105: recipe for target 'assimp/test/gtest/src/gtest-stamp/gtest-configure' failed
make[2]: *** [assimp/test/gtest/src/gtest-stamp/gtest-configure] Error 1
CMakeFiles/Makefile2:235: recipe for target 'assimp/test/CMakeFiles/gtest.dir/all' failed
make[1]: *** [assimp/test/CMakeFiles/gtest.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

The logs show:
CMake Error: The source directory "/home/kvd/www/other/assimp2json/build/assimp/test/gtest/src/gtest" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.

Environment is Ubuntu 16.04.
Cheers

failure reading file

Why is this not convertable?

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
  <asset>
    <contributor>
      <author>Assimp</author>
      <authoring_tool>Assimp Exporter</authoring_tool>
    </contributor>
    <created>2015-05-27T23:32:21</created>
    <modified>2015-05-27T23:32:21</modified>
    <unit name="meter" meter="1" />
    <up_axis>Z_UP</up_axis>
  </asset>
  <library_effects>
    <effect id="m0DefaultMaterial-fx" name="m0DefaultMaterial">
      <profile_COMMON>
        <technique sid="standard">
          <phong>
            <ambient>
              <color sid="ambient">0.05   0.05   0.05   1</color>
            </ambient>
            <diffuse>
              <color sid="diffuse">0.9   0.9   0.9   1</color>
            </diffuse>
            <specular>
              <color sid="specular">1   1   1   1</color>
            </specular>
          </phong>
        </technique>
      </profile_COMMON>
    </effect>
  </library_effects>
  <library_materials>
    <material id="m0DefaultMaterial" name="m0DefaultMaterial">
      <instance_effect url="#m0DefaultMaterial-fx"/>
    </material>
  </library_materials>
  <library_geometries>
    <geometry id="meshId0" name="meshId0_name" >
      <mesh>
        <source id="meshId0-positions" name="meshId0-positions">
          <float_array id="meshId0-positions-array" count="600"> -521.565 351.345 0 -523.815 351.345 0 -544.442 351.345 0 -540.692 351.345 0 -522.065 352.595 0 -522.065 350.095 0 -519.565 352.595 0 -519.565 350.095 0 -520.065 351.345 0 -517.815 351.345 0 -479.007 351.567 0 -475.257 351.567 0 -453.759 351.2 0 -456.009 351.2 0 -454.259 352.45 0 -454.259 349.95 0 -451.759 352.45 0 -451.759 349.95 0 -452.259 351.2 0 -450.009 351.2 0 -415.971 351.913 0 -412.221 351.913 0 -384.625 352.756 0 -384.625 350.256 0 -384.125 351.506 0 -386.375 351.506 0 -382.125 352.756 0 -382.125 350.256 0 -382.625 351.506 0 -380.375 351.506 0 -524.214 524.854 0 -521.814 524.854 0 -540.95 439.974 0 -537.95 439.974 0 -527.61 440.85 0 -527.61 439.45 0 -527.11 440.15 0 -528.81 440.15 0 -526.21 440.85 0 -526.21 439.45 0 -526.71 440.15 0 -525.01 440.15 0 -485.349 440.634 0 -483.349 440.634 0 -500.947 440.634 0 -497.747 440.634 0 -486.849 441.634 0 -486.849 439.634 0 -486.349 440.634 0 -488.349 440.634 0 -484.849 441.634 0 -484.849 439.634 0 -453.753 440.808 0 -450.553 440.808 0 -437.889 440.979 0 -435.889 440.979 0 -439.389 441.979 0 -439.389 439.979 0 -438.889 440.979 0 -440.889 440.979 0 -437.389 441.979 0 -437.389 439.979 0 -396.297 440.784 0 -393.097 440.784 0 -381.42 441.784 0 -381.42 439.784 0 -380.92 440.784 0 -382.92 440.784 0 -379.42 441.784 0 -379.42 439.784 0 -379.92 440.784 0 -377.92 440.784 0 -519.649 525.35 0 -519.649 524.45 0 -519.149 524.9 0 -520.599 524.9 0 -518.749 525.35 0 -518.749 524.45 0 -519.249 524.9 0 -517.799 524.9 0 -473.202 524.954 0 -470.602 524.954 0 -467.591 525.343 0 -467.591 524.443 0 -467.091 524.893 0 -468.541 524.893 0 -466.691 525.343 0 -466.691 524.443 0 -467.191 524.893 0 -465.741 524.893 0 -418.399 525.024 0 -416.949 525.024 0 -426.266 525.024 0 -423.666 525.024 0 -418.799 525.474 0 -418.799 524.574 0 -418.299 525.024 0 -419.749 525.024 0 -417.899 525.474 0 -417.899 524.574 0 -344.381 352.905 0 -340.631 352.905 0 -315.115 353.999 0 -315.115 351.499 0 -314.615 352.749 0 -316.865 352.749 0 -312.615 353.999 0 -312.615 351.499 0 -313.115 352.749 0 -310.865 352.749 0 -340.092 441.081 0 -336.592 441.081 0 -322.945 441.365 0 -325.045 441.365 0 -323.445 442.465 0 -323.445 440.265 0 -321.245 442.465 0 -321.245 440.265 0 -321.745 441.365 0 -319.645 441.365 0 -281.901 441.149 0 -278.401 441.149 0 -264.402 442.249 0 -264.402 440.049 0 -263.902 441.149 0 -266.002 441.149 0 -262.202 442.249 0 -262.202 440.049 0 -262.702 441.149 0 -260.602 441.149 0 -226.781 441.533 0 -223.281 441.533 0 -365.339 525.1 0 -362.739 525.1 0 -357.428 525.462 0 -357.428 524.562 0 -356.928 525.012 0 -358.378 525.012 0 -356.528 525.462 0 -356.528 524.562 0 -357.028 525.012 0 -355.578 525.012 0 -320.464 525.319 0 -317.664 525.319 0 -311.469 526.042 0 -311.469 524.842 0 -310.969 525.442 0 -312.569 525.442 0 -310.269 526.042 0 -310.269 524.842 0 -310.769 525.442 0 -309.169 525.442 0 -265.341 525.437 0 -266.991 525.437 0 -275.737 525.516 0 -272.937 525.516 0 -265.841 526.087 0 -265.841 524.787 0 -264.541 526.087 0 -264.541 524.787 0 -265.041 525.437 0 -263.391 525.437 0 -237.814 525.827 0 -235.014 525.827 0 -226.351 526.202 0 -226.351 524.902 0 -225.851 525.552 0 -227.501 525.552 0 -225.051 526.202 0 -225.051 524.902 0 -225.551 525.552 0 -223.901 525.552 0 -208.08 441.533 0 -210.33 441.533 0 -208.58 442.783 0 -208.58 440.283 0 -206.08 442.783 0 -206.08 440.283 0 -206.58 441.533 0 -204.33 441.533 0 -177.273 441.401 0 -173.523 441.401 0 -158.788 442.651 0 -158.788 440.151 0 -158.288 441.401 0 -160.538 441.401 0 -156.288 442.651 0 -156.288 440.151 0 -156.788 441.401 0 -154.538 441.401 0 -184.745 526.057 0 -181.745 526.057 0 -172.753 526.057 0 -171.053 526.057 0 -173.653 526.757 0 -173.653 525.357 0 -173.153 526.057 0 -174.853 526.057 0 -172.253 526.757 0 -172.253 525.357 0 </float_array>
          <technique_common>
            <accessor count="200" offset="0" source="#meshId0-positions-array" stride="3">
              <param name="X" type="float" />
              <param name="Y" type="float" />
              <param name="Z" type="float" />
            </accessor>
          </technique_common>
        </source>
        <source id="meshId0-color0" name="meshId0-color0">
          <float_array id="meshId0-color0-array" count="600"> 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 </float_array>
          <technique_common>
            <accessor count="200" offset="0" source="#meshId0-color0-array" stride="3">
              <param name="R" type="float" />
              <param name="G" type="float" />
              <param name="B" type="float" />
            </accessor>
          </technique_common>
        </source>
        <vertices id="meshId0-vertices">
          <input semantic="POSITION" source="#meshId0-positions" />
          <input semantic="COLOR" source="#meshId0-color0"  />
        </vertices>
        <lines count="100" material="defaultMaterial">
          <input offset="0" semantic="VERTEX" source="#meshId0-vertices" />
          <p>0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 </p>
        </lines>
      </mesh>
    </geometry>
    <geometry id="meshId1" name="meshId1_name" >
      <mesh>
        <source id="meshId1-positions" name="meshId1-positions">
          <float_array id="meshId1-positions-array" count="240"> -543.442 350.095 0 -541.692 350.095 0 -543.442 352.595 0 -541.692 352.595 0 -478.007 350.317 0 -476.257 350.317 0 -478.007 352.817 0 -476.257 352.817 0 -414.971 350.663 0 -413.221 350.663 0 -414.971 353.163 0 -413.221 353.163 0 -539.95 439.274 0 -538.95 439.274 0 -539.95 440.674 0 -538.95 440.674 0 -523.214 524.404 0 -522.814 524.404 0 -523.214 525.304 0 -522.814 525.304 0 -499.947 439.634 0 -498.747 439.634 0 -499.947 441.634 0 -498.747 441.634 0 -452.753 439.808 0 -451.553 439.808 0 -452.753 441.808 0 -451.553 441.808 0 -395.297 439.784 0 -394.097 439.784 0 -395.297 441.784 0 -394.097 441.784 0 -472.202 524.504 0 -471.602 524.504 0 -472.202 525.404 0 -471.602 525.404 0 -425.266 524.574 0 -424.666 524.574 0 -425.266 525.474 0 -424.666 525.474 0 -343.381 351.655 0 -341.631 351.655 0 -343.381 354.155 0 -341.631 354.155 0 -339.092 439.982 0 -337.592 439.982 0 -339.092 442.182 0 -337.592 442.182 0 -280.901 440.049 0 -279.401 440.049 0 -280.901 442.249 0 -279.401 442.249 0 -225.781 440.283 0 -224.281 440.283 0 -225.781 442.783 0 -224.281 442.783 0 -364.339 524.65 0 -363.739 524.65 0 -364.339 525.55 0 -363.739 525.55 0 -319.464 524.719 0 -318.664 524.719 0 -319.464 525.919 0 -318.664 525.919 0 -274.737 524.866 0 -273.937 524.866 0 -274.737 526.166 0 -273.937 526.166 0 -236.814 525.177 0 -236.014 525.177 0 -236.814 526.477 0 -236.014 526.477 0 -176.273 440.151 0 -174.523 440.151 0 -176.273 442.651 0 -174.523 442.651 0 -183.745 525.357 0 -182.745 525.357 0 -183.745 526.757 0 -182.745 526.757 0 </float_array>
          <technique_common>
            <accessor count="80" offset="0" source="#meshId1-positions-array" stride="3">
              <param name="X" type="float" />
              <param name="Y" type="float" />
              <param name="Z" type="float" />
            </accessor>
          </technique_common>
        </source>
        <source id="meshId1-color0" name="meshId1-color0">
          <float_array id="meshId1-color0-array" count="240"> 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 </float_array>
          <technique_common>
            <accessor count="80" offset="0" source="#meshId1-color0-array" stride="3">
              <param name="R" type="float" />
              <param name="G" type="float" />
              <param name="B" type="float" />
            </accessor>
          </technique_common>
        </source>
        <vertices id="meshId1-vertices">
          <input semantic="POSITION" source="#meshId1-positions" />
          <input semantic="COLOR" source="#meshId1-color0"  />
        </vertices>
        <lines count="40" material="defaultMaterial">
          <input offset="0" semantic="VERTEX" source="#meshId1-vertices" />
          <p>0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 </p>
        </lines>
      </mesh>
    </geometry>
  </library_geometries>
  <library_visual_scenes>
    <visual_scene id="&lt;DXF_ROOT&gt;" name="&lt;DXF_ROOT&gt;">
      <node id="FRONT_MID" name="FRONT_MID">
        <matrix>1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1</matrix>
        <instance_geometry url="#meshId0">
          <bind_material>
            <technique_common>
              <instance_material symbol="defaultMaterial" target="#m0DefaultMaterial" />
            </technique_common>
          </bind_material>
        </instance_geometry>
      </node>
      <node id="FRONT_SKN" name="FRONT_SKN">
        <matrix>1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1</matrix>
        <instance_geometry url="#meshId1">
          <bind_material>
            <technique_common>
              <instance_material symbol="defaultMaterial" target="#m0DefaultMaterial" />
            </technique_common>
          </bind_material>
        </instance_geometry>
      </node>
    </visual_scene>
  </library_visual_scenes>
  <scene>
    <instance_visual_scene url="#&lt;DXF_ROOT&gt;" />
  </scene>
</COLLADA>

Allow configuration of flags

I have some models that require AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE with a value of less than 70. Any chance to supply a config file with settings as a command line param?

My simplest test case is to create a 'cone' in blender and save. The bottom surface tris have 'funky' normals around the edge due to shared vertices with the sides.
image1

/usr/bin/ld: cannot open output file assimp2json: Is a directory

Building assimp works fine after a bit of tinkering, but the Readme.md is pretty unclear about building assimp2json.
When building from https://github.com/assimp/assimp2json, the error "/usr/bin/ld: cannot open output file assimp2json: Is a directory" is produced.
When searching the web for this problem, I found that with other software it was fine to delete the conflicting directory, but that is not the case here, the contents are required.
Also renaming the dir on the filesystem and the references to the dir in the CMakeLists.txt, did not work, as it resulted in the output file name being changed to that of the new dir name.
In the make manual I can not find an option to change the output path. And after searching the web some more I feel stuck.

Less sussinct output around the error: "
Linking CXX shared library ../../lib/libassimp.so
[ 97%] Built target assimp
Scanning dependencies of target assimp2json
[ 98%] Building CXX object CMakeFiles/assimp2json.dir/assimp2json/main.cpp.o
[ 98%] Building CXX object CMakeFiles/assimp2json.dir/assimp2json/json_exporter.cpp.o
[ 99%] Building C object CMakeFiles/assimp2json.dir/assimp2json/cencode.c.o
[100%] Building CXX object CMakeFiles/assimp2json.dir/assimp2json/mesh_splitter.cpp.o
Linking CXX executable assimp2json
/usr/bin/ld: cannot open output file assimp2json: Is a directory
collect2: error: ld returned 1 exit status
CMakeFiles/assimp2json.dir/build.make:162: recipe for target 'assimp2json' failed
make[2]: *** [assimp2json] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/assimp2json.dir/all' failed
make[1]: *** [CMakeFiles/assimp2json.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
".

Commands I use to build: "
git clone https://github.com/assimp/assimp2json
cd assimp2json
git submodule init
git submodule update
cmake CMakeLists.txt
make
".

Also tried "cmake CMakeLists.txt -G 'Unix Makefiles'" as stated in https://github.com/assimp/assimp/blob/master/INSTALL, to no avail.

As https://github.com/assimp/assimp2json is forked from https://github.com/acgessler/assimp2json which has more recent commits (2013 vs. 2015), I also tried building that with the same commands.
And changed line 34 of assimp/cmake-modules/AddGTest.cmake from "GIT_REPOSITORY https://chromium.googlesource.com/external/googletest" to "GIT_REPOSITORY https://github.com/google/googletest/".

This makes a bit of progress, but not enough: "
Linking CXX shared library ../../lib/libassimp.so
[ 80%] Built target assimp
Scanning dependencies of target assimp2json
[ 80%] Building CXX object CMakeFiles/assimp2json.dir/assimp2json/main.cpp.o
[ 81%] Building CXX object CMakeFiles/assimp2json.dir/assimp2json/json_exporter.cpp.o
[ 81%] Building C object CMakeFiles/assimp2json.dir/assimp2json/cencode.c.o
[ 82%] Building CXX object CMakeFiles/assimp2json.dir/assimp2json/mesh_splitter.cpp.o
Linking CXX executable bin/assimp2json
[ 82%] Built target assimp2json
Scanning dependencies of target gtest
[ 82%] Creating directories for 'gtest'
[ 83%] Performing download step (git clone) for 'gtest'
-- gtest download command succeeded. See also /opt/assimp2json/assimp/test/gtest/src/gtest-stamp/gtest-download-*.log

[ 84%] No patch step for 'gtest'
[ 84%] Performing update step for 'gtest'
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 84%] Performing configure step for 'gtest'
-- gtest configure command succeeded. See also /opt/assimp2json/assimp/test/gtest/src/gtest-stamp/gtest-configure-*.log

[ 85%] Performing build step for 'gtest'
-- gtest build command succeeded. See also /opt/assimp2json/assimp/test/gtest/src/gtest-stamp/gtest-build-*.log

[ 86%] No install step for 'gtest'
[ 86%] Completed 'gtest'
[ 86%] Built target gtest
Scanning dependencies of target unit
[ 86%] Building C object assimp/test/CMakeFiles/unit.dir/unit/CCompilerTest.c.o
[ 87%] Building CXX object assimp/test/CMakeFiles/unit.dir/unit/Main.cpp.o
In file included from /opt/assimp2json/assimp/test/unit/Main.cpp:1:0:
/opt/assimp2json/assimp/test/unit/UnitTestPCH.h:11:25: fatal error: gtest/gtest.h: No such file or directory
#include <gtest/gtest.h>
^
compilation terminated.
assimp/test/CMakeFiles/unit.dir/build.make:77: recipe for target 'assimp/test/CMakeFiles/unit.dir/unit/Main.cpp.o' failed
make[2]: *** [assimp/test/CMakeFiles/unit.dir/unit/Main.cpp.o] Error 1
CMakeFiles/Makefile2:250: recipe for target 'assimp/test/CMakeFiles/unit.dir/all' failed
make[1]: *** [assimp/test/CMakeFiles/unit.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
".

I imagine other were able to build assimp2json in a linux environment and might share how to?
Or that others can confirm that this is not working? Or perhaps work on a solution together.
Help would be appreciated.

Compile with xcode error

xcode cant find these two:

 #include <assimp.hpp>
 #include <export.hpp>

Any suggestion whats wrong or how to solve this?

What --flags are an option?

The README specifies flags can be passed on to the command line however I do not see what those flags are. Is this documented anywhere?

convert fbx to json not working

while convert the model from fbx to json, it is not working, i can't see any output or error, also i want to know that the converter is work with the animated models?

json2assimp

I'm writing a json2assimp importer, and I was wondering if you cared to collaborate. I will be using your format, or a newly defined format X3D/JSON that I've been writing loaders/converters for in JavaScript. This will allow us to roundtrip the JSON back to assimp for verification. Thanks for any input/collaboration you provide.

John Carlson

Children not being written

I'm finding that anything beyond 2 levels deep isn't actually being included - is that a bug in assimp or in this?

How to convert the OBJMTL models into json??

How can we convert the OBJMTL models into json, any command available to do it?? because the models should be here in object.obj and object.mtl files, how can we combine them and convert it into json??

missing material properties

I have someof material properties missing.

Here's what assimp dump says material properties are:

<MatPropertyList  num="17">
			<MatProperty key="?mat.name" 
			type="string" tex_usage="n/a" tex_index="0">
				"Wall"
			</MatProperty>
			<MatProperty key="$clr.diffuse" 
			type="float" tex_usage="n/a" tex_index="0" size="3">
				0.588000 0.588000 0.588000 
			</MatProperty>
			<MatProperty key="$clr.emissive" 
			type="float" tex_usage="n/a" tex_index="0" size="3">
				0.000000 0.000000 0.000000 
			</MatProperty>
			<MatProperty key="$clr.ambient" 
			type="float" tex_usage="n/a" tex_index="0" size="3">
				0.588000 0.588000 0.588000 
			</MatProperty>
			<MatProperty key="$clr.specular" 
			type="float" tex_usage="n/a" tex_index="0" size="3">
				0.315000 0.315000 0.315000 
			</MatProperty>
			<MatProperty key="$mat.opacity" 
			type="float" tex_usage="n/a" tex_index="0" size="1">
				1.000000 
			</MatProperty>
			<MatProperty key="$mat.reflectivity" 
			type="float" tex_usage="n/a" tex_index="0" size="1">
				0.000000 
			</MatProperty>
			<MatProperty key="$mat.shinpercent" 
			type="float" tex_usage="n/a" tex_index="0" size="1">
				5.278031 
			</MatProperty>
			<MatProperty key="$mat.shininess" 
			type="float" tex_usage="n/a" tex_index="0" size="1">
				5.278031 
			</MatProperty>
			<MatProperty key="$mat.bumpscaling" 
			type="float" tex_usage="n/a" tex_index="0" size="1">
				1.000000 
			</MatProperty>
			<MatProperty key="$mat.displacementscaling" 
			type="float" tex_usage="n/a" tex_index="0" size="1">
				1.000000 
			</MatProperty>
			<MatProperty key="$tex.file" 
			type="string" tex_usage="Diffuse" tex_index="0">
				"T_Wall_white.jpg"
			</MatProperty>
			<MatProperty key="$tex.uvtrafo" 
			type="float" tex_usage="Diffuse" tex_index="0" size="5">
				0.000000 0.000000 1.000000 1.000000 0.000000 
			</MatProperty>
			<MatProperty key="$tex.uvwsrc" 
			type="integer" tex_usage="Diffuse" tex_index="0" size="1">
				0 
			</MatProperty>
			<MatProperty key="$tex.file" 
			type="string" tex_usage="Emissive" tex_index="0">
				"_Wall_Living_RoomVRayCompleteMap.jpg"
			</MatProperty>
			<MatProperty key="$tex.uvtrafo" 
			type="float" tex_usage="Emissive" tex_index="0" size="5">
				0.000000 0.000000 1.000000 1.000000 0.000000 
			</MatProperty>
			<MatProperty key="$tex.uvwsrc" 
			type="integer" tex_usage="Emissive" tex_index="0" size="1">
				1 
			</MatProperty>
		</MatPropertyList>

Here is what it looks like in assimp2json output:
screen shot 2019-02-08 at 23 32 31

Win32 binaries

Sorry for stupid question but why assimp2json.exe works on one computer in Windows 8.1 but doesn't work on other in Windows XP? What are the system requirements?

ubuntu build error

I am trying to run make assimp2json after cmake ./ and I get this:
screen shot 2016-12-06 at 21 26 05

I was thinking where do I add that -fPIC flag, and opened flags.make, and it was already there:
screen shot 2016-12-06 at 21 25 29

What am I doing wrong? Thanks.

Install with Homebrew?

It'd be nice if we could install this using homebrew rather than having to build it manually.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.