{"action":"closed","issue":{"url":"https://api.github.com/repos/panda3d/panda3d/issues/452","repository_url":"https://api.github.com/repos/panda3d/panda3d","labels_url":"https://api.github.com/repos/panda3d/panda3d/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/panda3d/panda3d/issues/452/comments","events_url":"https://api.github.com/repos/panda3d/panda3d/issues/452/events","html_url":"https://github.com/panda3d/panda3d/issues/452","id":382296431,"node_id":"MDU6SXNzdWUzODIyOTY0MzE=","number":452,"title":"lens->get_projection_mat() returns incorrect value","user":{"login":"Kesslerb2","id":45176354,"node_id":"MDQ6VXNlcjQ1MTc2MzU0","avatar_url":"https://avatars3.githubusercontent.com/u/45176354?v=4","gravatar_id":"","url":"https://api.github.com/users/Kesslerb2","html_url":"https://github.com/Kesslerb2","followers_url":"https://api.github.com/users/Kesslerb2/followers","following_url":"https://api.github.com/users/Kesslerb2/following{/other_user}","gists_url":"https://api.github.com/users/Kesslerb2/gists{/gist_id}","starred_url":"https://api.github.com/users/Kesslerb2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kesslerb2/subscriptions","organizations_url":"https://api.github.com/users/Kesslerb2/orgs","repos_url":"https://api.github.com/users/Kesslerb2/repos","events_url":"https://api.github.com/users/Kesslerb2/events{/privacy}","received_events_url":"https://api.github.com/users/Kesslerb2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-11-19T16:32:54Z","updated_at":"2018-12-20T21:11:05Z","closed_at":"2018-12-20T21:11:05Z","author_association":"NONE","body":"I'm upgrading old code from 1.8->1.10 and noticed my camera projections no longer return the same values. The function I'm using takes in a camera lens `const Lens *cameraLens` and I want to access the forward projection. If I inspect the cameraLens in \"Locals\" then I see the values posted in the \"Lens:\" section below. However, if I access them by calling: \r\n`const LMatrix4 &camProjMono = cameraLens->get_projection_mat(Lens::SC_mono);`\r\n`const LMatrix4 &camProjStereo = cameraLens->get_projection_mat(Lens::SC_stereo);`\r\n`const LMatrix4 &camProjLeft = cameraLens->get_projection_mat(Lens::SC_left);`\r\n`const LMatrix4 &camProjRight = cameraLens->get_projection_mat(Lens::SC_right);`\r\n\r\nI get the values posted in the \"Lens->get_projection_mat(ENUM):\" section below. For the forward projection, the [6] and [14] values are incorrect.\r\n\r\nAm I wrong in expecting to get the first set of values for SC_mono, SC_left, and SC_right or am I misinterpreting the values that are retrieved from get_projection_mat()?\r\n\r\nLens:\r\n\r\n      FORWARD\r\n\t\t[0]\t1.73205090\tfloat\r\n\t\t[1]\t0.000000000\tfloat\r\n\t\t[2]\t0.000000000\tfloat\r\n\t\t[3]\t0.000000000\tfloat\r\n\t\t[4]\t0.000000000\tfloat\r\n\t\t[5]\t0.000000000\tfloat\r\n\t\t[6]\t1.00026667\tfloat\r\n\t\t[7]\t1.00000000\tfloat\r\n\t\t[8]\t0.000000000\tfloat\r\n\t\t[9]\t3.26671195\tfloat\r\n\t\t[10]\t0.000000000\tfloat\r\n\t\t[11]\t0.000000000\tfloat\r\n\t\t[12]\t0.000000000\tfloat\r\n\t\t[13]\t0.000000000\tfloat\r\n\t\t[14]\t-80010.6719\tfloat\r\n\t\t[15]\t0.000000000\tfloat\r\n\r\n\r\n      FORWARDLEFT\r\n\t\t[0]\t1.73205090\tfloat\r\n\t\t[1]\t0.000000000\tfloat\r\n\t\t[2]\t0.000000000\tfloat\r\n\t\t[3]\t0.000000000\tfloat\r\n\t\t[4]\t-0.00692820316\tfloat\r\n\t\t[5]\t0.000000000\tfloat\r\n\t\t[6]\t1.00026667\tfloat\r\n\t\t[7]\t1.00000000\tfloat\r\n\t\t[8]\t0.000000000\tfloat\r\n\t\t[9]\t3.26671195\tfloat\r\n\t\t[10]\t0.000000000\tfloat\r\n\t\t[11]\t0.000000000\tfloat\r\n\t\t[12]\t0.173205093\tfloat\r\n\t\t[13]\t0.000000000\tfloat\r\n\t\t[14]\t-80010.6719\tfloat\r\n\t\t[15]\t0.000000000\tfloat\r\n\r\n      FORWARDRIGHT\r\n\t\t[0]\t1.73205090\tfloat\r\n\t\t[1]\t0.000000000\tfloat\r\n\t\t[2]\t0.000000000\tfloat\r\n\t\t[3]\t0.000000000\tfloat\r\n\t\t[4]\t0.00692820316\tfloat\r\n\t\t[5]\t0.000000000\tfloat\r\n\t\t[6]\t1.00026667\tfloat\r\n\t\t[7]\t1.00000000\tfloat\r\n\t\t[8]\t0.000000000\tfloat\r\n\t\t[9]\t3.26671195\tfloat\r\n\t\t[10]\t0.000000000\tfloat\r\n\t\t[11]\t0.000000000\tfloat\r\n\t\t[12]\t-0.173205093\tfloat\r\n\t\t[13]\t0.000000000\tfloat\r\n\t\t[14]\t-80010.6719\tfloat\r\n\t\t[15]\t0.000000000\tfloat\r\n      \r\nLens->get_projection_mat(ENUM):\r\n\r\n      MONO:\r\n\t\t[0]\t1.73205090\tfloat\r\n\t\t[1]\t0.000000000\tfloat\r\n\t\t[2]\t0.000000000\tfloat\r\n\t\t[3]\t0.000000000\tfloat\r\n\t\t[4]\t0.000000000\tfloat\r\n\t\t[5]\t0.000000000\tfloat\r\n\t\t[6]\t0.000133351117\tfloat\r\n\t\t[7]\t1.00000000\tfloat\r\n\t\t[8]\t0.000000000\tfloat\r\n\t\t[9]\t3.26671195\tfloat\r\n\t\t[10]\t0.000000000\tfloat\r\n\t\t[11]\t0.000000000\tfloat\r\n\t\t[12]\t0.000000000\tfloat\r\n\t\t[13]\t0.000000000\tfloat\r\n\t\t[14]\t-40005.3359\tfloat\r\n\t\t[15]\t0.000000000\tfloat\r\n\r\n      LEFT:\r\n  \t\t[0]\t1.73205090\tfloat\r\n\t\t[1]\t0.000000000\tfloat\r\n\t\t[2]\t0.000000000\tfloat\r\n\t\t[3]\t0.000000000\tfloat\r\n\t\t[4]\t-0.00999999978\tfloat\r\n\t\t[5]\t0.000000000\tfloat\r\n\t\t[6]\t0.000133351117\tfloat\r\n\t\t[7]\t1.00000000\tfloat\r\n\t\t[8]\t0.000000000\tfloat\r\n\t\t[9]\t3.26671195\tfloat\r\n\t\t[10]\t0.000000000\tfloat\r\n\t\t[11]\t0.000000000\tfloat\r\n\t\t[12]\t0.173205093\tfloat\r\n\t\t[13]\t0.000000000\tfloat\r\n\t\t[14]\t-40005.3359\tfloat\r\n\t\t[15]\t0.000000000\tfloat\r\n\r\n      RIGHT:\r\n\t\t[0]\t1.73205090\tfloat\r\n\t\t[1]\t0.000000000\tfloat\r\n\t\t[2]\t0.000000000\tfloat\r\n\t\t[3]\t0.000000000\tfloat\r\n\t\t[4]\t0.00999999978\tfloat\r\n\t\t[5]\t0.000000000\tfloat\r\n\t\t[6]\t0.000133351117\tfloat\r\n\t\t[7]\t1.00000000\tfloat\r\n\t\t[8]\t0.000000000\tfloat\r\n\t\t[9]\t3.26671195\tfloat\r\n\t\t[10]\t0.000000000\tfloat\r\n\t\t[11]\t0.000000000\tfloat\r\n\t\t[12]\t-0.173205093\tfloat\r\n\t\t[13]\t0.000000000\tfloat\r\n\t\t[14]\t-40005.3359\tfloat\r\n\t\t[15]\t0.000000000\tfloat\r\n\r\n      STEREO\r\n\t\t[0]\t1.73205090\tfloat\r\n\t\t[1]\t0.000000000\tfloat\r\n\t\t[2]\t0.000000000\tfloat\r\n\t\t[3]\t0.000000000\tfloat\r\n\t\t[4]\t0.000000000\tfloat\r\n\t\t[5]\t0.000000000\tfloat\r\n\t\t[6]\t0.000133351117\tfloat\r\n\t\t[7]\t1.00000000\tfloat\r\n\t\t[8]\t0.000000000\tfloat\r\n\t\t[9]\t3.26671195\tfloat\r\n\t\t[10]\t0.000000000\tfloat\r\n\t\t[11]\t0.000000000\tfloat\r\n\t\t[12]\t0.000000000\tfloat\r\n\t\t[13]\t0.000000000\tfloat\r\n\t\t[14]\t-40005.3359\tfloat\r\n\t\t[15]\t0.000000000\tfloat"}}
{"actor":{"display_login":"Moguri"}}