CONNECT WITH US
Tech

Tech

Fable 5.2 creates an underwater world in a browser in only 96 KB

Tom's Hardware logo

Published on

Add as a preferred source on Google
Fable 5.2 creates an underwater world in a browser in only 96 KB

Claude Fable 5.2 was released recently to mostly rave reviews, with both users and analysis outlets ranking it nipping at the heels of the much pricier Opus 5.5. Perhaps as practical proof of that claim, front-end developer Maksymilian Dendura took inspiration from the demoscene and had Fable roll his own virtual underwater world, Abyssal Garden, in only 96 KB of Javascript/HTML — you can check it out here.

The demo's 3D space and textures are all procedurally generated, meaning they're the result of mathematical equations rather than prebuilt 3D meshes, and all calculated on load. Using actual meshes and images for textures would otherwise take up a significant amount of space.

Building structures procedurally is difficult and has limitations, but it's exceedingly effective when used properly. Some games employ this technique for repeated elements like trees and grass.

Likewise, all the visual effects and even some texturing are done with shaders, which are small programs that change how a mesh or texture appears — for example, to make parts of an object shiny. Games use them extensively, as many players are aware, thanks to endless "loading shaders" screens or Unreal Engine's st-tu-tutering.

The result is definitely impressive, especially but not only as it's purely browser-based, relying on WebGPU and WebGL. Both are rarely-mentioned technologies that have actually existed for a long while now . As their names imply, they let developers render 2D and 3D graphics in a manner similar to that of OpenGL, but in a browser, using JavaScript as the base language.


Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.