Search the Community
Showing results for tags 'createlines'.
Hi, I created a mesh using CreateLines function. The function works as it should, but the lines are drawn white. I tried giving it a material, but it throws an error, telling me there is no setter. I tried modifying using mesh.material.setColor3 and 4 and other properties, but they had no effect. How can i change the color of the lines. And also give the lines some shading, just like wireframe materials do. PS: i cant use regular mesh with wireframe material because it creates triangles and adds extra lines. E.g if i draw a square face, then wireframe view shows diagonals too.(
Hi guys, I'm having troubles drawing some lines out of a Vector3 array with MeshBuilder.CreateLines / Mesh.CreateLines.. I've seen many examples of drawing lines in various playgrounds e.g. http://www.babylonjs-playground.com/#1DKDYG#0 - http://www.babylonjs-playground.com/#RF9W9 However, when I try to use these examples in my environment I get the following error: Uncaught TypeError: Cannot set property isPickable of #<i> which has only a getter i @ babylon.2.3.js:5 r @ babylon.2.3.js:10 i @ babylon.2.3.js:18 createScene @ LineScene.js:93 <- my awesome babylon