Posts by bug@fosstodon.org
 (DIR) Post #Axzl2IURi9DkyFgbHk by bug@fosstodon.org
       2025-09-08T11:37:07Z
       
       0 likes, 0 repeats
       
       https://b.pkh.me/2025-09-08-red-alp.htm
       
 (DIR) Post #AyAa8ri0ig5XBFWGMS by bug@fosstodon.org
       2025-09-13T16:54:06Z
       
       0 likes, 0 repeats
       
       Better than MBTI, the 4 (or 48) 3d coordinate spaces to identify your basic personality.Left-hand Z-up are degen, right-hand Y-up are normies, ...#math
       
 (DIR) Post #AyAaCT1uPxVXnXXnpw by bug@fosstodon.org
       2025-09-13T17:01:31Z
       
       0 likes, 0 repeats
       
       @wolf480pl very scienty uptight academic people
       
 (DIR) Post #AzA9Y4P0xdeYTLQN9M by bug@fosstodon.org
       2025-10-13T09:47:38Z
       
       0 likes, 0 repeats
       
       julia> isfinite(NaN)true> It's important to note that NaN is considered finite in Julia.Interesting take... What's the rationale here? πŸ€”#math #juliaSource: https://www.jlhub.com/julia/manual/en/function/isfinite
       
 (DIR) Post #AzKVVt56DsbXLy4a2q by bug@fosstodon.org
       2025-10-18T09:24:15Z
       
       1 likes, 1 repeats
       
       ✨ New #blog post: "Fast calculation of the distance to cubic Bézier curves on the GPU"This is another tiny brick of the chain of articles I'm writing related to text rendering.https://blog.pkh.me/p/46-fast-calculation-of-the-distance-to-cubic-bezier-curves-on-the-gpu.html#math #graphics #glsl #2d
       
 (DIR) Post #AzpjTLta9cfYEtHb16 by bug@fosstodon.org
       2025-11-01T17:21:45Z
       
       1 likes, 0 repeats
       
       ✨ New #blog post: "Text rendering and effects using GPU-computed distances"https://blog.pkh.me/p/47-text-rendering-and-effects-using-gpu-computed-distances.htmlFinally! πŸ₯³#math #graphics #glsl #2d #text
       
 (DIR) Post #B12vu4daGqQnaquqC8 by bug@fosstodon.org
       2025-12-08T17:54:13Z
       
       0 likes, 0 repeats
       
       The biggest challenge for the next demo is going to avoid blinding myself. It's been 5 min since I'm working on this shader and my eyes are already complaining...
       
 (DIR) Post #B14xnniqptEjcSR5hQ by bug@fosstodon.org
       2025-12-09T17:08:10Z
       
       0 likes, 0 repeats
       
       Absolutely not what I wanted to do, but interesting anyway 🀷πŸ”₯
       
 (DIR) Post #B1DiPrbuyiIvq2xacq by bug@fosstodon.org
       2025-12-13T21:31:04Z
       
       0 likes, 0 repeats
       
       // Bonfirevoid main(){float i,t,d,a,v,n,w;vec3 p,q,k,o,K=vec3(9,3,1);for(d++;i++<5e1&&d>.001;o+=d>n?d=abs(n)*.4+.05,K/d:K*exp(-length(k)*.6)*20.,t+=d*.5)for(k=normalize(vec3(P+P-R,R.y))*t+vec3(0,6,-15),d=k.y,w=.0025,a-=a,n=.96*length(k.xz)+.27*k.y-5.34;a++<9.;w+=w)p=k,p.zx*=mat2(cos(a*2.4+vec4(0,33,11,0))),q=p,q.y-=a*T,n+=abs(dot(sin(q*.7/w),q-q+w)),p.z-=5.,p.yz*=mat2(1,v=a*.18,-v,1)/sqrt(v*v+1.),d=min(d,max(abs(p.z+5.)-5.,max(abs(p.x)*.9+p.y*.5,-p.y)-.3));O=vec4(tanh(o/5e2),1);}#shader #demo
       
 (DIR) Post #B1DiPtLKXMDxDBDN32 by bug@fosstodon.org
       2025-12-13T21:31:49Z
       
       0 likes, 0 repeats
       
       https://b.pkh.me/2025-12-13-bonfire.htm#Shadertoy portage: https://www.shadertoy.com/view/3ctBDn#shader #glsl #demo #fire
       
 (DIR) Post #B1EdlTg4Kty7MyLfwu by bug@fosstodon.org
       2025-12-13T22:21:28Z
       
       0 likes, 0 repeats
       
       @bobulous nope, just sinusoids with rotation; I put some explanation in this article: https://blog.pkh.me/p/45-code-golfing-a-tiny-demo-using-maths-and-a-pinch-of-insanity.htmlI'm using this in pretty much all my demos; see https://blog.pkh.me/p/48-a-series-of-tricks-and-techniques-i-learned-doing-tiny-glsl-demos.html for more
       
 (DIR) Post #B1EgSaWkwbqOySg2Ou by bug@fosstodon.org
       2025-12-14T10:06:50Z
       
       0 likes, 0 repeats
       
       @wolf480pl yup with the transparency I didn't investigate but it's most likely incorrect. Still it produces a nice credible and useful effect with almost no code. Note: from my experience, it's also very unstable/sensitive to parameters.
       
 (DIR) Post #B1F9yHoUxFh2s6RW76 by bug@fosstodon.org
       2025-12-14T14:56:07Z
       
       0 likes, 0 repeats
       
       There is this tendency in visual arts, and most specifically in video games, to represent characters as top models. It gives me this vibe of new art students who only draw face and body of standard models of beauty over and over again.The vast majority of people are ugly, asymmetrical, and full of imperfections.I wish the constant search for more realistic universes would go in that direction instead of prettier shadows and stuff.At least I could identify more to the characters... πŸ˜…#art
       
 (DIR) Post #B1FADtlS8WQSuySkl6 by bug@fosstodon.org
       2025-12-14T15:40:20Z
       
       0 likes, 0 repeats
       
       @wolf480pl you can be aspirational by your actions instead of by how you look
       
 (DIR) Post #B1JKvKk5U89PDN0vhY by bug@fosstodon.org
       2025-12-16T15:22:06Z
       
       0 likes, 0 repeats
       
       #SDF can be so tricky sometimes. Here the discontinuities at the tip of the petals are not actually correct (while the ones in between are expected).You may think that picking the smallest distance with the point at the tip would help, but no, because the distance itself is actually too short.And also, I would like to keep the spiky edges when I buff it up (through the "rounding" operator), so I'm not sure about fixing that anyway.I think I'd prefer it with 5 petals too :((Code in Alt)
       
 (DIR) Post #B1Q0og5P5oLKPKFk0W by bug@fosstodon.org
       2025-12-19T20:52:39Z
       
       0 likes, 0 repeats
       
       Finally got basic #SDF domain repetition under control! So much subtleties...
       
 (DIR) Post #B1Q0ohi53UsJRZM8vo by bug@fosstodon.org
       2025-12-19T21:13:50Z
       
       0 likes, 0 repeats
       
       Also very easily extendable to 3D#shader #glsl #snow
       
 (DIR) Post #B1RzgIrk67P0u7yr8i by bug@fosstodon.org
       2025-12-20T20:08:36Z
       
       0 likes, 0 repeats
       
       I'm trying to make a depressing street lamp under the snow, but I ended up recreating elden ring πŸ˜… I guess that works too 🀷
       
 (DIR) Post #B2AvoCkdjm0jbfgQNc by bug@fosstodon.org
       2026-01-11T12:30:35Z
       
       0 likes, 0 repeats
       
       Reading a maths book, they're giving hints on how to write proofs, this made me smile:#math
       
 (DIR) Post #B2mN4SDLL7B0rUhAUi by bug@fosstodon.org
       2026-01-29T13:35:06Z
       
       0 likes, 0 repeats
       
       Bird flapping SDF πŸ•Š