Page 1 of 1

Need info on Cloth in SWBF2

Posted: Fri Apr 07, 2006 2:07 pm
by OOM-9
Image

Mkay, been working on summat, need information on how the game registers cloth. Does cloth interact with the unit's collision mesh?

PAN-Fnord, Psychfred?

Anybody?




~OOM-9

RE: Need info on Cloth in SWBF2

Posted: Fri Apr 07, 2006 3:10 pm
by Teancum
I *think* it's in the docs. Maybe either in the comments of the jedi template odfs or in the jedi or model doc. Basically it's a string of bones with a certain set of names that the game recognizes as cloth if I recall.

Posted: Fri Apr 07, 2006 3:24 pm
by OOM-9
Yea but do they recognize the collisions of the player model?

For instance if I was to successfully wrap this Magna in a cloak, and have him run around will it just billow oddly andclip all over or will it enwrap the model and move in response to the collision of the underneath model?

Palpatine SEEMS to be our answer... but I dunno for sure.




~OOM-9

Posted: Sun Apr 09, 2006 12:25 am
by PAN-Fnord
Cloth doesn't collide with the character's mesh - you have to add primitives (MUST be XSI primitives!) that it will collide with. Um...I don't recall what they have to be named, but they're in any mesh that has cloth so you can look for names. You just add them to the hierarchy, export the mesh and they work...as well as they will work. :^) Cloth has some "issues" with collision - cylinders don't work right all the time, but spheres and boxes do. Also, the shape you model the cloth in is the basepose for the cloth - if you model it sticking out behind the guy then it will try to always be sticking out, so model it in the at-rest position.

Also, the export process for cloth needs it to be deformable into a flat plane, so sleeves and cylinders etc are out - it will cut a seam in them. Otherwise Leia would have had a full dress.

Mike Z