Anyone know how to make a gif or something similar of that background that’s used for Balatro? I wanted to try to do one but maybe in different colors but the only ones I see aren’t perfect loops. Any ideas?
>>1523195does balatro use animated backgrounds or is it third-party? then just rip it from the game and webm it
>>1523198From vague stuff i heard it renders it in real-time, but not sure on the legitimacy of that
>>1523195https://www.shadertoy.com/results?query=balatro
>>1523207It worked perfectly but I am stuck trying to get it to loop perfectly. https://mega.nz/file/8oEUlCZR#BBdPQg62gSxPpqu_mWxe7nArijAsxtYJNAjgsQtOyyc
>>1523216There are two time-dependant parameters that make for a slightly different period (0.131121 and 0.113).As such, it would take more than 100'000 repetitions in order for the animation to repeat seamlessly.However, making both of these numbers 0.113 make the two parameters repeat together in a single repetition.Give me the color(s) you picked and the parameters of the effect you used to increase the contrast (levels?), and I'll re-render the animation to match.I could even make it 1080p, but that would take longer to run.
>>1523223Not the OP but I've been looking for a looping version of the Balatro table background. Any chance you could make a version like the one you posted with the colors in this image?
>>1523231I can, but I can't say it looks much like the table background - the swirl is too strong.
>>1523216I managed to eyeball the colors.It seems like darkening COLOUR_3 was all it took to increase the contrast.1080p: https://files.catbox.moe/nyn6wj.mp4
>>1523234This is great! Thank you!
>>1523245bro this looks fantastic! thank you! how did you get it to 1080p btw?
>>1523270>how did you get it to 1080p btw?First, I removed the pixel filter effect in the shader (the first couple lines in effect()).Then, I ported it to D, in order to make a CPU renderer that would save the frames into a sequence of images.I didn't just render the frames in 1080p, but rather 8K, and down-sampled them to 1080p in order to get good anti-aliasing.Finally, I encoded the frames with ffmpeg.Now, the CPU renderer was pretty slow. Even with multithreading, 8K is a lot of pixels.So I asked O3-mini to write a program that would take the GLSL shader, use my GPU to render the frames, and save them into images.I did have to fix a bunch of problems, but it sure was quicker than writing the program myself.Rendering with the GPU is so much faster that the bottleneck is now the speed of my storage drive.Now, turns out I had a dumb bug in my original port, and that affected the result: there's less reflections than there should be.Here it is fixed, and in 12-bit to cut down on banding in the dark areas.1080p: https://files.catbox.moe/05opjr.mp4It works best if you use a video player that can do dithering.
>>1523281gotcha. that's honestly amazing you manages to figure all that out! I did try that link but i think it's busted as it doesn't load no matter what i try. sorry.
>>1523369It's 12-bit YUV444 H265.Loads of devices and software will have trouble playing it.It plays fine in MPV, VLC and Firefox, at least on Linux.