{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/36","labels_url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/36/comments","events_url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/36/events","html_url":"https://github.com/JuliaGL/GLVisualize.jl/issues/36","id":118165690,"number":36,"title":"Closing window and rerunning glscreen broken","user":{"login":"dlfivefifty","id":1229737,"avatar_url":"https://avatars.githubusercontent.com/u/1229737?v=3","gravatar_id":"","url":"https://api.github.com/users/dlfivefifty","html_url":"https://github.com/dlfivefifty","followers_url":"https://api.github.com/users/dlfivefifty/followers","following_url":"https://api.github.com/users/dlfivefifty/following{/other_user}","gists_url":"https://api.github.com/users/dlfivefifty/gists{/gist_id}","starred_url":"https://api.github.com/users/dlfivefifty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlfivefifty/subscriptions","organizations_url":"https://api.github.com/users/dlfivefifty/orgs","repos_url":"https://api.github.com/users/dlfivefifty/repos","events_url":"https://api.github.com/users/dlfivefifty/events{/privacy}","received_events_url":"https://api.github.com/users/dlfivefifty/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-21T03:17:21Z","updated_at":"2015-11-24T23:30:58Z","closed_at":"2015-11-24T20:34:34Z","body":"Running the following, then closing the window, then running again gives an error:\r\n\r\n```julia\r\nusing ApproxFun,GLVisualize\r\nw,render=glscreen()\r\n\r\nf=ProductFun((x,y)->exp(-x^2-y^2))\r\nx=map(Float32,points(f,1))\r\ny=map(Float32,points(f,2))\r\nz=map(Float32,values(f))\r\n\r\nview(visualize(x, y, z, :surface))\r\nrender()\r\n```\r\n\r\n\r\n```julia\r\nERROR: Named attribute (:vertices) is not an active attribute in the specified program object or\r\n\r\n            the name starts with the reserved prefix gl_\r\n\r\n in get_attribute_location at /Users/solver/.julia/v0.4/GLAbstraction/src/GLExtendedFunctions.jl:30\r\n in call at /Users/solver/.julia/v0.4/GLAbstraction/src/GLTypes.jl:116\r\n in call at /Users/solver/.julia/v0.4/GLAbstraction/src/GLTypes.jl:155\r\n in instanced_renderobject at /Users/solver/.julia/v0.4/GLAbstraction/src/GLRenderObject.jl:30\r\n in assemble_instanced at /Users/solver/.julia/v0.4/GLVisualize/src/utils.jl:71\r\n in visualize at /Users/solver/.julia/v0.4/GLVisualize/src/visualize/surface.jl:69\r\n in visualize at /Users/solver/.julia/v0.4/GLVisualize/src/visualize/surface.jl:52\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/comments/159438774","html_url":"https://github.com/JuliaGL/GLVisualize.jl/issues/36#issuecomment-159438774","issue_url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/36","id":159438774,"user":{"login":"tbreloff","id":933338,"avatar_url":"https://avatars.githubusercontent.com/u/933338?v=3","gravatar_id":"","url":"https://api.github.com/users/tbreloff","html_url":"https://github.com/tbreloff","followers_url":"https://api.github.com/users/tbreloff/followers","following_url":"https://api.github.com/users/tbreloff/following{/other_user}","gists_url":"https://api.github.com/users/tbreloff/gists{/gist_id}","starred_url":"https://api.github.com/users/tbreloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbreloff/subscriptions","organizations_url":"https://api.github.com/users/tbreloff/orgs","repos_url":"https://api.github.com/users/tbreloff/repos","events_url":"https://api.github.com/users/tbreloff/events{/privacy}","received_events_url":"https://api.github.com/users/tbreloff/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T23:30:58Z","updated_at":"2015-11-24T23:30:58Z","body":"Yes please! You can start a new backend by copying src/backends/template.jl and adding the relevant stuff to src/plotter.jl. I've been wanting to link GLVisualize for a while but haven't gotten around to learning how it works. Start an issue with any questions. \n\nAlso... I'm starting to get better 3D support so you'll be able to do a lot right away. For example, the Plotly backend has 3D scatter, path, contour, and surfaces. \n\n> On Nov 24, 2015, at 6:14 PM, Sheehan Olver <notifications@github.com> wrote:\n> \n> Great!\n> \n> Have you played around with Plots.jl yet? It’s really nice for 2D plotting. I’m thinking of adding GLVisualize as a pull request for that. \n> \n> \n> > On 25 Nov 2015, at 7:36 AM, Simon <notifications@github.com> wrote:\n> > \n> > Available after:\n> > Pkg.checkout(\"GLVisualize\");Pkg.checkout(\"GLAbstraction\")\n> > \n> > —\n> > Reply to this email directly or view it on GitHub <https://github.com/JuliaGL/GLVisualize.jl/issues/36#issuecomment-159397918>.\n> > \n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}