Using Fluid Effects in a Z-up system

At our studio, we have to use the Z-up coordinate system. It appears that this is terribly annoying to the whole fluid effects system. Is it possible to get fluid effects to work in a Z-up system? If so, where would I start to find the appropriate direction setter for this?

It is tricky. The ocean shader explicitly evaluates for a worldspace ocean in xz. It might work to override this on the shader by connecting a sampler info pointCameraY to the pointCameraZ on the ocean shader and visa versa. The preview plane may be trickier to setup. It may work to unlock the rotation and simply rotate it, but this is probably wishful thinking.

Another possibility is to simply use a ocean texture as a displacement map, rather than using an ocean shader. The heightfield fluid example shows how to set this sort of thing up and get it to work with a preview plane.. just substitute an ocean texture for the noise texture.

Duncan

I wish I really understood what pointCamera is, but by experimenting I got the ocean shader to mostly work by connecting a samplerInfo node to the ocean shader like this:
pointCameraX->pointCameraY
pointCameraY->pointCameraX
pointCameraZ->pointCameraZ

I’m still working on the preview and it seems that I’m having some problems with boats as well. I’ll update if I come up with anything.

-Matt