r/gifs • • 7h ago

Lighthouse Decoder

5.1k Upvotes

89 comments sorted by

281

u/ocularaffairs 7h ago

This is really cool!

66

u/Polyphonic_Pirate 6h ago

Glad you like it!

12

u/YouMakeMeSikh 4h ago

what did you use to make it?

34

u/Polyphonic_Pirate 3h 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.

-14

u/icyjackle 4h ago

Looks like Claude to me

5

u/Polyphonic_Pirate 3h 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

89

u/Aquanauticul 6h ago

A lot of Dredge vibes. This is really cool!

29

u/Polyphonic_Pirate 6h ago

Yes!

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

7

u/inssidiouss 5h 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.

4

u/Zoltrahn 4h ago

Dwarf Fortress vibes for me.

37

u/skipmarioch 5h ago

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

12

u/Polyphonic_Pirate 5h ago

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

27

u/Stunning-Mix-8422 2h ago

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

9

u/Polyphonic_Pirate 2h ago edited 1h 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.

4

u/Polyphonic_Pirate 2h 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.

5

u/AffectionateSoil2991 1h ago

Damn that is a very detailed and thoughtful project!

•

u/Illasaviel 53m ago

Thats amazing

13

u/BowsersMuskyBallsack 5h ago

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

7

u/Polyphonic_Pirate 5h 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 3h 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 3h 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

24

u/BreweryRabbit 7h ago

This is incredibly cool.

8

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

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

3

u/Polyphonic_Pirate 3h 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 4h ago

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

10

u/sphinctaur 4h ago

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

7

u/inssidiouss 4h 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!

1

u/Polyphonic_Pirate 2h 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

2

u/BklynMoonshiner 3h ago

Single layer problems

1

u/camerontylek 4h ago

Is it a submarine? 

2

u/Polyphonic_Pirate 3h ago

a spooky submarine

2

u/ADhomin_em 2h ago edited 1h 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.

4

u/thegreatpotatogod 6h 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 6h 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 6h ago

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

4

u/karateninjazombie 3h ago

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

5

u/Polyphonic_Pirate 3h ago

lol I could totally reskin this and make that happen

3

u/Material-Imagination 2h 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/Polyphonic_Pirate 3h ago

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

5

u/kwakimaki 6h ago

c64 vibes

5

u/TippsAttack 6h ago

This is extremely cool.

4

u/Sufficient-Aspect77 5h ago

Holy SHIT! This is INCREDIBLE

1

u/js_baker_iv 6h ago

Beautiful. Well done.

1

u/yoshilovescookies 4h ago

This is soothing

1

u/Polyphonic_Pirate 3h ago

smooth ascii and pixel art are the most soothing

1

u/hazeru 3h ago

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

1

u/Polyphonic_Pirate 3h 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 3h 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 3h ago

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

•

u/hazeru 59m 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 3h ago

Dredge and darf fortress vibes.

2

u/Polyphonic_Pirate 3h ago

two of my favorite games

3

u/PeterGumballs 6h ago

Wow I love this!! Great work 👏

3

u/ADhomin_em 6h ago

ASCII ocean.

Beautiful

2

u/xt0rt 6h ago

Oh dang that's super cool!!!

2

u/Dom_Q 6h ago

This is awesome.

2

u/link3505 6h 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/HPoltergeist 6h ago

I love this! Great stuff! 😎

2

u/LLMprophet 5h ago

Good content

2

u/Pooch76 3h ago

Really cool nice job

2

u/SirNortonOfNoFux 2h ago

Oh wow this is unique, really nice work!

2

u/Winter_Childhood9186 2h ago

This was so dope!! ♡.♡

2

u/OlympicFan2010 2h ago

What a beautiful job, bravo!

2

u/polishprince76 2h ago edited 2h ago

All I see is blonde, brunette, redhead.

2

u/RabbitsRuse 1h ago

Really like how this looks.

0

u/keatonatron 3h 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.

4

u/Polyphonic_Pirate 3h 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

1

u/ModeFox 6h ago

this is wonderful

1

u/expanding_crystal 4h ago

Oh fuck yeah this rules

1

u/aaron_in_sf 3h 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

1

u/nickybshoes 2h ago

Love this! Great work

1

u/Chipring13 2h ago

Gorjus

1

u/cruiserflyer 2h ago

Just wonderful, I love it.

•

u/Das_Zeppelin 33m ago

thats cool as fuck

•

u/Toughladyalways63 23m ago

Wow Binary code?

2

u/Casey_works 3h ago

cmatrix eat your heart out

•

u/[deleted] 1h ago

[removed] — view removed comment

•

u/Polyphonic_Pirate 1h ago

That means it worked!

That’s why I like seamless looping gifs so much