www.jpct.net
jPCT - a 3d engine for Java => Support => Topic started by: Minigame on December 02, 2014, 07:12:19 am
-
I want some type of "realistic water flow".. Is this possible with jPCT? If so, where do I even begin. I've never done anything like it before.
Example:
-
What exactly is the water supposed to be? A bunch or particles or a deforming mesh or...?
-
The short answer is that it's possible, but you have to implement it yourself. I would think that it would either be a particle system (shouldn't be too hard but you never know) or a shader (I wouldn't even know where to start).
-
Do you know how MineCraft water moves? That's the best way I can explain. I'm not looking for particles like splashing, but more so a system which a pool of water can be distributed outwards if there is a downward area it can flow towards.
Edit: Deforming a mesh I suppose? I really don't have a clue where to start with this :-X
-
A VertexController?
-
If you really wanted to distort the model, I think that the VertexController would be the way to go. But I do think that a particle system (not for splashes, either, but for the drops of water themselves) is what you want here. I think that at least one of the Where's My Water games very visibly shows something the sort but I don't remember, to be honest).