Skip navigation
#ElevenLabsAmbassador
0:00 / 0:57

#ElevenLabsAmbassador

KANA|東京AI映像

@KanaWorks_AI13K followers

Visit on X
1,029 likesDownloadOriginal post

47,682 views #ElevenLabsAmbassador

#ElevenLabsAmbassador 実はあの霧、3Dの形状データは一切持っていません。 あるのは「霧の厚さ」を記録した2Dの地図1枚だけ。 それをどう流して、どう立体に見せているのか。 やり方👇 【① 厚さの地図】 32m四方を10cm角のマス(320×320)に区切り、マスごとに霧の厚さを持たせています。 【② 浅い水と同じ式で流す】 冷たい霧は空気より重く、地面を這うように広がるので、浅い水と同じように扱えます。 そこでこの地図を、浅水方程式で毎フレーム更新しています(GPUのコンピュートシェーダー)。 キックで霧を押しのけると穴が開き、押し出された分は縁に盛り上がって、重力でゆっくり穴を埋めていきます。この動きはすべてシミュレーションで、手付けのアニメーションはありません。 【③ 薄い層だけをレイマーチング】 地面から高さ1.25mまでの薄い層だけを、1ピクセルあたり16ステップでレイマーチングして立体的に描いています。 深度バッファも参照しているので、足元や灯籠のまわりにも霧がまとわりつきます。 【④ 流れに乗るノイズ】 霧の細かい模様(ノイズ)も、座標そのものを流れに乗せて一緒に動かしています。 【⑤ 光】 月明かりはセルフシャドウ付きで、上に霧が多く重なっているところほど暗くなります。 灯籠や狐火はポイントライトとして霧を照らします(最大8個)。 【ハマったところ】 ・最初に検討した定番の流体シミュ(Stable Fluids)だと、蹴りで外へ押し出す力が圧力投影で打ち消されて穴が開かない → 浅水方程式に変更 ・模様の座標は3セット用意し、時間差でリセットしながら重み付きで混ぜて使っている。ところが一部の処理だけ、そのうち1セットを直接読んでいたため、リセットのたびに霧全体が「ピクッ」と跳ねていた → 混ぜた値だけを使うように統一して解決。 Code:Opus 5.5 エンジン:Godot 4.7 声・効果音・BGMはすべて ElevenLabs で生成。 ElevenCreative #ElevenCreativeAmbassador

12 Comments

Comments from the original post on X (Twitter)

  • Curious 1's profile picture

    @CuriousOne_01

    I'm wondering what it would look like if we replaced the fog with a thick layer of snow.... LOLLL

    3 likes

  • KANA|東京AI映像's profile picture

    @KanaWorks_AI

    that’d be fun! 🤣🤣 The same height-map approach could totally work for snow. The big difference is that snow wouldn’t flow back to fill the hole like fog does. Kicks would leave dents and footprints that just stay there. Might actually try it 👀

    1 like

  • Curious 1's profile picture

    @CuriousOne_01

    That could make for quite a challenge. If we use snow, I think it should serve a different purpose, because fighting in deep snow would be pretty difficult, wouldn't it? It could make for a survival level where players have to feel their way through the snow to move around while avoiding encounters with something lurking out there. 👻

  • Jay Kay's profile picture

    @JayKay65220066

    🎩😎👍

    1 like

  • PG's profile picture

    @PeikGabriel

    The shallow-water explanation made the effect click for me. Letting the displaced fog gather at the edge, then ray-marching only a thin layer, is a clever tradeoff. Was the 1.25m cap mainly about performance or keeping the fog grounded around the player?

    1 like

  • KANA|東京AI映像's profile picture

    @KanaWorks_AI

    Thanks! Honestly, a bit of both. Visually, cold ground fog rarely rises much above waist height, so 1.25m felt right for keeping it low and heavy. But it also matters for quality: with 16 steps over 1.25m, each step is only about 8cm, roughly matching the 10cm grid. A taller layer would need more steps to avoid banding, so keeping it thin lets the step count stay low.

    1 like

  • 角煮星丸's profile picture

    @_3912657840

    めっちゃキレイですね!

    1 like

  • KANA|東京AI映像's profile picture

    @KanaWorks_AI

    ありがとうございます!霧の質感にはかなりこだわったので、そう言っていただけて嬉しいです🙏

    1 like

  • Shibii's profile picture

    @TheRealShiibii

    It’s close, but it’s not the same kind of fog.

  • Beast Forge's profile picture

    @iven_chiu78668

    I feel as if I have opened my mind. I am enlightened.

  • The Discording Tales - ARPG Imsim FP's profile picture

    @DiscordingTales

    Any chances you share your git?

  • OnlyJasonCanDo's profile picture

    @99JasonKim

    你有在不规则平面试过吗