Page 1 of 1

Cloth collision problem

Posted: Tue Nov 25, 2008 11:19 pm
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?

Re: Cloth collision problem

Posted: Wed Nov 26, 2008 4:26 am
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

Re: Cloth collision problem

Posted: Wed Nov 26, 2008 9:18 am
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.

Re: Cloth collision problem

Posted: Wed Nov 26, 2008 2:35 pm
by Splat
ok, this is the problem I am having:
and the spheres were scaled in the property window

Image

Re: Cloth collision problem

Posted: Wed Nov 26, 2008 3:54 pm
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.

Re: Cloth collision problem

Posted: Wed Nov 26, 2008 3:56 pm
by Splat
the black ball is one of the collisions, the cape is now.... streched between all players wiht that cape.

Re: Cloth collision problem

Posted: Wed Nov 26, 2008 4:11 pm
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.

Re: Cloth collision problem

Posted: Wed Nov 26, 2008 4:19 pm
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

Re: Cloth collision problem

Posted: Wed Nov 26, 2008 5:00 pm
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

Re: Cloth collision problem

Posted: Thu Nov 27, 2008 1:46 pm
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))

Re: Cloth collision problem

Posted: Thu Nov 27, 2008 2:38 pm
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?

Re: Cloth collision problem

Posted: Thu Nov 27, 2008 3:13 pm
by DarthD.U.C.K.
im pretty shure they will even touch the fixed points but not 100%