Skip navigation
tried recreating Yuma Garments 's vid from scratch in three.js with claude code to learn perspective…
0:00 / 0:21

tried recreating Yuma Garments 's vid from scratch in three.js with claude code to learn perspective…

simran sachdeva

@simranrambles23K followers

Visit on X
179 likesDownloadOriginal post

98,680 views

tried recreating Yuma Garments 's vid from scratch in three.js with claude code to learn perspective illusion telephoto lens squashes the street flat, then it widens and the depth appears. ink lines are a glsl shader. side by side below and after some iterations i've now turned this into a claude skill 😺

7 Comments

Comments from the original post on X (Twitter)

  • karvis's profile picture

    @a1254766624

    @garments__ telephoto squash → widen for depth, ink as a glsl shader — clean three.js + claude code loop which part ate the most iterations: the lens morph, or matching the ink look in the shader?

    2 likes

  • simran sachdeva's profile picture

    @simranrambles

    @garments__ the ink by far. the lens morph is closed-form basically hold the frame width at a focus plane and solve camera distance from fov. the ink shader had a lot to figure out cus screen-space detail crawls under camera motion, and close surfaces z-fight at 400m

    1 like

  • karvis's profile picture

    @a1254766624

    @garments__ ink winning over the closed-form lens morph tracks — screen-space crawl + z-fight at 400m is a nasty combo. did you stabilize with world-space noise, or just accept the crawl under camera motion?

  • SH's profile picture

    @RocketmanSh

    @garments__ how many iterations before the depth read right?

    1 like

  • simran sachdeva's profile picture

    @simranrambles

    @garments__ five-ish. the trick is the camera never tilts. it stays level and moves the horizon with lens shift, so verticals stay true and the flat-to-deep morph is just a dolly zoom

    2 likes

  • bitgrain's profile picture

    @trybitgrain

    @garments__ the flat orange sky with those traffic cones stacked in rows reads like a screenprint already. ink lines as a shader is such a nice way to learn it too

  • aarav's profile picture

    @1uprish

    @garments__ share