-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Rendering solid lines with webgl #479
Comments
Hi @anvaka thats unfortunately a know issue in pixi when using really thin 1px lines in webGL. The solution is as you have suggested that for thin lines we should use I have added a new function to the graphics object called |
Works fine on my OSX Safari and Chrome, but I get a stippling pattern in FF when it zooms out. A couple issues with
One solution would be to have a switch for each Graphics instance that enables |
@GoodBoyDigital, @mattdesl thank you very much for quick response. @GoodBoyDigital, When I use @mattdesl, fair points. I'm on OSX too, still always see it (MBP late 2011). Maybe we could have a primitive line object, child of btw, I'm pretty sure I saw Thank you once again for helping out! |
@anvaka making a custom pixi display object is definitely a good way to get the specific result you are after. I removed |
Hey guys, closing this as it feels like this discussion has run its cause. thanks! |
Hi guys! not sure if this issue has been solved as it's closed but I could not figure out a way to get it right. The options I had were
So.. I am not sure where this is heading to but hope I here something! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi guys,
I'm trying to render 1px wide lines with WebGL renderer, but instead of solid lines like this (canvas renderer):
I'm getting dashed lines like this (webgl renderer):
Here is a live demo.
I'm not using anything fancy here. Just a regular
PIXI.Graphics
instancegraphics
, and render lines like this:Is there any way to make them solid?
PS: I know I was able to make them solid using
gl.drawArrays(gl.LINES, ...)
in custom built webgl library (see here) PIXI however usesgl.drawElements(gl.TRIANGLE_STRIP, ...)
. Not sure if this is what's causing the problem.The text was updated successfully, but these errors were encountered: