bobb
June 25, 2015, 10:53am
1
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)
nehon
June 25, 2015, 11:43am
3
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
bobb
June 28, 2015, 8:18am
4
Awesome worked like a treat.