{"action":"created","issue":{"url":"https://api.github.com/repos/squarefeet/ShaderParticleEngine/issues/72","labels_url":"https://api.github.com/repos/squarefeet/ShaderParticleEngine/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/squarefeet/ShaderParticleEngine/issues/72/comments","events_url":"https://api.github.com/repos/squarefeet/ShaderParticleEngine/issues/72/events","html_url":"https://github.com/squarefeet/ShaderParticleEngine/issues/72","id":81840717,"number":72,"title":"Particle size and camera FOV","user":{"login":"RemusMar","id":11772787,"avatar_url":"https://avatars.githubusercontent.com/u/11772787?v=3","gravatar_id":"","url":"https://api.github.com/users/RemusMar","html_url":"https://github.com/RemusMar","followers_url":"https://api.github.com/users/RemusMar/followers","following_url":"https://api.github.com/users/RemusMar/following{/other_user}","gists_url":"https://api.github.com/users/RemusMar/gists{/gist_id}","starred_url":"https://api.github.com/users/RemusMar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RemusMar/subscriptions","organizations_url":"https://api.github.com/users/RemusMar/orgs","repos_url":"https://api.github.com/users/RemusMar/repos","events_url":"https://api.github.com/users/RemusMar/events{/privacy}","received_events_url":"https://api.github.com/users/RemusMar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-05-28T09:12:43Z","updated_at":"2015-06-26T08:22:25Z","closed_at":null,"body":"First of all, congrats for this awesome work.\r\nNow the problem ...\r\nThe particles size (on screen) depends on the camera field of view.\r\nThis is a known issue, nothing to do about that.\r\nHowever, if you change the emitter sizeStart and sizeEnd at runtime, you don't get any change on screen.\r\nExample:\r\nyou start with camera.fov = 45, sizeStart = 0.5, sizeEnd = 1.0\r\nat runtime you set camera.fov = 22.5, sizeStart = 1.0, sizeEnd = 2.0\r\nThe camera fov is changed ( camera.updateProjectionMatrix(); ), but the new sizeStart & sizeEnd values are ignored.\r\nResult: you'll get smaller particles on the screen.\r\n\r\ncheers\r\n"},"comment":{"url":"https://api.github.com/repos/squarefeet/ShaderParticleEngine/issues/comments/115572624","html_url":"https://github.com/squarefeet/ShaderParticleEngine/issues/72#issuecomment-115572624","issue_url":"https://api.github.com/repos/squarefeet/ShaderParticleEngine/issues/72","id":115572624,"user":{"login":"RemusMar","id":11772787,"avatar_url":"https://avatars.githubusercontent.com/u/11772787?v=3","gravatar_id":"","url":"https://api.github.com/users/RemusMar","html_url":"https://github.com/RemusMar","followers_url":"https://api.github.com/users/RemusMar/followers","following_url":"https://api.github.com/users/RemusMar/following{/other_user}","gists_url":"https://api.github.com/users/RemusMar/gists{/gist_id}","starred_url":"https://api.github.com/users/RemusMar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RemusMar/subscriptions","organizations_url":"https://api.github.com/users/RemusMar/orgs","repos_url":"https://api.github.com/users/RemusMar/repos","events_url":"https://api.github.com/users/RemusMar/events{/privacy}","received_events_url":"https://api.github.com/users/RemusMar/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T08:22:25Z","updated_at":"2015-06-26T08:22:25Z","body":"> I've pushed a new branch called runtime that you're welcome to check out.\r\n> There's a new example called runtimeChanging.html that uses DAT.Gui to let you change parameters at runtime. \r\n\r\nWell done Luke!\r\nHowever ... changing at runtime emitter.sizeStart, emitter.sizeMiddle & emitter.sizeEnd works for the UPCOMING particles only.\r\nThe size of the current particles is not changed (so they need to \"die\" to get the right results).\r\n\r\nFrom this point of view, my workaround is still the best solution.\r\ncheers"}}