0

I was working on a Collada file which contains one line with material.

I cannot render this file in Three.js

I am not sure that Three.JS can render lines from Collada files.

What is the problem with this file? It works perfectly in SketchUp but I cannot load it in Three.js. Blender does not support lines and I could not check it there.

Core Xii
  • 6,270
  • 4
  • 31
  • 42
mbehnaam
  • 401
  • 10
  • 24

2 Answers2

0

try the canvas renderer? It has a 'rederLine()' method, the others do not. (line width etc are attributes of the material, btw -- not the line itself)

alternatively, query the contents of the threejs scene and make sure the line is really part of it

bjorke
  • 3,295
  • 1
  • 16
  • 20
0

THREE.ColladaLoader was replaced in 2017 with a new implementation. The current loader does support lines and linestrips definitions.

Mugen87
  • 28,829
  • 4
  • 27
  • 50