Posts: 6,347
Threads: 24
Joined: Jun 2017
Reputation:
400
Obi Owner:
03-04-2018, 09:39 AM
(This post was last modified: 03-04-2018, 09:41 AM by josemendez.)
Hi Corbinyo.
ObiFluid uses ellipsoid splatting to render fluids, an extremely fast screen-space approach to fluid rendering. This however assumes perspective or orthographic camera projections, the only ones supported by default in Unity and the most widely used ones.
If you use any custom camera projection (such as stereographic, cylindrical, etc), you should modify the fluid rendering pipeline accordingly. I'm afraid this is not an easy task if you are unfamiliar with projective math.
If using Obi 3.4, you should look into ObiEllipsoids.cginc and modify the WorldEye and VisibleEllipsoidCircleRadius functions. As you can see, both have 2 cases: one for orthographic projections, another one for perspective. You should add code that can handle your custom projective mappings.