Ah that's by Nico (@rougier on github)! He's one of the original
maintainers of vispy and glumpy. You may want to look at his glumpy
project (similar to vispy but currently has different goals) and see if
he's updated this DashAtlas implementation there. We might be able to
copy things over to vispy.
If you want more help I'd suggest creating a github issue and mentioning
@rougier and me (@djhoese) in it.
Dave
On 6/29/20 11:02 AM, Fahri Basegmez wrote:
> Dave, thanks for the prompt reply. I found this paper titled
> Shader-Based Antialiased,Dashed, Stroked Polylines at
>
http://jcgt.org/published/0002/02/08/paper.pdf. It also talks about
> "dash atlas". I did not realize that GL_LINE_STIPPLE was deprecated in
> OpenGL 3.1.
>
> Thanks again,
>
> Fahri
>
> On Monday, June 29, 2020 at 9:16:05 AM UTC-4, David Hoese wrote:
>
> Hi Fahri,
>
> As far as I understand there is no direct translation from old
> stippled lines and new versions of OpenGL. You can either use the
> default `gl` line method for LineVisual and make your own dash lines
> by generating the individual line segments yourself (use
> connect='segments') or you could look at the agg method and updating
> it to work better for dashed lines. It seems there was something
> started here with a "DashAtlas" class but it is hardcoded to be
> solid lines:
>
>
https://github.com/vispy/vispy/blob/b5f6228c7c4ec734206e9556033f5c3e7941616c/vispy/visuals/line/line.py#L411-L412
> <
https://github.com/vispy/vispy/blob/b5f6228c7c4ec734206e9556033f5c3e7941616c/vispy/visuals/line/line.py#L411-L412>
>
https://github.com/vispy/vispy/blob/b5f6228c7c4ec734206e9556033f5c3e7941616c/vispy/visuals/line/dash_atlas.py
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "vispy" group.
> To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/vispy/43XR8-bm5VE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
>
vispy+un...@googlegroups.com
> <mailto:
vispy+un...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/vispy/7678e998-42aa-4150-96e2-c98ec03dd261o%40googlegroups.com
> <
https://groups.google.com/d/msgid/vispy/7678e998-42aa-4150-96e2-c98ec03dd261o%40googlegroups.com?utm_medium=email&utm_source=footer>.