Загрузка видео...

Не удалось загрузить видео

На главную

For the last week I've been working on a fast enough way to render realistic light refraction through multiple layers of liquid in my VRChat fluid simulation. Ended up using a multilayer screen space ray marching solution to approximate the path of light.

28,264 просмотров • 6 дней назад •via X (Twitter)

Комментарии: 13

Фото профиля Mykhailo Moroz
Mykhailo Moroz6 дней назад

The idea was to basically use minimum blending and use all 4 color channels on the screen to write 4 depths: Nearest frontsurface, nearest backsurface, furthest frontsurface and furthest backsurface. (you can do min and max by inverting the numbers) Rendering the liquid with ZTest Off gives a pretty good approximation of the surfaces the liquid has that are within the field of view. Combining this with screen space ray marching of the scene depth and one can get a pretty decent emulation of how a multibounce ray traced fluid would have looked like, while being much faster. Without the 4 depths it would have been impossible to properly show the optical depth of absorption of light of the entire mass of fluid with air in-between.

Фото профиля Mykhailo Moroz
Mykhailo Moroz6 дней назад

Also I'm working on other rendering modes, but this one needs better shadow implementation... As you noticed I'm working on a nicer demo world, hopefully I'll release the world and the fluid simulation plugin soon enough.

Фото профиля Lichbait
Lichbait6 дней назад

is this an actual VRChat world that can be played in?

Фото профиля Mykhailo Moroz
Mykhailo Moroz6 дней назад

it is, just private so far

Фото профиля Lichbait
Lichbait6 дней назад

It’s so cool, Could I get the world link so I could play with it a little?

Фото профиля Mykhailo Moroz
Mykhailo Moroz6 дней назад

Sure, I guess Ill send it in dms

Фото профиля KuKo
KuKo6 дней назад

That's a party!

Фото профиля Sergio Caires
Sergio Caires6 дней назад

This looks 100x better than @UnrealEngine in this regard.

Фото профиля Mykhailo Moroz
Mykhailo Moroz6 дней назад

@UnrealEngine Yeah, niagara liquid simulation is particularly disappointing...

Фото профиля Mogmek
Mogmek6 дней назад

I feel like this could benefit a ton from bubbles+foam simulation. It's no super cheap performance wise, but it made my water so much more alive! And there's just a couple papers to read for this if I remember correctly

Фото профиля Mykhailo Moroz
Mykhailo Moroz6 дней назад

yeah i want to add bubble simulation too

Фото профиля Jordan Rodrigues
Jordan Rodrigues6 дней назад

Beautiful! Are you using XPBD to solve physical interaction between fluid and solid entities?

Фото профиля Mykhailo Moroz
Mykhailo Moroz6 дней назад

I don't do coupled interaction yet, objects don't see the food fluids physically

Похожие видео