Cloth Sim by Euler Integration + Sping-massThis source code is modified from Cloth Tutorial at cg.alexandra.dk. Changes as below * Euler integration * Spring-mass The reason I do this is to compare the two methods, Constraint vs Spring-mass Some Observation * Euler integration is nicer with smaller time step * Spring mass system is not very stable and very subjective to forces and constants * Spring mass constant has to be set carefully below some threshold (got to test it) to maintain stability * Spring mass fail to spread out the position offset from collision detection. This lead toi)over extend of few vertex ii) CD obj pass thru cloth as vertex are sequeezed out to the side of CD obj * So the ball movement is so slow here to avoid passing thru the cloth So these may conclude why Euler + Spring mass is not used code pour embarquer la vidéo : >>> http://www.youtube.com/embed/R4Xu-7-VsGI <<< |