To process higher-res images use this Turbowarp link: https://turbowarp.org/1149810597?hqpen CONTROLS Left arrow - Proceed to the previous demo Right arrow - Proceed to the next demo P - Pause / Resume C - Clear canvas (only in demo 3) N - Increase visual quality M - Decrease visual quality HOW TO USE Click "See inside" and go to the sprite called "Renderer". There, you will see the "Create pixel at pos {} {} RGBA {} {} {} {}" custom block. Use that custom block to create a pixel at whatever position you want on the screen with whatever colour you want it to be. You can also use the "Plot line with pixels | Point 1 {} {} Point 2 {} {}" custom block which is very useful for rasterising a given line.
538 block demo Use this to import your textures without using a texture scanner (from ScratchTools): https://xeltalliv.github.io/ScratchTools/Img2list/#dc1 NOTES • The coordinate system is slightly different from Scratch's in this renderer; instead of having both positive and negative coordinates, there are only positive ones. Position [0, 0] is the top left of the screen, and [480, 360] is the bottom left • Pixels can overwrite each other; the one that is assigned later will overwrite the one before it HOW IT WORKS A pixel array (or z-buffer in the context of 3D) is a list that stores all the colours of all the pixels that will be displayed on the screen in order from the top-left most pixel to the bottom-right most one. Instead of rendering each object or primitive separately like in basic Scratch 3D engines (like my Rizzler3D Engine), it stores the render data in this list and renders all the pixels in the list at once after it is done with processing all the objects. As of now, this project only does the rendering of the pixels in the list directly. In the future, I might consider adding rasterisation of basic primitives like lines and triangles which is basically converting an object with given points in a bunch of pixels. USES • Depth-buffering (a.k.a. one of the methods to achieve "perfect sorting" when objects overlap) • Advanced image editing tools BENEFITS ✓ Easily backpackable, all you need to do is backpack the "Renderer" sprite and you'll be good to go ✓ General-purpose, easy-to-use and highly efficient