-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 not working #207
Comments
This is becasue we have linewidth set as context parameter, which we set as uniform in shader. However shader never uses the linewidth value. We can do one of two things I think:
|
guess other option would be to remove LineWidth instruction, and add width parameter to Line instruction, and have the quads computed there, when points or width changes |
The issue with quad is overlapping. draw a line on paper, and dilate it by hand. All the corner will by default overlap previous/next quad. How to avoid that ?
|
make it shorter by 1/2 linewidth, and then draw 2 triangles to connect the lines. I.e. you have to draw the joints yourslef. On Mon, Sep 26, 2011 at 1:14 PM, Mathieu Virbel
|
Nop, cannot work => (1, 1, 2, 2, 3, 3) => nop. :) |
vertices are float no? OpenGL should handle it still. On Mon, Sep 26, 2011 at 2:52 PM, Mathieu Virbel
|
I have C + glsl code from another project to draw very nice anti aliased lines with good joints. but I'm not sure about sure using seperate shader for specific instructions is good, since it will break when user set another shader. |
That not working if you have alpha. Because you'll see the joint :/ |
I'll remove the instructions from Kivy right now, until we found a proper solution. Using an external shader might be overkill, but some people might want it. |
Has there been any progress on this issue? It seemed like the glLineWidth option was the most straightforward, but the shader option was more popular. Is there an unknown difficulty with using glLineWidth? With either solution (context instruction or shader), will it be possible to add line width to a Bezier curve? |
No, glLineWidth was the previous implementation, but it's not working under all the case, specially on mobile. This will work when somebody will start to implement a Path class, where you can add point, stoke, extrude etc. I did'nt started yet, time is missing... and it's quite a big part to implement :) |
Understood - thanks for the reply! On Fri, Apr 20, 2012 at 7:50 PM, Mathieu Virbel
|
@tito I think this one can be closed :) |
jw_carleton reported that LineWidth instruction is not working:
The text was updated successfully, but these errors were encountered: