-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Actor's property: LineWidth #673
Comments
It is but I think only Firefox support it for WebGL. You can find a blog post from Aashish on that topic for GeoJS. |
webGL and webgl2 do not support line width: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/lineWidth
We should remove that API, was propably imported from vtk c++ without being tested. Drawing triangles would be an option: https://mattdesl.svbtle.com/drawing-lines-is-hard cc: @martinken |
We kept the attribute in C++ and use triangles as needed. We can do the same for Webgl2 should a customer want it. |
Thanks for these informations. Indeed, a customer wants it. It would be greate if anyone has some time to work on it or I will take a look when I have more time. |
Did anyone have some time to look at it ? |
No customer pull yet |
definitely interested in line width drawing for 2d widgets on the 3d view. Can we cheat and draw directly to the canvas instead, or would that be bypassing most of the VTK architecture? |
Hi there @martinken @jourdain, |
linewidth is difficult to implement properly so not super high on the list. But it is very easy to implement poorly so that could be done very quickly. Just make the call to gl.lineWidth(width) in the mapper. Trick is hardware is not required to support anything other than a width of 1.0 so on some systems it will work, on others it will not. |
Also looking for adjusting lineWidth's. @martinken can you be more specific how your workaround shall be used with vtk.js? ... because I tried mapper.gl.lineWidth(width) mapper.lineWidth(width) but this did not work for me. I am by the way a complete beginner in js and vtk.js |
Hello!
and this function to add a Ellipsewidgets:
} |
In COre/Property, there's an attribute LineWidth but when I tried to change it, it doesn't change the display.
Does it really use for the rendering ?
The text was updated successfully, but these errors were encountered: