#softwarerendering — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #softwarerendering, aggregated by home.social.
-
Wrote some more about extending the "HAKMEM 149 line algorithm" to a quad rasterizer to be able to draw billboards (sprites) up to 3D sprites, the HAKMEM approach (and forward mapping) lose a bit of interest when degrees of freedom (and projection) are added up though but it was fun to retrace the sprites history a bit. :blobcatcomfysmirk:
https://www.onirom.fr/wiki/codegolf/main/#HAKMEM_149_quad_rasterizer_/_sprite_scaler_+_rotation
-
A tiny way to compute a square / triangle wave at the same time without conditionals, only basic arithmetic and shifts.
This can be used for #oscillators or animations etc. #algorithm is a variant of HAKMEM 149.
Can also be used to draw a square. (And other shapes, see previous toot)
Code also shows how to draw a diamond shape by rotating the square by 45°.
There are two versions, optimized for size and optimized for speed.
#computergraphics #p5js #softwarerendering #codegolf #sizecoding
-
A tiny way to draw an "isometric" (dimetric) cube in an iterative fashion with a single loop, all integers with an integer variant of HAKMEM 149 (so called Minsky circle) display hack. (Sin / Cos approximation)
Can also be used to draw a hexagon (it is a filled hexagon after all) and can easily render fractured cubes as well by varying "l" (second screenshot)
#cube #p5js #computergraphics #isometric #dimetric #hexagon #softwarerendering
-
okay, now it's good enough.
-
Tutorial now updated to work with the latest sdl3:
https://solhsa.com/gp2/index.html
also includes a bunch of fixes and cleanups. A lot of new stuff coming as soonish. (Should I add fedi comments to these pages?)
(fyi @icculus)
#sdl #sdl3 #tutorial #programming #graphics #pixel #lowlevel #softwarerendering #wtfbbq
-
Adding Portals To Quake - For those who have played Quake extensively, adding portals seems unnecessary, as ... - https://hackaday.com/2023/07/06/adding-portals-to-quake/ #softwarerendering #retrocomputing #softwarehacks #rendering #graphics #portals #games #quake