jorditantadiaz Posted February 23, 2017 Share Posted February 23, 2017 Hi, I'm loading two mesh, one T-shirt and one shorts, some parts of T-shirt goes through the shorts, so I'm trying to update T-shirt vertices where there is intersection point with the shorts, and make a small expansion of these, But when I do this, it's as if my t-shirt mesh is broken. PR:http://www.babylonjs-playground.com/#RQ90T Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 28, 2017 Share Posted February 28, 2017 Hi J! No replies yet, eh? What you are trying... is a bit complex, I think. http://www.babylonjs-playground.com/#RQ90T#1 I turned off X expansion (line 79) and amplified Z expansion (changed 0.05 to 0.5 in line 81). Now pan camera around model. It appears... that your "intersection checker" (line 61) or "intersected point gathering" (lines 62 & 64)... has problems. Perhaps it is not properly detecting areas that need expanding. I have never used intersectsPoint(). Maybe others have experience with it. I'm not sure if your "expander" will EVER work. It seems... that point-intersections on the BACK of the model... must be expanded differently... than those on the front of the model. I think each mesh point is in world space coords, and not in relative-to-model-origin coords. (What did Wingy just say? Is he on drugs?) I'm not much help... but hey, we got the topic bumped, at least. When zero-reply topics get old, they start to rot and stink. That's when I spray Lysol and Fabreeze on them. Cloth-mesh Overlap-Detection and Correction. Wow, what a topic! Sounds like the title of an advanced college course/book. GameMonetize 1 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.