Replies: 1 comment
-
I have been reviewing the ball-cloth code and playing with it changing some parameters. I understand I do not need to make the cloth 3d, although the fluid will be defined in 3d, i.e., the spring-mass system will have masses at 3d grid points, and six (will be sufficient I think) springs connecting each mass to its vertical and horizontal neighbors. They need not be visible, swicth controllable if possible. The cloth could be representing the topmost mass layer in 2d, thus enabling us to visualize fluid surface flow and waves, although all 3d dynamics will be in place through 3d mass grid under the cloth. I did change pos and velocity fields to 3d, by adding a third indice while keeping cloth vertices and indices in 2d as they were. I also added a third indice for the springs. The simulation runs (the fps indicator is updated) but I can not see anything. I think I am not putting in correct objects in particleSystem. |
Beta Was this translation helpful? Give feedback.
-
I have looked at cloth falling on a ball example where the cloth is modelled as a 2D spring mass system.
To model a fluid in 3d I need a 3D spring mass system, in a rectangular container only open at the top surface (free flow at the top, zero velocities at other surfaces).
I need to extend cloth definition to 3D. Also 3D GUI will be helpful.
Beta Was this translation helpful? Give feedback.
All reactions