Show HN: A simple infinite world in WebGL
In this demo, I implemented an infinitely continuing, vaporwave-like
world in WebGL. If you can't run it for some reason, a recorded gif of
the demo can be found here: <a href="https://github.com/Erkaman/wireframe-world" rel="nofollow">https://github.com/Erkaman/wireframe-world</a>.<p>As for the implementation, it is not very difficult stuff; I divide up
the world into chunks(just like in Minecraft), and as the camera
traverses the world, the chunks that become out of range are thrown
away and are no longer rendered. And in the far away horizon I keep adding
new chunks, to give the illusion that the world is infinite.<p>So it is not very complicated stuff; the source code is only ~450LOC, which can be found
here: <a href="https://github.com/Erkaman/wireframe-world/blob/gh-pages/wireframe_world.js" rel="nofollow">https://github.com/Erkaman/wireframe-world/blob/gh-pages/wir...</a>. It
is relatively well-commented, so it should be easy to understand, I hope.