question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Line Width in LineBasicMaterial

See original GitHub issue
Description of the problem

So I have tried to adjust the linewidth in the LineBasicMaterial but it only renders out as 1 pixel instead of 5 (which is where I am trying to adjust). I have tried to preview this in Chrome, Firefox, and Safari but to no success. Any idea on why this isn’t working. I read the docs and followed the way its used.

Three.js version
  • Dev
  • r95
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
mrdoobcommented, Aug 3, 2018

@joselevelsup keep trying! 💪

1reaction
Mugen87commented, Aug 3, 2018

LineGeometry is part of the examples not of the core. You have to include the files from:

https://github.com/mrdoob/three.js/tree/master/examples/js/lines

Read more comments on GitHub >

github_iconTop Results From Across the Web

LineBasicMaterial#linewidth – three.js docs
Controls line thickness. Default is 1 . Due to limitations of the OpenGL Core Profile with the WebGL renderer on most platforms linewidth...
Read more >
Thickness of lines using THREE.LineBasicMaterial
It works just fine, but when i change the value of "linewidth" to a bigger OR smaller value, i see NO difference in...
Read more >
How do i change line width : r/threejs - Reddit
Hi, I'm using lineBasicMaterial to draw lines. but I can't update the line width. I tried to use meshline npm package but the...
Read more >
Fat Lines in threejs by making use of additional files
This is a post on using some additional assets with threejs to make fat lines, or lines that have a thickness larger than...
Read more >
Materials you can use for a line geometry | Learning Three.js
LineBasicMaterial : The basic material for a line allows you to set the colors , linewidth , linecap , and linejoin properties. THREE....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found