Page 1 of 1
Strange Cloth falls through the Terrain
Posted: Fri Mar 04, 2016 5:05 pm
by thelegend
Hey all,
at the moment I am attempting to convert Free Radical's Sheev Palpatine Model into Battlefront II. For now everything works fine but I am having trouble with the cloth stuff. The cloth combines itself into an ugly mass and falls through the map (Terrain) and never stops from falling. It still fixes where the fixed points were.
What I have done:
1. I created 9 c_sphere1-9 primitive spheres along his legs and above his pelvis.
2. I enveloped the robe (The robe is a seperate mesh) onto bone_a_spine (bone_a_spine is being used (I enveloped and weighted it too btw)).
3. ZeTools: I named the texture, selected all nine c_sphere's and put them into my selection. Then I did the fixed points thing.
4. I put both, the character mesh and the cloth mesh, under DummyRoot (bone_root is a child of the character mesh) and exported it. I didn't get any Export or "Argument 0 is invalid" errors.
5. I munged and this was the result:
Here's my scene in XSI:
My cloth odf:
Code: Select all
[GameObjectClass]
ClassLabel = "cloth"
[Properties]
attachedmesh = "rep_hero_palpatine"
priority = 1.0
I put this into my character's odf:
Code: Select all
ClothODF = "rep_hero_palpatine_robe"
I really appreciate if you could help me with this.
Re: Strange Cloth falls through the Terrain
Posted: Fri Mar 04, 2016 5:30 pm
by Anakin
The glitch looks like there are not all points enveloped to me.
Re: Strange Cloth falls through the Terrain
Posted: Fri Mar 04, 2016 9:03 pm
by thelegend
Anakin wrote:The glitch looks like there are not all points enveloped to me.
The cloth is completely enveloped to bone_a_spine. None of the points were missing.
Re: Strange Cloth falls through the Terrain
Posted: Fri Mar 11, 2016 1:10 am
by jedimoose32
I'm having exactly the same problem right now. All my points are enveloped (the entire mesh is enveloped). I've got some cloth collision spheres set up. But the cloth just stretches longer and longer toward infinity (and eventually crashes the game).
Re: Strange Cloth falls through the Terrain
Posted: Fri Mar 11, 2016 7:20 am
by ANDEWEGET
Can you provide screenshots of your mesh in XSI, the Cloth Properties window and the .msh file?
Re: Strange Cloth falls through the Terrain
Posted: Fri Mar 11, 2016 8:12 am
by thelegend
ANDEWEGET wrote:Can you provide screenshots of your mesh in XSI, the Cloth Properties window and the .msh file?
Scene:
Cloth Collisions selected:
Cloth Properties:
Mesh:
http://www.mediafire.com/download/bh69t ... thMesh.zip
Thank you for taking time to help us.
Re: Strange Cloth falls through the Terrain
Posted: Fri Mar 11, 2016 12:24 pm
by jedimoose32
Scene:
Collisions:
Cloth Properties:
I noticed in both my example and thelegend's there is nothing in the fixedcluster field, and I wonder if that is the problem. I'm assuming that's supposed to contain the name of the point cluster you select during the cloth setup process. I did select the points when I first created the cloth but the select function didn't look like it was working, so maybe that's the problem? Should I manually create a cluster of points and then just put the name of the cluster in that field?
Also, .msh file:
Download
Edit: I see ZETools created a ZEFixedPoints cluster from my original point selection. I'm going to try putting the name of that cluster in the fixedcluster field and I will report back once I've tried that.
Edit 2: Nope, same thing happens. Thanks for helping, ANDE.

Looking forward to getting this figured out.
Re: Strange Cloth falls through the Terrain
Posted: Mon Mar 14, 2016 7:14 pm
by ANDEWEGET
Hmm, I've taken a look at the .msh files and compared them to stock units with cloth but I couldn't find an obvious problem. There are differences with the constraints but that is gonna take more time to investigate.
The fixedcluster property is just a leftover from development, ZETools will automatically retrieve the fixed points from the cluster.
Do you mind testing cloth that isn't attached to units (like a prop)? I don't have the modtools set up to test right now.
Re: Strange Cloth falls through the Terrain
Posted: Mon Mar 14, 2016 7:21 pm
by thelegend
I have a theory: Maybe this is happening due to our OS's. When I made a cloth for a unit for an older map it worked fine. I have had a laptop (About a couple of years old-low quality) and had Windows 7 Premium 32Bit installed. It worked fine there. Now I have a new PC and have Windows 7 Ultimate 64bit installed. Maybe it's because of the bit versions. Does ZeTools support Cloth Exporting with 64bit PC's?
Re: Strange Cloth falls through the Terrain
Posted: Tue Mar 15, 2016 4:09 am
by Anakin
yes.
It works fine for me: Windows 10 Pro x64.
Re: Strange Cloth falls through the Terrain
Posted: Tue Mar 15, 2016 7:08 am
by ANDEWEGET
@anakin: You have cloth for units working? If so, can you send me a sample .msh?
The code for cloth is the same for both versions (unlike the normal geometry code which differs a bit) so it's unlikely that the problem is with that.
Re: Strange Cloth falls through the Terrain
Posted: Tue Mar 15, 2016 7:46 am
by Anakin
yes. cloth works fine for me. You can get the mode here:
http://www.gametoast.com/viewtopic.php?f=64&t=31949 commander and sharpshooter have cloth.
Re: Strange Cloth falls through the Terrain
Posted: Tue Mar 15, 2016 1:44 pm
by Teancum
thelegend wrote:Hey all,
at the moment I am attempting to convert Free Radical's Sheev Palpatine Model. . .
Off-topic: Sheev might be one of the worst names in the Star Wars universe.
Re: Strange Cloth falls through the Terrain
Posted: Tue Mar 15, 2016 5:07 pm
by ANDEWEGET
I've pushed a new release
here. I'm not sure if this fixes it but it's worth a try.
Re: Strange Cloth falls through the Terrain
Posted: Wed Mar 16, 2016 4:28 pm
by EarlybirdZZ
Teancum wrote:Off-topic: Sheev might be one of the worst names in the Star Wars universe.
Care to elaborate?
I know this is a matter of opinion, but it doesn't sound overly silly to me, so I'd like to know what it is that ticks you off.
if you don't mind
Re: Strange Cloth falls through the Terrain
Posted: Wed Mar 16, 2016 5:42 pm
by jedimoose32
Hey ANDE, the new release seemed to help! But the cloth is ignoring my collision primitives...
Did you notice any problems with the collision setup in my scene file?
Re: Strange Cloth falls through the Terrain
Posted: Wed Mar 16, 2016 6:24 pm
by giftheck
EarlybirdZZ wrote:Teancum wrote:Off-topic: Sheev might be one of the worst names in the Star Wars universe.
Care to elaborate?
I know this is a matter of opinion, but it doesn't sound overly silly to me, so I'd like to know what it is that ticks you off.
if you don't mind
It probably stems from the fact it's a name assigned by Disney. Before, Lucas had always disallowed naming Palpatine by first name - in fact, James Luceno was told not to call him by his first name in the Darth Plagueis novel.
Re: Strange Cloth falls through the Terrain
Posted: Thu Mar 17, 2016 7:30 am
by ANDEWEGET
@jedimoose32: The collision setup seems to be fine from what I can see. Try to not have the collisions overlap with the cloth mesh I guess. You can also import other meshes with working cloth and compare.