Obi Official Forum
Help Android rendering doesnt't work and freezes - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Help Android rendering doesnt't work and freezes (/thread-4392.html)



Android rendering doesnt't work and freezes - Rearden - 21-10-2024

Hey there! Hope you are doing well!

I am using Unity 2022.3.21.f1 Obi Fluid 6.5. I am working with Built-in rendering pipeline.

I got an issue when building for Android - in my scenes fluid render looks like red squares, game freezes and/or crashes then.
At obi sample scene Faucet I cannot see fluid rendering at all, scene also freezes heavily, making it almost impossible to even quit. 

I have no such issues with iOS, everything works properly.

At the Logcat tab in the Android studio I got no errors related to Obi. Could you please help me with this issue?


RE: Android rendering doesnt't work and freezes - josemendez - 21-10-2024

(21-10-2024, 12:55 AM)Rearden Wrote: I got an issue when building for Android - in my scenes fluid render looks like red squares, game freezes and/or crashes then.
At obi sample scene Faucet I cannot see fluid rendering at all, scene also freezes heavily, making it almost impossible to even quit. 

Hi,

Which solver backend are you using? Also, which kind of Android hardware are you targeting?


RE: Android rendering doesnt't work and freezes - Rearden - 21-10-2024

(21-10-2024, 07:58 AM)josemendez Wrote: Hi,

Which solver backend are you using? Also, which kind of Android hardware are you targeting?

Hey there! I am using Burst, targeting API 34. I've just updated Burst to 1.8.18 with no luck, unfortunately


RE: Android rendering doesnt't work and freezes - josemendez - 21-10-2024

(21-10-2024, 01:03 PM)Rearden Wrote: targeting API 34

Hi!

That's the SDK/Android version. I meant which kind of device, in order to roughly know GPU capabilities (Obi 6 requires floating texture support for fluid rendering).

kind regards,


RE: Android rendering doesnt't work and freezes - Rearden - 21-10-2024

(21-10-2024, 01:42 PM)josemendez Wrote: Hi!

That's the SDK/Android version. I meant which kind of device, in order to roughly know GPU capabilities (Obi 6 requires floating texture support for fluid rendering).

kind regards,

Well, Android Studio says it's Android 12.0 under my device at the Device Manager tab, if that's what you meant. There were no problems rendering liquids with that device previously with Unity 2021.3.11f1, also "hard" particles(Like in the rolling friction demo) works just fine


RE: Android rendering doesnt't work and freezes - josemendez - 21-10-2024

(21-10-2024, 02:14 PM)Rearden Wrote: Well, Android Studio says it's Android 12.0 under my device at the Device Manager tab, if that's what you meant.

What I mean is the physical hardware you're using. Like, is it a Samsung Galaxy mobile phone? A Quest VR headset? a Google Pixel? etc.

(21-10-2024, 02:14 PM)Rearden Wrote: There were no problems rendering liquids with that device previously with Unity 2021.3.11f1,

Oh, that's important information. Do you mean the exact same project worked fine on the exact same device using a previous Unity version?

(21-10-2024, 02:14 PM)Rearden Wrote: also "hard" particles(Like in the rolling friction demo) works just fine

"Hard" particles don't require any specific GPU capability, they're just quads. Fluid on the other hand uses full-screen render textures since they're rendered using screen-space splatting, as explained in the manual. For this to work, hardware must support floating point render textures, hence why I'm asking what hardware you're using.


RE: Android rendering doesnt't work and freezes - Rearden - 21-10-2024

Oh, got it, I am using Redmi Note 10S

Yep, this is pretty much exact same project aside of some new content etc. There was the same Obi version and it worked perfectly


RE: Android rendering doesnt't work and freezes - Rearden - 21-10-2024

(21-10-2024, 02:47 PM)Rearden Wrote: Oh, got it, I am using Redmi Note 10S

Yep, this is pretty much exact same project aside of some new content etc. There was the same Obi version and it worked perfectly
Fortunately, I've found were the issue was - I was targeting low quality settings for the current Android build, with medium settings all works just fine! I think mb it is somehow related to a floating texture. Thank you, Jose!