![]() |
Obi Fluid 2D - Flipping Camera Horizontal Axis - 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: Obi Fluid 2D - Flipping Camera Horizontal Axis (/thread-1240.html) |
Obi Fluid 2D - Flipping Camera Horizontal Axis - docgonzzo - 22-06-2019 Greetings! ![]() I wanted to implement a "Camera Flip" mode where left is right and right is left etc. but the controls remain the same Below is what I ended up with. It gets attached to the main camera. Everything still works and looks fine, except the 2D fluid is now invisible. Hoping to get some hints on where i'm going wrong. Thanks! Code: //attached to MainCamera RE: Obi Fluid 2D - Flipping Camera Horizontal Axis - josemendez - 24-06-2019 (22-06-2019, 01:55 AM)docgonzzo Wrote: Greetings! Hi, The fluid renderer supports both the built-in perspective and orthographic camera projections. If you're using a custom projection, then you must also add support for it in the renderer. You can find the functions used to implement projection in Obi/Resources/ObiMaterials/ObiEllipsoids.cginc (WorldEye and VisibleEllipsoidCircleRadius functions) and ObiFluids.cginc (Z2EyeDepth and EyePosFromDepth functions). kind regards, |