flat assembler
Message board for the users of flat assembler.
Index
> Tutorials and Examples > [fasm2] GDI/OGL Creatures (@yuruyurau) |
| Author |
|
|
bitRAKE 26 Aug 2026, 01:37
Not sure what else to call them: squid? It's best to look at the original tweet - because the author is so talented and they look best animated. Or just build the small executable below.
The rendering fakes the alpha blending with an exposure palette -- makes the whole program very simple. It's just a WS_POPUP and a BitBlt of a top-down 8-bpp DIBSection. ESC to exit, left-click to move window. --- I've not played with other color palettes or optimized the render algorithm.
Last edited by bitRAKE on 29 Aug 2026, 13:04; edited 2 times in total |
|||||||||||
|
|
Picnic 26 Aug 2026, 17:41
The executable worked like a charm on Windows 11. Mesmerizing!
But looking at that expanded code... my brain refuses to parse the math. The mystery of how these squids are born remains unsolved Great job bitRAKE! |
|||
|
|
bitRAKE 26 Aug 2026, 21:59
Thank you. TBH, the high-level concepts are clear to me, but there is much subtlety the original author has developed over years - they model realistic 3D jellyfish and have studied the dynamic in depth.
Some things to note: Periodicity is baked into the construction - all the time variable are within sine functions. There is no randomness. It's all curve management. Any of the tweets from the last year or so should be adaptable to the renderer. It should work on WinXP, iirc. Last edited by bitRAKE on 03 Sep 2026, 12:31; edited 1 time in total |
|||
|
|
Picnic 27 Aug 2026, 04:39
No randomness, no mercy for my CPU cycles apparently.
Bookmarking this as required reading before I attempt anything with trig. |
|||
|
|
bitRAKE 27 Aug 2026, 09:00
One of the nice things about a density field of points is that it's completely parallelizable! I've intentionally not provided SIMD or shader code, but that would make the generation trivial - even for a full screen app.
The below update has five different generators. The first one has been configured for a better presentation, imho. If I have time I might configure the others.
|
|||||||||||
|
|
Roman 27 Aug 2026, 10:30
Good if you post render image here.
|
|||
|
|
bitRAKE 27 Aug 2026, 11:33
Images don't really reflect the pulsating animation well -- requires a lot of imagination. The saving grace is that we do see many states in this generator - the other generators are radically different in form - a single creature.
_________________ ¯\(°_o)/¯ AI may [not] have aided with the above reply. |
||||||||||
|
||||||||||
|
Roman 27 Aug 2026, 12:43
Nice for magic spells in games.
|
|||
|
|
yy 28 Aug 2026, 05:03
bitRAKE wrote: It's best to look at the original tweet The author also has another one for fish: https://x.com/yuruyurau/status/2091191600814907612
|
||||||||||
|
||||||||||
|
bitRAKE 29 Aug 2026, 07:48
My prior implementations have a fundamental error: the use of p5 is doing a source-over blend -- not additive. This means sampling was very inefficient despite the implementation simplicity.
The following OpenGL application faithfully reproduces 108 generators from @yuruyurau. Don't take my word for it -- double-click can redirect to the exact post of the author. Of course, the application lacks mpeg compression artifacts. Furthermore, generators can be edited while viewing - just press "R" to reload. So, if you want to create a new generator in a similar style just copy to a similar file name (see 0000000000000000001.glsl). (Note: use the left-arrow button to see recent work - right-arrow is oldest first.) Edit: improved frame timing - should be zero jitter - very smooth, always.
Last edited by bitRAKE on 31 Aug 2026, 01:18; edited 1 time in total |
|||||||||||
|
|
bitRAKE 30 Aug 2026, 23:49
This update adds a tiered live gallery: backspace change from the primary focus mode to gallery mode (2x2, 4x4, 8x8) -- push backspace again to move to smaller thumbnails. The ESC key will increase thumbnail size or move back to focus mode.
Very little increase in resource usage. Home/End/PgUp/PgDn or mouse wheel quickly navigates the live gallery. Clicking on any generator switches to focus mode. There was a major code refactor which happened prior to adding the gallery. The DEBUG split was getting messy and fractured. Two main features to add: 1. More presentation schemes will enable broader generator support. 2. Library families. Not just @yuruyurau's work, but other collections. Probably dropping the window decoration to be the initial POPUP - no one needs the window title and buttons.
|
|||||||||||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.