{"id":1956,"date":"2015-01-25T16:41:00","date_gmt":"2015-01-25T16:41:00","guid":{"rendered":"http:\/\/www.spellcasterstudios.com\/?p=1956"},"modified":"2015-01-22T11:50:03","modified_gmt":"2015-01-22T11:50:03","slug":"close-but-not-there","status":"publish","type":"post","link":"https:\/\/www.spellcasterstudios.com\/?p=1956","title":{"rendered":"Close, but not there&hellip;"},"content":{"rendered":"<p>Found some of the problems of the system yesterday, but the results are still terrible:<\/p>\n<p><a href=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2015\/01\/screen393.jpg\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" title=\"screen393\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"screen393\" src=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2015\/01\/screen393_thumb.jpg\" width=\"830\" height=\"482\" \/><\/a><\/p>\n<p>It was inverted on this screenshot due to lack of correction of texture coordinates to screen coordinates.<\/p>\n<p>Anyway, the problem I\u2019m having is reconstructing the camera-relative position of the pixels, based on the depth and field-of-view\u2026 Something is going wrong there, although I\u2019m not sure what\u2026 I did a lot of math and everything should be correct:<\/p>\n<p><a href=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2015\/01\/screen395.jpg\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" title=\"screen395\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"screen395\" src=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2015\/01\/screen395_thumb.jpg\" width=\"830\" height=\"620\" \/><\/a><\/p>\n<p>But if I draw the error between the reconstructed position and the actual position, the error is quite noticeable:<\/p>\n<p><a href=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2015\/01\/screen394.jpg\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" title=\"screen394\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"screen394\" src=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2015\/01\/screen394_thumb.jpg\" width=\"830\" height=\"482\" \/><\/a><\/p>\n<p>More \u201cred\u201d means more error in X, more green means more error on the Y coordinate\u2026<\/p>\n<p>So, a lot of work ahead of me now\u2026<\/p>\n<p><em>Now listening to \u201cRavenhead\u201d by \u201cOrden Ogan\u201d<\/em><\/p>\n<p><em>Link of the Day: This Kickstarter project has probably one of the best trailers ever: <a title=\"https:\/\/www.kickstarter.com\/projects\/strafegame\/strafe\" href=\"https:\/\/www.kickstarter.com\/projects\/strafegame\/strafe\">https:\/\/www.kickstarter.com\/projects\/strafegame\/strafe<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Found some of the problems of the system yesterday, but the results are still terrible: It was inverted on this screenshot due to lack of correction of texture coordinates to screen coordinates. Anyway, the problem I\u2019m having is reconstructing the camera-relative position of the pixels, based on the depth and field-of-view\u2026 Something is going wrong [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,147,8],"tags":[254,255,253],"class_list":["post-1956","post","type-post","status-publish","format-standard","hentry","category-development","category-chrome-hunter","category-technology","tag-ambient","tag-occlusion","tag-ssao"],"_links":{"self":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1956"}],"version-history":[{"count":1,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1956\/revisions"}],"predecessor-version":[{"id":1957,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1956\/revisions\/1957"}],"wp:attachment":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}