eidosmontreal / unreal-vdb

This repo is a non-official Unreal plugin that can read OpenVDB and NanoVDB files in Unreal.
Apache License 2.0
691 stars 109 forks source link

BP_VdbToVolumetricClouds clouds invisible if you don't start "play" #60

Closed Andrej730 closed 1 year ago

Andrej730 commented 1 year ago

Maybe I'm missing something (because on SparseVolumetrics test map it works fine) but whenever I setup BP_VdbToVolumetricClouds myself I cannot see it viewport if I don't start "play" mode. Which is inconvenient for tests. Sometimes restarting Unreal / changing level and changing it back / tweaking "Layer Bottom Altitude" in VolumetricCloud to 0, to 1, to 5 and back and forth helps but it's inconsistent.

Example: https://user-images.githubusercontent.com/9417531/214920258-00b71560-e037-402b-ad61-674bbafab5c9.mp4

Example map for tests - no clouds without play mode.zip

Andrej730 commented 1 year ago

Other inconstitance that is also apparent when cloud does work in non-play mode is that cloud in non-play mode is kind of shifting somewhere when in play mode it seems fine and it stays at it's place. Any fix for that?

https://user-images.githubusercontent.com/9417531/214924277-ecbe59ee-0b5e-4b59-b717-4517ce1b6d61.mp4

thilamb commented 1 year ago

This happens when the bounds of the VDB that change frame per frame are not updated on the material. The blueprint is responsible for updating these info. And the BP probably has a delay of one or two frames with the render thread (update is done on game thread). Let me know if you find a solution.

thilamb commented 1 year ago

Sorry but I don't have the energy to find a fix for this. Best of luck, Thibault.