Hi
I’m trying to create a grid of transparent custom mesh objects on top of some water, but this doesn’t work.
Here is what happens:
I tried applying the solutions from this previous discussion on an exact same problem:
http://hub.jmonkeyengine.org/groups/graphics/forum/topic/waterfilter-and-transparency/
I’m probably just missing a small piece of code. Unfortunately I’m not yet clued up on these things.
Thanks.
so you did both of these steps? :
@nehon said:
place your translucents objects in the translucent bucket (model.setQueueBucket(Bucket.Translucent))
then add a new TranslucentBucketFilter to your filter stack (after the water filter) and it should work.
1 Like
One question though…this looks a lot like a HUD, why don’t you put it in the GUI viewport?
@thetoucher said:
so you did both of these steps? :
Ok found the problem. I was using Bucket.Transparent instead of Bucket.Translucent. Must have misread it :roll:
Thanks for the help @thetoucher. I was at the point of pulling my hair out.
@nehon said:
One question though...this looks a lot like a HUD, why don't you put it in the GUI viewport?
Actually this was just an example. I'm aiming to create a 3D battleships game. These meshes will make up the grid the player uses to place ships on. The look might even change in the future.