{"action":"created","issue":{"url":"https://api.github.com/repos/stevenlovegrove/Pangolin/issues/135","repository_url":"https://api.github.com/repos/stevenlovegrove/Pangolin","labels_url":"https://api.github.com/repos/stevenlovegrove/Pangolin/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/stevenlovegrove/Pangolin/issues/135/comments","events_url":"https://api.github.com/repos/stevenlovegrove/Pangolin/issues/135/events","html_url":"https://github.com/stevenlovegrove/Pangolin/issues/135","id":169082096,"number":135,"title":"Fix a point when zoom in/out","user":{"login":"sunstarchan","id":6760921,"avatar_url":"https://avatars.githubusercontent.com/u/6760921?v=3","gravatar_id":"","url":"https://api.github.com/users/sunstarchan","html_url":"https://github.com/sunstarchan","followers_url":"https://api.github.com/users/sunstarchan/followers","following_url":"https://api.github.com/users/sunstarchan/following{/other_user}","gists_url":"https://api.github.com/users/sunstarchan/gists{/gist_id}","starred_url":"https://api.github.com/users/sunstarchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunstarchan/subscriptions","organizations_url":"https://api.github.com/users/sunstarchan/orgs","repos_url":"https://api.github.com/users/sunstarchan/repos","events_url":"https://api.github.com/users/sunstarchan/events{/privacy}","received_events_url":"https://api.github.com/users/sunstarchan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-03T09:02:14Z","updated_at":"2016-08-04T21:21:01Z","closed_at":null,"body":"@stevenlovegrove \r\n\r\nI'm using pangolin to rendering 3D points. When I zoom in or out, the data is out of view sometimes. So I'm wondering whether there is a way to fix a point, such as the origin, when zooming in or out. \r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/stevenlovegrove/Pangolin/issues/comments/237687198","html_url":"https://github.com/stevenlovegrove/Pangolin/issues/135#issuecomment-237687198","issue_url":"https://api.github.com/repos/stevenlovegrove/Pangolin/issues/135","id":237687198,"user":{"login":"stevenlovegrove","id":481156,"avatar_url":"https://avatars.githubusercontent.com/u/481156?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenlovegrove","html_url":"https://github.com/stevenlovegrove","followers_url":"https://api.github.com/users/stevenlovegrove/followers","following_url":"https://api.github.com/users/stevenlovegrove/following{/other_user}","gists_url":"https://api.github.com/users/stevenlovegrove/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenlovegrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenlovegrove/subscriptions","organizations_url":"https://api.github.com/users/stevenlovegrove/orgs","repos_url":"https://api.github.com/users/stevenlovegrove/repos","events_url":"https://api.github.com/users/stevenlovegrove/events{/privacy}","received_events_url":"https://api.github.com/users/stevenlovegrove/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T21:21:00Z","updated_at":"2016-08-04T21:21:00Z","body":"Pangolin tracks the historic depth under the mouse for when no valid depth exists, so you should be able to scroll back into view even when points disappear by moving your wheel the other way. You could also try changing the zoom_fraction and trans_scale when constructing the Handler3D to prevent such fast zooming.\r\n\r\nPangolin also supports modular handlers, so it should be easy to implement your own behaviour if you'd like to try, or inherit from Handler3D if you only want a small change. The protected member rot_center defines where rotation is about (usually set from the depth buffer from mouse input), and last_z is the last depth value picked up from the depth buffer.\r\n\r\nFinally, you could add your own keypress (RegisterKeyPressCallback) or make your own button to reset the camera location by modifying the OpenGlRenderState::GetModelViewMatrix() by assigning a pangolin::ModelViewLookAt matrix."}}
{"actor":{"display_login":"stevenlovegrove"}}