RaananW Posted April 3, 2016 Share 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! Samuel Girardin, Wingnut, Dad72 and 9 others 12 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted April 3, 2016 Share Posted April 3, 2016 impressive. thank you for that Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted April 4, 2016 Share Posted April 4, 2016 this is some real deal stuff thanks Raanan! Nearly everything I want to do is possible now. Quote Link to comment Share on other sites More sharing options...
jerome Posted April 4, 2016 Share Posted April 4, 2016 Impressive !!! What a good article also ! Huge ! Quote Link to comment Share on other sites More sharing options...
KevinBLT Posted April 4, 2016 Share Posted April 4, 2016 I like this a lot. Thanks for your investigation! :-) Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted April 4, 2016 Share Posted April 4, 2016 Excellent job !! Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted April 5, 2016 Share Posted April 5, 2016 Perfect !! Quote Link to comment Share on other sites More sharing options...
RaananW Posted April 5, 2016 Author Share 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 iiceman and jerome 2 Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted April 5, 2016 Share 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 Link to comment Share on other sites More sharing options...
RaananW Posted April 5, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
NasimiAsl Posted April 5, 2016 Share Posted April 5, 2016 you can make a smaller sphere for render Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted April 5, 2016 Share Posted April 5, 2016 Or set sphere.isVisible = false Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted April 6, 2016 Share Posted April 6, 2016 you smaller sphere in vertex shader too Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.