Skip to content
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

linewidth has no effect on LineBasicMaterial #192

Closed
JuanCab opened this issue Jun 26, 2018 · 3 comments
Closed

linewidth has no effect on LineBasicMaterial #192

JuanCab opened this issue Jun 26, 2018 · 3 comments

Comments

@JuanCab
Copy link

JuanCab commented Jun 26, 2018

So, I have been playing with sketching curves on a 3D surface using the following snippet

import pythreejs as p3j

"""
Much code snipped out
"""

vertices1= curve_points.tolist()
curve_color = ['yellow']*len(curve_points.tolist)
curve_geom = p3j.Geometry(vertices= vertices1, colors= curve_color)
curve = p3j.Line(geometry= curve_geom, material=p3j.LineBasicMaterial(linewidth=5, vertexColors='VertexColors'))

Turns out regardless of the linewidth value I set for the p3j.LineBasicMaterial, it always seems to come up with a width of 1. There is documentation in the three.js website for LineBasicMaterial that there is a known OpenGL Windows bug that works like this, but I am doing this on a macOS machine. Is the line width trait being ignored?

@JuanCab JuanCab changed the title line width has no effect on linewidth has no effect on LineBasicMaterial Jun 26, 2018
@vidartf
Copy link
Member

vidartf commented Jun 27, 2018

What browser are you using? I think this would be a relevant issue: mrdoob/three.js#10357

@JuanCab
Copy link
Author

JuanCab commented Jun 27, 2018

Yep, it’s chrome and thus I hit that Bug. Apparently the fix someone worked out has not yet been incorprosated into three.js

@vidartf
Copy link
Member

vidartf commented Oct 2, 2018

I'm in the process of updating to r97 of three, and decided to include the example code for thick lines that was released with r96 (I think). It should be usable from the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants