Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  ObiFluid_7.0b installation issue
#2
(29-11-2023, 03:56 AM)Snail921 Wrote: NullReferenceException: Object reference not set to an instance of an object
Obi.ComputeFluidMesherSystem..ctor (Obi.ObiSolver solver) (at Assets/Obi/Scripts/Common/Backends/Compute/Rendering/Fluid/ComputeFluidMesherSystem.cs:105)

Hi!

Seems like a shader is either missing or has an error. Check that Obi/Resources/ObiMaterials/Fluid/Compute/IndirectThickness.shader exists, and whether it shows any errors in the inspector when you select it.

(29-11-2023, 03:56 AM)Snail921 Wrote: Obi.ObiFluidSurfaceMesher.Obi.ObiRenderer<Obi.ObiFluidSurfaceMesher>.CreateRenderSystem (Obi.ObiSolver solver) (at Assets/Obi/Scripts/Fluid/Rendering/ObiFluidSurfaceMesher.cs:53)
Obi.ObiRenderer`1[T].RegisterRenderer (Obi.ObiSolver solver) (at Assets/Obi/Scripts/Common/Rendering/ObiRenderer.cs:47)

This seems like a bug/documentation issue in Collections 2.1.4. The Sort() method is declared in the static class NativeSortExtension, however it does not seem to be an extension method as the documentation states.

So instead of calling it directly on a NativeSlice, it needs to be called as a regular static method. Replace line 144 in Obi/Scripts/Common/Backends/Burst/DataStructures/ConstraintBatcher/ConstraintSorter.cs with

Code:
NativeSortExtension.Sort(slice, comparer);

Also, in line 12 of the same file change the declaration to this:

Quote:public class ConstraintSorter<T> where T : unmanaged, IConstraint
Reply


Messages In This Thread
ObiFluid_7.0b installation issue - by Snail921 - 29-11-2023, 03:56 AM
RE: ObiFluid_7.0b installation issue - by josemendez - 29-11-2023, 08:47 AM