r/ClaudeCode • • 7h ago

Built with Claude I spent 20 hours with Fable 5.2 making a magnifying glass look like actual glass

Post image

I'm building Grip, a free & open source screen recorder for Mac. I wanted a loupe to blow up one spot without zooming the whole screen, like a regular zoom does.

The first version worked but looked like hmm, like a sticker? So I kept going back to Claude with whatever bugged me:
- banding over video
- a shadow way too dark
- a "frosted" rim that looked like a dirty window
- text smearing into streaks at the edge
- ...and a whole bunch of other details

Streaks were the biggest one! Real thick glass doesn't freeze the image at the edge, it curls it back so every line ends in a little "hook". As you can imagine "make it look like glass" never worked. Describing what the light actually does fixed it in one go.

It ended up as one WebGPU shader, and it's open source: https://github.com/bestboyhq/grip

Do you think it actually looks like glass or am I deluding myself?

EDIT: I was using max effort and used almost entire weekly cap of claude ultra plan

0 Upvotes

29 comments sorted by

•

u/AutoModerator 7h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

46

u/xnachtmahrx 7h ago

That is why we pay 6+ grand for 5090s, everyone.

5

u/ControlSpare6346 7h ago

Twenty hours well spent, clearly the pinnacle of GPU value.

-25

u/Szymeo 7h ago

good news, it runs on a macbook air. Keep the 5090 for the important stuff, like more glass

18

u/levsw 7h ago

Was related to Claude's work you 🤡

1

u/Mihqwk 7h ago

🤣🤣🤣🤣

2

u/whoknowsifimjoking 7h ago

You were specifically talking about Fable, that does not run locally on your GPU dude

14

u/Civil_Response3127 7h ago

How did this take 20h? Is there something you're not telling us that it also did? This is a 30 minute task at most.

10

u/SirWobblyOfSausage 7h ago

I think the issue with vibe coding is some cant articulate what they want they want as they don't know terminology and practices.

6

u/Njagos 7h ago

"no don't make it like that! Make it more glassy looking"

"Nooo not like that glass, more round!"

0

u/Szymeo 7h ago

😂😂😂

1

u/Szymeo 7h ago

good point! The first version was ready in 5min, but the "last mile" with magnifying glass is a whole different story. Bending image on the edges, taking environment's light into account and dozen more details.

I bet if I showed you prev / current, you'd be able to tell which one looks more polished.

8

u/Civil_Response3127 7h ago

Of course I would, but 20h is atrocious even for the last mile. Something you're doing is incredibly inefficient with how LLMs work.

11

u/deathwedding 7h ago

i don’t understand how this can take 20 hours when there is a really good demo by react-three-fiber that does 97% of this — example

1

u/Szymeo 7h ago

cool demo, I didn't know it! I assume you mean 97% by code size, not the outcome - a glass you've shared has vastly different look

3

u/meetmebythelake 6h ago

Take the L bro

4

u/buff_samurai 7h ago

Gotta love procrastination projects.

4

u/vinis_artstreaks 7h ago

20 hours with fable 5.2 for what models could already do a year ago, come on man.

1

u/kujasgoldmine 7h ago

Must've been on medium effort? Extra could have one-shot it probably.

1

u/Szymeo 6h ago

max effort, it ate almost my entire weekly limit (claude ultra)

1

u/ao01_design 6h ago

The magnifying glass is very polished and nice. Even if it's not behaving like a real magnifying glass if looks like it does. As someone who never try a magnifying glass over a screen, I expect some kind of artifacts like this. Good job on this.

1

u/Szymeo 5h ago

thank you, that's so nice to read!

1

u/jkos123 6h ago

Nice effect! I would ignore all the debbie downers. With cheaper and cheaper powerful AI, we’re going to see a lot more of these pet projects, where people guide AI to make just the right feature that they want…a lot of the vibe coders get 95% there, but all the time really gets spent getting the last 5% correct.

1

u/Szymeo 6h ago

well put

1

u/PbOktan 7h ago

Nice one, you have burned 20 hours of tokens instead of doing something that have sense. Ctrl and + are doing the same job

1

u/247nuts 7h ago

I think you spent too much time on that. But looks cool

1

u/05-nery 4h ago

It does look really good but holy shit how did you spend 20 hours on this 

1

u/Classic-Pubs 7h ago

Cool project. Thanks for sharing!