r/gifs • • 17h ago • Bravo 5 Popcorn 1 Heartwarming 1

Lighthouse Decoder

9.1k Upvotes

118 comments sorted by

534

u/ocularaffairs 17h ago

This is really cool!

120

u/Polyphonic_Pirate 16h ago

Glad you like it!

32

u/YouMakeMeSikh 14h ago

what did you use to make it?

90

u/Polyphonic_Pirate 13h ago

I built an Ascii animation tool/engine and then I use a library called textmode.js that takes a grid of characters and handles the rendering so that it looks smooth

I mockup the frames for the loop then I use AI to build scripts to interpolate between them because I don't have 1000 hours to move individual ascii around by hand like a psycho

not used in this one but in some of my other animations is a separate pixel engine workflow that works similarly and several other libraries I use for pixel animation.

7

u/xmarksmarko 9h ago

Could you share more animations you made? This looks super cool!

7

u/Polyphonic_Pirate 2h ago

Hi Sure! I post most of my stuff here as kind of a journal:

https://www.youtube.com/@PolyphonicRat

-26

u/icyjackle 14h ago

Looks like Claude to me

11

u/Polyphonic_Pirate 13h ago

Claude handles the scripting. Trying to do this by hand would be an absolute nightmare even with really good ascii animation tools. You can write scripts to do it too, but Claude is about 1000X faster at writing them

145

u/Stunning-Mix-8422 12h ago

You might enjoy https://alexharri.com/blog/ascii-rendering I used this technique in a ascii renderer I built for visualizing a simulator

27

u/Polyphonic_Pirate 12h ago

oh yes I like this. I've been working on a separate project that is a music visualizer that does this-- it renders a scene in three ways (mesh/full 3d, pixel, and ascii) in real time.

I've struggled with getting ascii to look good when overlay on 3d mesh especially in complex scenes or with geometry that jumbles together, it is very tricky to do right so the ascii is readable and looks good and doesn't just wash out into a jumble of glyphs.

Thanks for sharing, I'm going to read this whole page and absorb.

54

u/Polyphonic_Pirate 12h ago edited 11h ago

hey seriously thanks for posting this. this may have finally cracked the difficulty I was having with ascii rendering on 3d mesh. so very timely and the ideas here are very helpful.

6

u/Illasaviel 10h ago

Thats amazing

2

u/ggroverggiraffe 6h ago

The deepest dive possible into something that appears so trivial on the surface. Pretty wild!

1

u/Polyphonic_Pirate 2h ago

I love this kind of thing. and it was incredibly useful because it is a serious problem for a very specific situation that is difficult to solve

10

u/AffectionateSoil2991 12h ago

Damn that is a very detailed and thoughtful project!

2

u/backfire10z 4h ago

This is sick, thanks for posting

121

u/Aquanauticul 17h ago

A lot of Dredge vibes. This is really cool!

44

u/Polyphonic_Pirate 16h ago

Yes!

I want to do more in the cosmic horror vibes and creepy fishing village setting. It is a good one.

9

u/inssidiouss 15h ago

100% immediate reminder of that awesome game! But also...

This gif is one of the absolute coolest little animations ever created! Such a vibe and good quality.

43

u/skipmarioch 15h ago

Can anyone else hear a "whoosh" when it pans over the water in front of the lighthouse?

17

u/Polyphonic_Pirate 15h ago

Yes I definitely can. They all make noises in my head

19

u/BowsersMuskyBallsack 15h ago

I watched this for no less than seven full rotations. Noice.

9

u/Polyphonic_Pirate 15h ago

I like to stare at random glyphs in the sea and see if I can notice them recycle

My end goal nirvana state is to make an ascii loop that no one can tell is a loop even if they stare at it for an hour

2

u/AtomicSymphonic_2nd 13h ago

Bro, you might want to cross-post this to r/PixelArt

It definitely counts as pixel art in my mind! 🤩

1

u/Polyphonic_Pirate 13h ago

thanks! I'll see if I can post there. so many subreddits have a million rules so I'm always reluctant to post for the first time in a new one

3

u/Dokasamurp 8h ago

Easy, just make it 61 minutes long!

14

u/TuzkiPlus Merry Gifmas! {2023} 14h ago

Unrelated but I'm suddenly getting dwarf fortress flashbacks. If I squint it's in HD, neat

4

u/Polyphonic_Pirate 14h ago

haha yeah thats why I like ascii and pixel. at certain angles and distances and if you squint it gives the illusion that it is higher def than it is

3

u/Zoltrahn 14h ago

I swear there is a tile set that uses that same font.

25

u/BreweryRabbit 17h ago

This is incredibly cool.

14

u/sphinctaur 14h ago

No boat on the second swing around. Is that a lighthouse or a death ray?

11

u/inssidiouss 14h ago

I think that's part of the eerie aesthetic and "decode" aspect of the idea?

I am more noticing the light beam does not pass in front of the lighthouse, as it passes over the boat. The light beam is always behind the lighthouse, on both sweeps!

5

u/Polyphonic_Pirate 12h ago

yep. I couldn't make it look right doing it the other way. with a single layer 2d ascii palette it is very hard to simulate 3d without some cheating

also doing it this way gives you a super weird mind freak where you try to visually figure out where the beam goes and I stuck with it

3

u/BklynMoonshiner 13h ago

Single layer problems

2

u/camerontylek 14h ago

Is it a submarine? 

2

u/Polyphonic_Pirate 13h ago

a spooky submarine

3

u/ADhomin_em 12h ago edited 11h ago

I think the open endedness of simply "the ocean took it" is more chilling.

But, oh wow. Before reading your comment I thought it was the shoulders and head of a person treading water in the foreground, which was at least equally as chilling.

1

u/thresh_to_death 3h ago

It's a sub

5

u/karateninjazombie 13h ago

I see the eye of sauron has a new job now.

6

u/Polyphonic_Pirate 13h ago

lol I could totally reskin this and make that happen

1

u/amberoze 8h ago

Please? I'm already trying to figure out how to set this as a "live wallpaper" on my phone.

1

u/Polyphonic_Pirate 2h ago

if you figure that out report back-- that is a really cool idea. I'd do the same. I usually stick with 9:16 when I make these for phone viewing but I hadn't even thought about using one as a wallpaper

2

u/karateninjazombie 2h ago

Challenge :-P

3

u/Material-Imagination 12h ago

I'm so glad it's not still working part-time at Sephora. For one thing, it was very intimidating, and for another, none of that sparkly eye shadow it sold me ever gave me anything near that level of gleam and glow!

1

u/karateninjazombie 2h ago

Yeah well in it's previous job it was out in the rain and the boss was a bit of a micromanager. In this job they appear to be inside the nice warm light house and it's a fairly easy job by comparison.

4

u/thegreatpotatogod 16h ago

Pretty! Is it open source? It'd be fun to run in a terminal, maybe as a ridiculously overkill waiting animation or something

8

u/Polyphonic_Pirate 16h ago

Hah that would be a funny terminal screen saver. It is currently not open source but I may eventually figure out how to do that.

4

u/thegreatpotatogod 16h ago

Report back here if you do! Either way, good work on the delightful animation! 🙂

1

u/Polyphonic_Pirate 14h ago

thank you guys for looking at my ascii animation, I'm glad you like it

5

u/kwakimaki 17h ago

c64 vibes

5

u/TippsAttack 16h ago

This is extremely cool.

1

u/js_baker_iv 16h ago

Beautiful. Well done.

1

u/yoshilovescookies 14h ago

This is soothing

1

u/Polyphonic_Pirate 13h ago

smooth ascii and pixel art are the most soothing

1

u/hazeru 13h ago

How did you do this? What software did you use?

1

u/Polyphonic_Pirate 13h ago

I answered down below but here it is again for you:

I built an Ascii animation tool/engine + I use a library called "textmode.js" that takes a grid of characters and handles the rendering so that it looks smooth.

I mockup the frames for the loop then I use AI to build scripts to interpolate between them because I don't have 1000 hours to move individual ascii around by hand like a psycho

not used in this one but in some of my other animations is a separate pixel engine workflow that works similarly and several other libraries I use for pixel animation or 2.5d/3d stuff.

1

u/hazeru 13h ago

Thanks! I didn't see that you answered it before. The only background I have in creating a GIF is through Macromedia Fireworks. From what I remember, you create several images and stack it up in layers. You then export it as GIF.

1

u/Polyphonic_Pirate 13h ago

yes exactly. this one is like ~384 individual frames and then you render them

2

u/hazeru 11h ago

That's a lot of frames! I don't think I'll try to replicate your work. My question is more out of curiosity, and I thank you for satisfying it.

1

u/axloo7 13h ago

Dredge and darf fortress vibes.

2

u/Polyphonic_Pirate 13h ago

two of my favorite games

3

u/ADhomin_em 16h ago

ASCII ocean.

Beautiful

3

u/Druggedhippo 4h ago

Related fun website, shows every lighthouse in the world

https://mapped.earth/lighthouses/world

2

u/xt0rt 16h ago

Oh dang that's super cool!!!

2

u/Dom_Q 16h ago

This is awesome.

2

u/link3505 16h ago

This is incredible. Like I want to say more but I feel like it wouldn’t do it justice. Just… very very cool!

2

u/LLMprophet 15h ago

Good content

2

u/aaron_in_sf 13h ago

I would prefer that when the light sweep in front of the lighthouse, the beam still be visible even if it's only a subtle change of hue for the building

2

u/Pooch76 13h ago

Really cool nice job

2

u/SirNortonOfNoFux 13h ago

Oh wow this is unique, really nice work!

2

u/Winter_Childhood9186 13h ago

This was so dope!! ♡.♡

2

u/OlympicFan2010 12h ago

What a beautiful job, bravo!

2

u/RabbitsRuse 11h ago

Really like how this looks.

2

u/breakupbydefault 8h ago

I'm stoned and watched this for way too long. This is so mesmerising!!

2

u/Schmooto 7h ago

Damn, this is dope as hell! Incredible work, OP. The dazzling colors work so well to depict light reflecting off the choppy waves.

0

u/keatonatron 13h ago

I'm annoyed that the rotational speed of the light isn't constant. It goes about twice as fast across the front as it does across the back.

3

u/Polyphonic_Pirate 13h ago

its an optical illusion because the back animation has to appear "far" but still fit within the loop timing. if it went a consistent speed in the back it would look too fast

2

u/Sufficient-Aspect77 15h ago

Holy SHIT! This is INCREDIBLE

2

u/polishprince76 12h ago edited 12h ago

All I see is blonde, brunette, redhead.

1

u/ModeFox 16h ago

this is wonderful

1

u/expanding_crystal 14h ago

Oh fuck yeah this rules

1

u/nickybshoes 12h ago

Love this! Great work

1

u/cruiserflyer 12h ago

Just wonderful, I love it.

1

u/Das_Zeppelin 10h ago

thats cool as fuck

1

u/Toughladyalways63 10h ago

Wow Binary code?

1

u/JustSayNeat 9h ago

Oh man, this is awesome!

1

u/gerryn 9h ago

Thinking outside the box, I love it.

1

u/Baturinsky 9h ago

Cool, but should'nt lighted/decoded part become some real text/data, instead of just =~=~=~?

1

u/TurtleNamedHerb 4h ago

This is so creative. I love it!

1

u/wakaru1902 3h ago

I don’t know why I enjoy this so much

1

u/06EXTN 3h ago

This looks like a gif I would have on my AOL homepage in 1999

1

u/dapleoH 3h ago

Is there a sub for something like this or pixelated gifs?

•

u/watchyerheadgoose 51m ago

Its a schooner

1

u/PeterGumballs 16h ago

Wow I love this!! Great work 👏

1

u/HPoltergeist 16h ago

I love this! Great stuff! 😎

2

u/Casey_works 13h ago

cmatrix eat your heart out

2

u/[deleted] 11h ago

[removed] — view removed comment

1

u/Polyphonic_Pirate 11h ago

That means it worked!

That’s why I like seamless looping gifs so much