31-07-2023, 11:47 AM
(This post was last modified: 31-07-2023, 11:56 AM by josemendez.)
(31-07-2023, 11:31 AM)Yumineko Wrote: (I apologize if there are any flaws or rudeness due to machine translation.)Hi!
When I create a new project with "3D(URP)" and import Obi Fluid, I get an error in the following Shader inspector.
If IĀ build on Windows Intel 64bit environment in this state, the fluid that was normally displayed in Editor will not be rendered.
Implicit truncation warnings aren't a concern, they just mean the compiler will automatically convert a float4 to a float3 (or a float3 to a float2, etc) by ignoring the last component. This will raise a warning in some graphics APIs. As long as there are no errors, the shaders should work.
The only remaining possible cause is that the assets simply aren't being included in the build for some reason. They're within a "Resources" folder so this shouldn't be the case, but let's assume they're not making it into the build. To check this, go to ProjectSettings->Graphics->Always Included Shaders and include these shaders in the list:
Obi/Resources/ObiMaterials/FluidThickness
Obi/Resources/ObiMaterials/ScreenSpaceCurvature
Obi/Resources/ObiMaterials/NormalReconstruction
Obi/Resources/ObiMaterials/URP/FluidShader
Then do a build, see if it makes any difference. In case it doesn't, would you mind sending us your project (or a smaller project that reproduces this issue, in case yours is too large) to support(at)virtualmethodstudio.com so that we can take a closer look? Thanks!
(31-07-2023, 11:31 AM)Yumineko Wrote: Other concerns
Script Updating Consent" dialog appears when importing Obi Fluid (error did not go away no matter which option was selected).
This is not an error, just Unity offering to automatically update imported scripts to use the latest available APIs. Depending on the Unity version used this message might appear, either answer to it is valid.
Obi is designed to be compatible with Unity 2019.4 upwards, so more recent versions might show this message.
(31-07-2023, 11:31 AM)Yumineko Wrote: When importing the packages required for Burst in Obi Renderer, a compile error occurs at line 74 of "Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs" ( (Fixed by setting length to Length).
Newer versions of the packages might have changed the definition of "length" to "Length", will take a look into it. Updating the capitalization should be enough.
kind regards,