Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Problems with fluid rendering on mobile devices
#1
Bug 
Hello there
Im trying to make a mobile game using using Obi Fluid, but I ran into some problems. First of all I tried fluid in project with built-in RP. I opened FluidMill scene made some changes to fluid so it looks more like oil. And i noticed that fluid looks different on my android and in editor. Specifically where are no reflections on android (look at screenshots for comparison).
               
I tried changing many things but without any success. Also tried to build example scenes without changing anything in Fluid Renderer but still no reflections on android. 
So I decide to try URP. I made a simple project from unity's URP template project. Import obi fluid, convert built-in materials, added fluid renderer feature, and example scenes started working as intended in editor. But on Android fluid isn't rendering at all. Clearly particles are emitting because I can see mill spinning. Also tried to build on iOS and same result here - fluid isn't rendering.
         

Im using MacBook Pro m1 max
Unity 2021.2.6f1 apple silicon
Android 11 - Pixel 3
iOS 15.1.1 - iPhone 13 pro
Backend - burst
Obi fluid version 6.3
Reply
#2
(16-01-2022, 02:30 PM)bozdo Wrote: Hello there
Im trying to make a mobile game using using Obi Fluid, but I ran into some problems. First of all I tried fluid in project with built-in RP. I opened FluidMill scene made some changes to fluid so it looks more like oil. And i noticed that fluid looks different on my android and in editor. Specifically where are no reflections on android (look at screenshots for comparison).
  
I tried changing many things but without any success. Also tried to build example scenes without changing anything in Fluid Renderer but still no reflections on android. 
So I decide to try URP. I made a simple project from unity's URP template project. Import obi fluid, convert built-in materials, added fluid renderer feature, and example scenes started working as intended in editor. But on Android fluid isn't rendering at all. Clearly particles are emitting because I can see mill spinning. Also tried to build on iOS and same result here - fluid isn't rendering.
 

Im using MacBook Pro m1 max
Unity 2021.2.6f1 apple silicon
Android 11 - Pixel 3
iOS 15.1.1 - iPhone 13 pro
Backend - burst
Obi fluid version 6.3

Hi there,

Which rendering Api are you using? Fluid rendering requires floating point texture support. Are you by any chance using the OpenGL API in iOS? I ask this because it does not have support for these, only Metal has. Furthermore OpenGL has been deprecated by Apple, so switching to Metal is important. Have had no issues using either rendering pipeline in both platforms, but fluid won't render at all in iOS when using OpenGL.

Regarding Android: can you share your adb logcat contents? Obi specifies the reason for rendering issues in the log, if it's able to pinpoint what the cause is.
Reply