2

I've created a minimal test case for my question: http://pastebin.com/TPXFgxLj

The expected behavior is a red set of lines, with a line width of 19. The actual behavior is a red set of lines, with a linewidth of (apparently) 1.

What am I doing wrong? I've tested the opacity option of the material, and it is followed (changing it to 1 does produce a more opaque set of lines). The color also seems to be followed correctly, so why isn't the linewidth?

Thanks!

Federico Lebrón
  • 1,772
  • 1
  • 11
  • 10

2 Answers2

2

This was a bug indeed and it just got fixed in r56 dev branch.

Aki
  • 761
  • 5
  • 9
0

Are you running Windows? If so, it is possibly an ANGLE issue, in which case the line width cannot be changed. See this related question.

EDIT: In the cases of THREE.BufferGeometry, the inability to set material.linewidth in THREE.LineBasicMaterial was a bug. It has been fixed in the current r56dev branch.

three.js r.55

Community
  • 1
  • 1
WestLangley
  • 102,557
  • 10
  • 276
  • 276
  • Hi, sorry for not mentioning it. This is OS X 10.8.2 (Mountain Lion), running Chrome 24.0. Does my example render correctly for you on Linux? – Federico Lebrón Feb 01 '13 at 17:25
  • Note that if I just use a Geometry, this works as expected. The testcase which does increase line width is at: http://pastebin.com/fcm5cnNd This does show a thick red line, on the same platform and OS as above. – Federico Lebrón Feb 01 '13 at 18:11
  • I'm on OSX, too, and unfortunatley, I am now not able to test for a few days. Sorry. You might get more suport by posting a live example at jsfiddle.net. This makes it easier for people to help you. In the mean time, pinging @mrdoob ... – WestLangley Feb 01 '13 at 19:21