Strange Cloth falls through the Terrain

How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.

Moderator: Moderators

Post Reply
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Strange Cloth falls through the Terrain

Post 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:
Hidden/Spoiler:
Image

Here's my scene in XSI:
Hidden/Spoiler:
Image

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.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Strange Cloth falls through the Terrain

Post by Anakin »

The glitch looks like there are not all points enveloped to me.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Strange Cloth falls through the Terrain

Post 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.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Strange Cloth falls through the Terrain

Post 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).
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: Strange Cloth falls through the Terrain

Post by ANDEWEGET »

Can you provide screenshots of your mesh in XSI, the Cloth Properties window and the .msh file?
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Strange Cloth falls through the Terrain

Post by thelegend »

ANDEWEGET wrote:Can you provide screenshots of your mesh in XSI, the Cloth Properties window and the .msh file?
Scene:
Hidden/Spoiler:
Image
Cloth Collisions selected:
Hidden/Spoiler:
Image
Cloth Properties:
Hidden/Spoiler:
Image
Mesh:
http://www.mediafire.com/download/bh69t ... thMesh.zip

Thank you for taking time to help us.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Strange Cloth falls through the Terrain

Post by jedimoose32 »

Scene:
Hidden/Spoiler:
Image
Collisions:
Hidden/Spoiler:
Image
Cloth Properties:
Hidden/Spoiler:
Image
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.
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: Strange Cloth falls through the Terrain

Post 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.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Strange Cloth falls through the Terrain

Post 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?
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Strange Cloth falls through the Terrain

Post by Anakin »

yes.

It works fine for me: Windows 10 Pro x64.
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: Strange Cloth falls through the Terrain

Post 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.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Strange Cloth falls through the Terrain

Post 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.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Strange Cloth falls through the Terrain

Post 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.
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: Strange Cloth falls through the Terrain

Post by ANDEWEGET »

I've pushed a new release here. I'm not sure if this fixes it but it's worth a try.
User avatar
EarlybirdZZ
Recruit Womprat Killer
Posts: 8
Joined: Mon Jul 07, 2014 4:42 am

Re: Strange Cloth falls through the Terrain

Post 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
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Strange Cloth falls through the Terrain

Post by jedimoose32 »

Hey ANDE, the new release seemed to help! But the cloth is ignoring my collision primitives...
Hidden/Spoiler:
Image
Did you notice any problems with the collision setup in my scene file?
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: Strange Cloth falls through the Terrain

Post 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.
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: Strange Cloth falls through the Terrain

Post 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.
Post Reply