Hi,
I am sharing walking avatar with required mesh(INZ_Outfit_Top) subdivided into parts
we need to add wind effect from opposite side by which the outer coat should be waving.
we are trying with CannonJSPlugin but i could not find how to set the direction of wind.
pls suggest
Even if you get the force applied on the mesh part, I don’t think it will deform how you expect. You mentioned the outer coat should be waving, but the coat is a single mesh with the rest of the top, so the entire top would be affected. And it wouldn’t even be a believable waving anyway, as cloth deformation is very different from the rigid body physics you’re applying there… and it’s also pretty hard to control the effect…
I would recommend approaching this a bit differently and baking the cloth deformation directly on the mesh authoring tool, Blender for example has a lot of material on this: Blender Tutorial - Cloth Simulation | Advance Simulation | Blender 2.9 - YouTube. It will be much easier to control the final effect, and also cheaper on the final experience.
4 Likes
after using blender , will the cloth deformation happen realtime? Is there a way If I do this in blender and load that model in babylonjs and when i move my avatar the simluation happen realtime .
For example WebGL Water this is all happening in realtime, is there way to achieve cloth simulation in realtime
@carolhmj
1 Like
This is the most realistic water that I’ve seen in a browser. And its from 2010!
If you bake the simulation on blender, then it’s baked, it won’t happen realtime. But it is also possible to run cloth simulations on real time: Cloth sim in Havok - #7 by CraigFeldspar
Here is a tutorial to create a wind driven cloth with a shader:
Physics effect on cloth - Questions - Babylon.js (babylonjs.com)
2 Likes
I have a doubt, for cloth simulation but a different context .
So let’s suppose Games like PUBG, Fortnite they have different animations for each player .
and let’s suppose you change the cloth , now the animations are smoothly applied on the new dress, so they bake for each dress or there is some scalability technique , because I don’t think so they would be baking for each dress.