Hello, I will soon need to add boats to a game I am working on. There will be water applied to a custom mesh with the Simple water system already in JME. The issue is that the bottom halfish of the boats (that players can walk inside) will be under this water. I do not want the water border to appear inside the boats. I originally thought this could be accomplished by simply not rendering water on any pixels where a boat will be rendered. But, this will cause issues when someone looks at the boat externally (or looks at an external part of the boat from some location on the boat). Even if this would work, I would have no idea how to implement it. I can’t simply not render water when a player is in a room that can see the water layer since the boats are effectively randomly generated by an external program and may contain windows that allow the water border to be visible.
I assume that I am not the first person to want to add explorable boats to a JME game. As such, I would like to know of a good method that would allow these boats to be rendered correctly without causing significant performance issues.