{"id":1105,"date":"2024-01-22T11:23:18","date_gmt":"2024-01-22T16:23:18","guid":{"rendered":"https:\/\/wcarss.ca\/log\/?p=1105"},"modified":"2024-01-22T12:03:54","modified_gmt":"2024-01-22T17:03:54","slug":"screenshots-minecraft-clone-rewrite-update","status":"publish","type":"post","link":"https:\/\/wcarss.ca\/log\/2024\/01\/screenshots-minecraft-clone-rewrite-update\/","title":{"rendered":"Screenshots! Minecraft Clone Rewrite Update"},"content":{"rendered":"\n<p>I went with &#8220;Path 2&#8221; from <a href=\"https:\/\/wcarss.ca\/log\/2024\/01\/rewriting-an-old-opengl-minecraft-clone\/\">the previous blogpost<\/a>, and here are the bare beginnings:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"666\" src=\"https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise-1024x666.png\" alt=\"\" class=\"wp-image-1106\" srcset=\"https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise-1024x666.png 1024w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise-300x195.png 300w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise-768x500.png 768w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise-1536x1000.png 1536w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise-2048x1333.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"666\" src=\"https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_2-1024x666.png\" alt=\"\" class=\"wp-image-1107\" srcset=\"https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_2-1024x666.png 1024w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_2-300x195.png 300w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_2-768x500.png 768w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_2-1536x1000.png 1536w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_2-2048x1333.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>the dirt really <em>catches<\/em> the sunlight!<\/figcaption><\/figure>\n\n\n\n<p>You may notice that this image bears some <em>extraordinary similarities<\/em> to the final one from <a href=\"https:\/\/wcarss.ca\/log\/2024\/01\/rewriting-an-old-opengl-minecraft-clone\/\">my last post<\/a>., which was basically the output of the OpenGL tutorials. For the record, I did not just change the texture and draw more blocks here! A quick summary of what this screenshot represents:<\/p>\n\n\n\n<ul><li>paring down and copying most of the boilerplate and base abstractions from the tutorial into a <em>new file<\/em> in my existing c minecraft project, without most of the actual scene, the point lights, etc.<\/li><li>integrating the pre-existing world generation and perlin noise code with that new boilerplate without  just inlining it all into the big new file<\/li><li>rendering the &#8220;state of the world&#8221; out of a newly-added gamecontext world-array, and paring its size down for performance reasons until I get a display list and frustum culling written<\/li><li>getting all that stuff to compile<\/li><\/ul>\n\n\n\n<p>So there&#8217;s a <em>tremendous<\/em> amount ahead &#8212; cubemapped textures for the blocks, frustum culling, and basic Quality of Life stuff are all up next so I can start drawing the full 100x100x100 map and having it look halfway decent. I&#8217;ve had to move frustum culling way up because at full size things just would not draw. But this is <em>lovely<\/em> progress for about one day into trying this plan.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"666\" src=\"https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_3-1024x666.png\" alt=\"\" class=\"wp-image-1111\" srcset=\"https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_3-1024x666.png 1024w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_3-300x195.png 300w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_3-768x500.png 768w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_3-1536x1000.png 1536w, https:\/\/wcarss.ca\/log\/wp-content\/uploads\/2024\/01\/screenshot_shaded_dirt_noise_3-2048x1333.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>A last thought here &#8212; it seems <em>almost<\/em> like wordpress is applying a filter to my screenshots? They&#8217;re not <em>particularly<\/em> bright on my laptop, but at some point during upload it feels like the colour washes out a little, which robs them of the <em>peak<\/em> <em>glory<\/em> they so desire. Maybe it&#8217;s just in my mind. They&#8217;re still nice.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I went with &#8220;Path 2&#8221; from the previous blogpost, and here are the bare beginnings: You may notice that this image bears some extraordinary similarities to the final one from my last post., which was basically the output of the OpenGL tutorials. For the record, I did not just change the texture and draw more [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/wcarss.ca\/log\/wp-json\/wp\/v2\/posts\/1105"}],"collection":[{"href":"https:\/\/wcarss.ca\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wcarss.ca\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wcarss.ca\/log\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wcarss.ca\/log\/wp-json\/wp\/v2\/comments?post=1105"}],"version-history":[{"count":3,"href":"https:\/\/wcarss.ca\/log\/wp-json\/wp\/v2\/posts\/1105\/revisions"}],"predecessor-version":[{"id":1117,"href":"https:\/\/wcarss.ca\/log\/wp-json\/wp\/v2\/posts\/1105\/revisions\/1117"}],"wp:attachment":[{"href":"https:\/\/wcarss.ca\/log\/wp-json\/wp\/v2\/media?parent=1105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wcarss.ca\/log\/wp-json\/wp\/v2\/categories?post=1105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wcarss.ca\/log\/wp-json\/wp\/v2\/tags?post=1105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}