-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line Width in LineBasicMaterial #14627
Comments
Duplicate of #10357 Please have a look at the following example which renders lines based on triangles (so called Ribbons or MeshLines). |
Wait why was this closed? I tried the example and even went into the example's source code to try and replicate it but got no where. The linewidth still doesn't change. Also I get an error stating |
https://github.com/mrdoob/three.js/tree/master/examples/js/lines |
The only difference is that I am using Aframe/Threejs with React. Do you have a lead on how to import those files to use it? |
I've seen the example and was trying so hard to replicate it in my project just to get thick lines. |
@joselevelsup keep trying! 💪 |
@joselevelsup The forum is the right place for help requests: |
Hey @joselevelsup , in case this is still a problem for you. What I did was to copy n paste the LineGeometry file out and then in the new file add |
WebGL enabled line charts have been using a thinner line thickness by default, due to a limitation in WebGL [1]. A common workaround is to render line thickness manually, turning each line segment into a rectangle composed of 2 triangles. This change uses the approach to restore the 2 pixel line width found in stable TensorBoard. Notably, line segments used to be representable by 2 vertices are now represented with 6 vertices (2 triangles), so performance is expected to degrade. This change does not take into account the "end caps" of each line, so minor artifacts are noticeable when examining the joint between two consecutive line segments carefully. Addressing the end caps may require adding more triangles, which adds a decent amount of complexity without significant noticeable benefit. Manually checked by: Adding `?fastChart=true#timeseries` to the URL to view WebGL enabled line charts in Time Series. [1] mrdoob/three.js#14627
Description of the problem
So I have tried to adjust the
linewidth
in theLineBasicMaterial
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
Browser
OS
The text was updated successfully, but these errors were encountered: