Cloth collision problem

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
Splat
Private Second Class
Posts: 74
Joined: Mon Oct 20, 2008 4:10 pm

Cloth collision problem

Post by Splat »

I used the tutorial for adding cloth in xsi and my cape is all streced and mesed up. Does anyone know what is causing this? after some investigation, I have determined the problem to be the collision spheres.
What I did:

get>primitive>polymesh>sphere

window pops up

i dont change anything in window

scale it to proper proportions

move

file>pandemictools>createcloth

select collision spheres

export modle

afterthat if i highlight the spheres, the scailing is 1,1,1.

anyone know what is happening here?
Last edited by Splat on Wed Nov 26, 2008 1:11 am, edited 1 time in total.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Cloth collision problem

Post by AceMastermind »

Splat wrote:What I did:

get>primitive>polymesh>sphere

window pops up

i dont change anything in window

scale it to proper proportions

move
Cloth primitive collision spheres must be resized within the ppg, they follow the same setup procedure as any other primitive collision sphere as mentioned in the art_guide.doc.
art_guide.doc wrote:cylinders and spheres CANNOT be scaled. Instead, use the polygon properties such as radius and length to control the size of those 2 primitives. Also very important, primitive collision pieces CANNOT be frozen or lose their primitive properties. This information is taken directly into the game engine and if it is lost, the engine will most likely ignore the primitive collision. Lastly, DO NOT move the center of primitive collision either or else the proper information will be lost as well.
FragMe! also posted the same information in your other topic:
http://www.gametoast.com/forums/viewtop ... 37#p281837
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Cloth collision problem

Post by FragMe! »

Looking at your list you posted, you indicated you selected collisions but did you also select the attachment points?
(actually you must have or it would fall to the ground as soon as you spawned)
As well, once agan working from memory, I believe you still need to envelope the cloth to at least one bone. Which bone depends
on what type of cloth you are making of course.

If you post a picture of what the cloth is doing (or not doing) that would help diagnose the problem too.
And if you don't hide the c_collisions before export you can see how the cloth is reacting with them.
Splat
Private Second Class
Posts: 74
Joined: Mon Oct 20, 2008 4:10 pm

Re: Cloth collision problem

Post by Splat »

ok, this is the problem I am having:
and the spheres were scaled in the property window

Image
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Cloth collision problem

Post by AceMastermind »

Everything looks ok in your pic with the exception of the black ball on the shoulder which i'm guessing is your cape all bunched up, but something obviously went wrong at some point during your initial setup or else it would be working properly ingame.
I'll take a look at your scene if you want me to debug it.

Tip:
If you want to remove the green overlay to get a better screenshot when using the BF2_modtools.exe press the tilde key(~) then type:
Interface.Enable
press Enter then tilde and resume play.
To get it back press the tilde key then press the up arrow key and press Enter.
Splat
Private Second Class
Posts: 74
Joined: Mon Oct 20, 2008 4:10 pm

Re: Cloth collision problem

Post by Splat »

the black ball is one of the collisions, the cape is now.... streched between all players wiht that cape.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Cloth collision problem

Post by AceMastermind »

Ah, ok that's the first time i've seen cloth act like that. :) Yeah your setup went wrong somewhere, start from scratch and try it again or send me your scene if you want and i'll take a look at it.
Splat
Private Second Class
Posts: 74
Joined: Mon Oct 20, 2008 4:10 pm

Re: Cloth collision problem

Post by Splat »

alright, i started over and this is what i get, it seems its not responding to the collisions yet they are there. I am going to put collisions up and down the whole robot and see if it works then, but what i am getting now is:
Image
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Cloth collision problem

Post by FragMe! »

How many points are you using for attachment? Try selecting all the points from the armpits up.
Also from having looked at other capes a lot of them have a big shpere at the chest with most of the sphere infront of the unit
and only the back side of the sphere slightly past the spine. Can post a picture once I get home.

Edit:
As promised here is the cloth collision for Count Dooku's cape. It consists of 4 spheres (one of which is mostly hidden
by the really big one)
Hidden/Spoiler:
Image
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Cloth collision problem

Post by DarthD.U.C.K. »

setting up customcloth is pretty hard (especially when it has an unusuall form)
sometimes it doesnt work and sometimes the primitives are messed up ingame (new anim hazard!)
make shure that no primitive is touching the cape
and its better to use spheres than cylinders (cylinders tend to be undying primitives (maybe just on my comp))
Splat
Private Second Class
Posts: 74
Joined: Mon Oct 20, 2008 4:10 pm

Re: Cloth collision problem

Post by Splat »

That is a giantic collision sphere. illl play w/ it some, and is it ok if the collision spheres are touching the cape if its only the fixedpoints?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Cloth collision problem

Post by DarthD.U.C.K. »

im pretty shure they will even touch the fixed points but not 100%
Post Reply