{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/3","labels_url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/3/comments","events_url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/3/events","html_url":"https://github.com/JuliaGL/GLVisualize.jl/issues/3","id":81441191,"number":3,"title":"Howto add colors and shape in nbody.jl test example","user":{"login":"AlainLich","id":11294498,"avatar_url":"https://avatars.githubusercontent.com/u/11294498?v=3","gravatar_id":"","url":"https://api.github.com/users/AlainLich","html_url":"https://github.com/AlainLich","followers_url":"https://api.github.com/users/AlainLich/followers","following_url":"https://api.github.com/users/AlainLich/following{/other_user}","gists_url":"https://api.github.com/users/AlainLich/gists{/gist_id}","starred_url":"https://api.github.com/users/AlainLich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlainLich/subscriptions","organizations_url":"https://api.github.com/users/AlainLich/orgs","repos_url":"https://api.github.com/users/AlainLich/repos","events_url":"https://api.github.com/users/AlainLich/events{/privacy}","received_events_url":"https://api.github.com/users/AlainLich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-27T13:18:20Z","updated_at":"2015-05-27T13:32:48Z","closed_at":null,"body":"Hi Simon,\r\n\r\nI am wondering how I can have different specified colors and/or shapes for the planets in example\r\nnbody.jl.\r\n\r\nIn the variant that I use (subscreen6.xml) of Romeo/test, the code says\r\n```\r\n    const positions     = lift(send_frame, time_i, Input(world.planets))\r\n    const robj          = visualize(positions, model=scalematrix(Vec3(0.1f0)),\r\n                                    screen=sc, camera=cam)\r\n```\r\n\r\nBest \r\nAlain\r\n\r\nPS: please let me know when I can try the **edit** object."},"comment":{"url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/comments/105909428","html_url":"https://github.com/JuliaGL/GLVisualize.jl/issues/3#issuecomment-105909428","issue_url":"https://api.github.com/repos/JuliaGL/GLVisualize.jl/issues/3","id":105909428,"user":{"login":"SimonDanisch","id":1010467,"avatar_url":"https://avatars.githubusercontent.com/u/1010467?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonDanisch","html_url":"https://github.com/SimonDanisch","followers_url":"https://api.github.com/users/SimonDanisch/followers","following_url":"https://api.github.com/users/SimonDanisch/following{/other_user}","gists_url":"https://api.github.com/users/SimonDanisch/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonDanisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonDanisch/subscriptions","organizations_url":"https://api.github.com/users/SimonDanisch/orgs","repos_url":"https://api.github.com/users/SimonDanisch/repos","events_url":"https://api.github.com/users/SimonDanisch/events{/privacy}","received_events_url":"https://api.github.com/users/SimonDanisch/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T13:32:48Z","updated_at":"2015-05-27T13:32:48Z","body":"Hi,\noff the top of my head, something like this should work:\n```Julia\nvisualize(positions, primitive=GLNormalMesh(your_custom_mesh),\nparticle_color=rgba(1,0,1,1))\n```\nYou can look at the results of `GLVisualize.visualize_default(positions,\nStyle{}())` (I need to give this a nicer interface and export it), to see\nwhat defaults it uses ( to then give it customized attributes).\n\nYou might want to create something like `call{M <: Mesh}(::Type{M}, Sphere)\n= M(sphere_vertex, sphere_faces)`\n\nI'll hope to finish my bachelor thesis in the next days... After that I'll\nuse 100% of my time to develop the edit widgets ;)\n\nBest,\nSimon\n\n2015-05-27 15:18 GMT+02:00 AlainLich <notifications@github.com>:\n\n> Hi Simon,\n>\n> I am wondering how I can have different specified colors and/or shapes for\n> the planets in example\n> nbody.jl.\n>\n> In the variant that I use (subscreen6.xml) of Romeo/test, the code says\n>\n>     const positions     = lift(send_frame, time_i, Input(world.planets))\n>     const robj          = visualize(positions, model=scalematrix(Vec3(0.1f0)),\n>                                     screen=sc, camera=cam)\n>\n> Best\n> Alain\n>\n> PS: please let me know when I can try the *edit* object.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/JuliaGL/GLVisualize.jl/issues/3>.\n>\n"}}