Removing water filter within a canoe

I have a canoe model that is sitting in a lake using the WaterFilter.

The canoe can move around the lake,

The water looks awesome but I have the problem that is within the canoe, making it look half sunken.

How can I prevent the water filter rendering inside the bottom of the canoe?

1 Like

Put a almost invisible geometry inside the canoe (alpha channel=0.000000001)

This is the only solution really, but there is a better way to do that to make it invisible. You can tell the material to not write color (it will only write color information)

geom.getMaterial().getAdditionalRenderState().setWriteColor(false)

However, if you ever use shadows, make sure the “ghost” geometry as a ShadowMode.Off.

geom.setShadowMode(ShadowMode.Off);
1 Like

Awesome worked like a treat.