PBR raymarching metaballs

I happened to come up with something that looks good, so I’d like to share it with you. I asked Claude 3.7 Sonnet to create a sample that blends metaballs with the scene.

11 Likes

This is super nice! congrats!

2 Likes

:man_facepalming: Oh no! I mean, oh yes! I saw this just as I was about to post quite a different approach to visualizing SDF world within a Babylon scene (what a coincidence!). Now I am a little bit jealous, because yours is so tidy and stylish. :sweat_smile: What is your use case for SDFs? Just having fun, or something more?

1 Like

I’m not very familiar with SDF or ray marching.

For this sample, I simply showed Claude.AI iq’s “snail” sample and asked, “Can you show me a simpler and cooler one?”

I attached the following source as a reference when making a request to the generative AI.

1 Like

It’s also fun to try summoning the works available on Shadertoy.

3 Likes

made by claude.ai: metaballs with a reflective surface so that you can see the metaball in the other.

Upgrade

1 Like

I tried modifying it to look like a fluid. (Of course, it’s the work of AI.)

I tried making the metaball morph between metallic, fluid, and fractal shapes.
Unfortunately, I relied entirely on AI, so I don’t fully understand the content. I plan to learn little by little.

babylonjs_raymarching_metaball_20250301_003

You should now try to recreate what the AI did but by yourself and so you understand why all this works. This is a really fun exercise because ray marching a sphere marching will help you a ton with your projection math and understanding shaders.

Taking a deep dive in learning how to do that yourself will be way more of an asset than asking the AI to do it and not understanding the content.

Then as you work on things like this in the future, your knowledge will help you create more complex and guided AI prompts to get even crazier results.

3 Likes

I have incorporated spherical harmonics.

babylonjs_sh_002

2 Likes