react-planner icon indicating copy to clipboard operation
react-planner copied to clipboard

Collada Exporter

Open ghost opened this issue 6 years ago • 3 comments

@JaccoGoris I have just tried out your Collada Exporter, but I get some errors. Am I doing something wrong?

This is what my 3D model looks like in the browser: collada-exporter-1

And here is what it looks like in view3dscene, after Collada export:

collada-export

Here are the errors I get:

view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: Indexes in <p> suddenly end, in the middle of a vertex
view3dscene: Collada warning: Indexes in <p> suddenly end, in the middle of a vertex
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: Indexes in <p> suddenly end, in the middle of a vertex
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: Indexes in <p> suddenly end, in the middle of a vertex
view3dscene: Collada warning: Indexes in <p> suddenly end, in the middle of a vertex
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: Indexes in <p> suddenly end, in the middle of a vertex
view3dscene: Collada warning: Indexes in <p> suddenly end, in the middle of a vertex
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: <param> type "uint8" is not supported
view3dscene: Collada warning: Indexes in <p> suddenly end, in the middle of a vertex
view3dscene: VRML/X3D warning: Invalid index for field TextureCoordinate(Mesh2-texcoord).point (MFVec2f)
view3dscene: Texture warning: Error EFOpenError when loading texture from URL "file:///home/Downloads/image-2.png": Unable to open file "/home/Downloads/image-2.png"
view3dscene: Texture warning: Error EFOpenError when loading texture from URL "file:///home/Downloads/image-1.png": Unable to open file "/home/Downloads/image-1.png"
view3dscene: Texture warning: Error EFOpenError when loading texture from URL "file:///home/Downloads/image-4.png": Unable to open file "/home/Downloads/image-4.png"
view3dscene: Texture warning: Error EFOpenError when loading texture from URL "file:///home/Downloads/image-3.png": Unable to open file "/home/Downloads/image-3.png"
view3dscene: Texture warning: Error EFOpenError when loading texture from URL "file:///home/Downloads/image-6.png": Unable to open file "/home/Downloads/image-6.png"
view3dscene: Texture warning: Error EFOpenError when loading texture from URL "file:///home/Downloads/image-5.png": Unable to open file "/home/Downloads/image-5.png"
view3dscene: Texture warning: Error EFOpenError when loading texture from URL "file:///home/Downloads/image-8.png": Unable to open file "/home/Downloads/image-8.png"
view3dscene: Texture warning: Error EFOpenError when loading texture from URL "file:///home/Downloads/image-7.png": Unable to open file "/home/Downloads/image-7.png"

ghost avatar Jun 25 '19 08:06 ghost

Ooh, that's interesting.

Under the hood, it uses the normal threejs Collada export, which works for most 3D software like Blender, 3Ds Max, etc, and everything that imports using the assimp library.

It seems like this software doesn't fully support the Collada format. can you try with blender and see what comes out? Thanks!

JaccoGoris avatar Jun 26 '19 07:06 JaccoGoris

Blender works fine: Screenshot from 2019-06-26 10-51-59

Do you know if it also works as fine in SketchUp?

ghost avatar Jun 26 '19 08:06 ghost

It should, as far as I can remember sketchup had very good collada support

JaccoGoris avatar Jun 26 '19 09:06 JaccoGoris