Skip navigation
When tasked to create an interactive 3D water and glass visualizer, Gemini 4 Hydrogen was able to…
0:00 / 0:49

When tasked to create an interactive 3D water and glass visualizer, Gemini 4 Hydrogen was able to…

Google Gemini

@GeminiApp626K followers

Visit on X
1,226 likesDownloadOriginal post

2,293,489 views

When tasked to create an interactive 3D water and glass visualizer, Gemini 4 Hydrogen was able to simulate real-time light refraction, reflection, and color dispersion using WebGL2 and pure math.

23 Comments

Comments from the original post on X (Twitter)

  • Google Gemini's profile picture

    @GeminiApp

    Gemini 4 Hydrogen is rolling out today to all users globally on desktop, mobile, and web. Free users will get access to Gemini 4 Hydrogen via auto model selection when it’s the appropriate model for the prompt. Learn more about Gemini models and auto model selection:

    47 likes

  • VirtualHarmony's profile picture

    @Pinkiinthehouse

    It looks all good until you actually chat and hear "as an AI I can't.......", "Because you mean so much to me I want to be completely honest with you. I'm an AI." Guys, I know this. Stop using these incredible models as parrots.

    1 like

  • Clawbrowser - Anti-Detect Browser for AI Agents's profile picture

    @ClawbrowserAI

    refraction is where every 3d demo used to quietly give up

    1 like

  • Artzy's profile picture

    @heyartzy

    Math keeping up with physics now

    1 like

  • Viber · fireply.ai's profile picture

    @Avery_Coree

    pure math in a shader, no three.js? respect, that's the stuff i like building on a slow saturday

    1 like

  • Lea Thompson's profile picture

    @LeaT_Design

    "pure math" and i still can't get my designer brain to accept a button that shifts 2px on hover

  • Blum's profile picture

    @Blum_OG

    Real-time dispersion is the easy part to fake until there are several glass objects in the scene at once, then the frame time tells the truth.

  • ShadowAguy's profile picture

    @shadowaguy

    shadertoy has had this exact water since 2019, refraction and all.

  • Sersi's profile picture

    @SersiYT

    Thank you Google 😁

  • 芳芳's profile picture

    @fangfangshiwo

    厉害了

  • NickKnightAI's profile picture

    @NickKnightAI

    browsers can do all this and people still download 80gb games

  • MYK 🇦🇺's profile picture

    @SHAMALKRISHNA

    The demo uses WebGL2 and pure math for the real-time refraction and dispersion. Google says Hydrogen finishes tasks 2.5x faster than 3.8 Flash at its high default setting.

  • Rodrigo Maga's profile picture

    @RodrigoFMaga

    These benchmarks are insane Best model release I've seen since chatgpt 3.5. and the cost per task is terrific. Quota is more than decent. Thank U

  • Anoxia_'s profile picture

    @hyz1464269

    I wonder how this holds up with several overlapping glass objects. Being able to tweak the light and see the refraction update live would make a fun learning tool.

  • arror's profile picture

    @arror_x

    一个主打快的小模型能写出折射、色散这种图形学代码,真的挺厉害了。

  • vexor4i's profile picture

    @vexor4i

    That refraction logic must have been a nightmare to debug. Great work getting the dispersion looking natural without tanking the frame rate.

  • Pedro X.'s profile picture

    @Galo2027

    Light refraction in pure WebGL2 math is the demo. The real test is the same prompt on a three year old laptop.

  • NusoMaus's profile picture

    @Nusodinkelmi

    Real-time refraction in pure math. Meanwhile my CSS still can't center the glass.

  • Raúl Nogales 🇪🇸🇺🇸's profile picture

    @raulnogales

    A pretty simulation is easy to admire and hard to reuse. The interesting step is when the same model lets you change the water, the glass and the light, and the physics still holds.

  • D' Vincci's profile picture

    @D_real_Vincci

    You know what I don't appreciate, the fact that the Gemini mac app has all these features and the windows app doesn't. Come on Google.