{"id":230701,"date":"2024-06-02T22:34:46","date_gmt":"2024-06-02T14:34:46","guid":{"rendered":"https:\/\/magicalbits.net\/?p=230701"},"modified":"2024-06-02T22:34:46","modified_gmt":"2024-06-02T14:34:46","slug":"city-in-a-bottle-a-256-byte-raycasting-system-killed-by-a-pixel","status":"publish","type":"post","link":"https:\/\/magicalbits.net\/?p=230701","title":{"rendered":"City In A Bottle \u2013 A 256 Byte Raycasting System | Killed By A Pixel"},"content":{"rendered":"<blockquote><p>However by accepting a nearly imperceptible slant, we can simplify and just divide i by half the number of pixels and subtracting 1 to normalize between -1 and 1. The value 4e3 was chosen to move the horizon below center. You can play around with these values to see how it effects the result.<\/p><\/blockquote>\n<p>Source: <em><a href=\"https:\/\/frankforce.com\/city-in-a-bottle-a-256-byte-raycasting-system\/#more-8874\">City In A Bottle \u2013 A 256 Byte Raycasting System | Killed By A Pixel<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>However by accepting a nearly imperceptible slant, we can simplify and just divide i by half the number of pixels and subtracting 1 to normalize between -1 and 1. The value 4e3 was chosen to move the horizon below center. You can play around with these values to see how it effects the result. Source: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-230701","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=230701"}],"version-history":[{"count":1,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230701\/revisions"}],"predecessor-version":[{"id":230702,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230701\/revisions\/230702"}],"wp:attachment":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=230701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=230701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=230701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}