RaananW 983 Report post Posted April 3, 2016 Hi guys, I just finished a new tutorial about cloth-simulation using the new physics architecture. Thought you might like to read: https://blog.raananweber.com/2016/04/03/cloth-physics-simulation-for-babylon-js/ If you have any questions or I missed something (or something is not clear), give me a shout! Cheers! 12 JohnK, Samuel Girardin, Pryme8 and 9 others reacted to this Quote Share this post Link to post Share on other sites
Dad72 916 Report post Posted April 3, 2016 impressive. thank you for that Quote Share this post Link to post Share on other sites
Pryme8 735 Report post Posted April 4, 2016 this is some real deal stuff thanks Raanan! Nearly everything I want to do is possible now. Quote Share this post Link to post Share on other sites
jerome 1734 Report post Posted April 4, 2016 Impressive !!! What a good article also ! Huge ! Quote Share this post Link to post Share on other sites
KevinBLT 12 Report post Posted April 4, 2016 I like this a lot. Thanks for your investigation! :-) Quote Share this post Link to post Share on other sites
Vousk-prod. 237 Report post Posted April 4, 2016 Excellent job !! Quote Share this post Link to post Share on other sites
NasimiAsl 1131 Report post Posted April 5, 2016 Perfect !! Quote Share this post Link to post Share on other sites
RaananW 983 Report post Posted April 5, 2016 Thanks everyone! If you wanna play with it a bit - http://raananweber.com/clothDemo/ . Hopefully soon an official demo on bybalonjs.com 2 jerome and iiceman reacted to this Quote Share this post Link to post Share on other sites
aWeirdo 339 Report post Posted April 5, 2016 Looks awesome! btw, I notised the ball seems to go through the cloth sometimes when touching, wouldn't it be possible to add a 0.1 distance of some sort to it? Quote Share this post Link to post Share on other sites
RaananW 983 Report post Posted April 5, 2016 Good question. maybe I should have explained why it happens This cannot be avoided. The problem is that the connection between the particles is a straight line, and the sphere is... round so the sphere goes "through" the cloth. You can avoid this by: 1) setting lower zOffset in your material 2) making the sphere less round 3) setting subdivisions to a very high number (which will result in low performance). 4) understanding that this is somehow acceptable The best solution would be to set the ground's subdivisions to a high number, but only setting impostors where you think the sphere will hit. But this is a complex task. If any of you want to do that, it would be great if you share a playground! Quote Share this post Link to post Share on other sites
NasimiAsl 1131 Report post Posted April 5, 2016 you can make a smaller sphere for render Quote Share this post Link to post Share on other sites
Vousk-prod. 237 Report post Posted April 5, 2016 Or set sphere.isVisible = false Quote Share this post Link to post Share on other sites
NasimiAsl 1131 Report post Posted April 6, 2016 you smaller sphere in vertex shader too Quote Share this post Link to post Share on other sites