how do you think this is done ?

Best guess πŸ‘€ https://v.nostr.build/v459.mp4 https://v.nostr.build/8y3G.mp4

Reply to this note

Please Login to reply.

Discussion

I’ll post the GitHub repo and test site once yall get it right πŸ‘€

& if not then in an hour I guess lol

ah shid

This is the most useless coolest thing Ive seen built with WebGL

i still don’t know β€œhow” it is done

wdym it’s right here lol

meant more in terms of understanding it logically as a solution

The script just subscribes to window position and resize events, plus a lot of other webGL magic + math I could never explain

communicate between windows based on browser storage to domain, like cookie. each shares key info about position and size of canvas

That’s beautiful and mind blowing!

(Saw the GitHub repo and local storage posted, thanks for sharing)

Right! Idk what I’ll use it for 🀣 but truly incredible! No problem!

Looks cool! What do you use it for ?

nostr:note1pk56k0rn4d280kuc95th89afthnkw5tvcva706q906t22k95n3yq39rtd5

Interesting. So you could have a game where the main window is the actual game and a pop up window with inventory, another one with the map. All in sync

Goddamit I just saw he got 6.6M views on it already lol should’ve figured it went viral

Would this work with more agressive ad blockers. This should have tracking that is almost illegal.

>t. not programmer (yet)

I've been a web developer my whole life and this is the most shocking and impressive demo I've ever seen... but I also wasn't aware of the window details API until now πŸ˜…πŸ‘ very cool

Righttt!! You got the github already ?

Yeah I'm gonna check it out. Might he useful for ONOSENDAI

Super cool.

These are all localhost.

First, a window knows where it is and about the windowing environment. There is an ancient program called "xeyes" that are a pair of eyes that always look at wherever your mouse cursor is. So this data can inform the animation if the window was moved, so it can react to that movement.

Second, being on a localhost server, the frontend can communicate that information back to the localhost server, and the server can coordinate multiple windows.

Ding ding dingggg

sheeesh!! now I’m curious what you’ll do with it πŸ‘€πŸ”₯