Jump to content

Updating vertex position


jorditantadiaz
 Share

Recommended Posts

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

Link to comment
Share on other sites

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?)  :D

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. :o

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...