Skip navigation
Can we talk about how insane Gemini 3.1 Pro is at webgl
0:00 / 0:35

Can we talk about how insane Gemini 3.1 Pro is at webgl

Meng To

@MengTo190K followers

Visit on X
5,187 likesDownloadOriginal post

352,636 views

Can we talk about how insane Gemini 3.1 Pro is at webgl

61 Comments

Comments from the original post on X (Twitter)

  • Meng To's profile picture

    @MengTo

    So many prompt ideas to add that spice to your UI. Find all the demos on which you can use for your landing pages: Let’s start with the workflow. From experience, animations or webgl don’t work well on the first prompt. It’s best to use on an existing design. So start to screengrab your design, and turn that to HTML by prompting: “ONLY make the UI EXACTLY as reference. Animate details. Add WebGL animation of the lines.”. Even if I mention animations, the result will be underwhelming. That’s why the second part is far more important to get the animations right. Prompt “add particles surrounding the layout like debris and lines using webgl, subtle dark lines and particles. rain hitting the layout and splashing”. Iterate: “more rains, longer lines, gooey liquid.” Try more concepts like “typewriter animation on heading looped. container sized lines with mini squares in corners.” “beam animations on horizontal lines. flashlight hover on borders.” “webgl particles earth globe. make the particles a bit brighter. should be be brighest near mouse. add flashlight on borders on mouse hover.” “dark mode, webgl lines, performant. full-width 3d grid lines. make the 3d grid respond to mouse.” “make webgl interactive, push on hover, explore on click.” “only keep the dots. make this performant. add lines shooting from each dot.”

    230 likes

  • Julien Dassonval's profile picture

    @jdassonval

    I’ve run a few tests, and for AI-assisted creative dev, Gemini often performs better than Claude. On the other hand, for complex architecture or applications, Claude Code tends to deliver better results. So I usually use Gemini for frontend work and Claude for everything else.

    24 likes

  • Meng To's profile picture

    @MengTo

    Agreed, Claude is a beast for coding but I find Gemini better at design.

    12 likes

  • Archízei's profile picture

    @MereawiMusie

    I think some of it was achievable with Gemini 3 Flash to some extent especially the particle effect ones and the ones that included mouse interactivity just like this project.

    12 likes

  • Meng To's profile picture

    @MengTo

    I'd say 3.1 is more detailed and has more variety.

    9 likes

  • Archízei's profile picture

    @MereawiMusie

    I'd have to experiment with it then. Appreciate the reply.

    1 like

  • Bilawal Sidhu's profile picture

    @bilawalsidhu

    Is it really that much better than opus? My experience has been mixed

    11 likes

  • Meng To's profile picture

    @MengTo

    opus is honestly cost prohibitive for visual experiments. from experience, gemini 3.1 pro is better at design/frontend.

    19 likes

  • Dipesh's profile picture

    @dipeshdotdev

    I think I lack creativity when working on frontends , I tried and it created pretty generic sites. While everyone is creating awesome frontends

    7 likes

  • Meng To's profile picture

    @MengTo

    or perhaps you got the wrong prompting workflow. try screenshot -> html -> add webgl after first iteration. but wait for the static visual to be good.

    20 likes

  • Dipesh's profile picture

    @dipeshdotdev

    Okay I try to one shot everything in a single detailed prompt.

  • Chirag Gadhvi's profile picture

    @Chirag__Gadhvi

    The model is very slow in Antigravity 🥹

    5 likes

  • Meng To's profile picture

    @MengTo

    there are overload times, like 9am EST. try outside those hours like 9pm EST.

    5 likes

  • Chirag Gadhvi's profile picture

    @Chirag__Gadhvi

    Sure I'll test this today!!

    2 likes

  • Mike Mickelson's profile picture

    @xMikeMickelson

    three.js devs watching this and quietly reconsidering their career choices

    4 likes

  • Meng To's profile picture

    @MengTo

    tbh everything is reconsidering their career choices

    6 likes

  • Meng To's profile picture

    @MengTo

    will share soon

    3 likes

  • Sidra Miconi's profile picture

    @SidraMiconi

    The progression from "add particles" to "rain hitting the layout and splashing" to "gooey liquid" is essentially art direction through natural language. A year ago this required a WebGL specialist and three weeks. Now it's iterative prompting over lunch. The creative ceiling didn't move. The floor disappeared. The fact that this is Gemini 3.1 Pro and not GPT or Claude producing these WebGL results is a meaningful competitive signal. Google has been perceived as trailing in creative coding tasks — the narrative has been "OpenAI for creative, Anthropic for enterprise, Google for search." This thread directly challenges that with visual evidence that Gemini's code generation for interactive graphics is at least competitive and potentially leading. 122K views means this is shifting perceptions in real time. The best marketing for a model isn't a benchmark score — it's a viral thread showing what it can actually produce.

    3 likes

  • Dan CN's profile picture

    @dann_pvn

    This looks awesome! Tbh, I don't believe this was built by Gemini at all, but maybe I suck at prompting.

    3 likes

  • Meng To's profile picture

    @MengTo

    my api logs would otherwise. have you tried the prompts i posted?

    1 like