Pressurized cloth collapses

Vineeth@nxOgre

20-03-2008 07:07:53

I am trying to Place a Sphere inside the pressurized cloth so that when the cloth is teared it does not lose out air and collapse.The sphere inside prevents from collapsing so that it retains its shape

How can i acheive this effect betajaen

betajaen

20-03-2008 11:23:21

I don't think it's possible, or if you do manage to pull it off - it won't work as you expected. Since in reality if you do tear a football it will collapse.

Can't you just turn off tearing for the cloth?

Vineeth@nxOgre

20-03-2008 11:56:26

I am trying to model something like tennis ball( not that hard) Well if I cut or tear it open and then peel it out the ball should not collapse.But at the same time I should be able to get the rippling effect at the tear spot

is it possible betajaen.
if not please suggest an alternating way to go about it

betajaen

20-03-2008 11:57:51

Can't you just use a normal sphere? A Tennis ball or anything fast moving requires CCD which the cloth system doesn't provide.

Vineeth@nxOgre

20-03-2008 12:12:52

Ok I am trying to tear open something that is kept on the table.I dont intend to use any CCD skeleton for the Shapes which cloth doesnt support any way.

betajaen

20-03-2008 13:06:44

You may be able to give the cloth a higher than normal bending stiffness but otherwise I can't see how it would work.

Vineeth@nxOgre

24-03-2008 12:37:59

Yeh I tried with high bending stiffnes and it works not upto my expectation
To acheive the same objective i am now trying to create a mesh with 2 textures and mesh material

material mainred
{
technique
{
pass
{
ambient 0 0 0 1
diffuse 1 1 1 1
specular 0 0 0 1
emissive 0 0 0

texture_unit
{
texture red_01.jpg
tex_coord_set 0
colour_op modulate
scale 1 1
scroll 0 0
rotate 0
}
}
}
}
material sidevalve
{
technique
{
pass
{
ambient 0 0 0 1
diffuse 1 1 1 1
specular 0 0 0 1
emissive 0 0 0

texture_unit
{
texture valves_01.jpg
tex_coord_set 0
colour_op modulate
scale 1 1
scroll 0 0
rotate 0
}
}
}
}



.I intend to tear only on one of them.But the program is not accepting two mesh materials .If I define two mesh materials it takes only one.the last one.
One of the textures I intend to make cloth and tear it since we always tear at predefined locations


Maybe my modeller has given me two meshes ie it may have submesh hence cant create cloth also

NickM

24-03-2008 15:41:40

You may want to look into creating your own purpose made object, which could be modelled using a verlet algorithm to create your own type of cloth, you'd have as much control as you want, in code you would attach each of your visible mesh vertices to a verlet particle, you can then apply a force to any verlet particle and it would automatically influence all of its connected verlet particles, which in turn would of course change your visible mesh. It would take a bit of work but if you really need the effect you are after it may be worth it.

I'm working on my own verlet based object for simulating vehicle damage, so I know it could work.
You may want to read this http://www.gamasutra.com/resource_guide/20030121/jacobson_01.shtml

Vineeth@nxOgre

25-03-2008 04:41:29

Hi NickM

Yes I feel Verlet can be used but what about tearing .I dont know how you can actually implement it .

Do you have to calculate the dx and dv for each of the particles and then simulate accordingly.What about the new tear lines generated.Dont feel bad about my stupid questions but i havent done acloth in verlet
I have done only particle system oscillations.

dbrock

25-03-2008 07:22:08

You may want to look into creating your own purpose made object, which could be modelled using a verlet algorithm to create your own type of cloth, you'd have as much control as you want, in code you would attach each of your visible mesh vertices to a verlet particle, you can then apply a force to any verlet particle and it would automatically influence all of its connected verlet particles, which in turn would of course change your visible mesh. It would take a bit of work but if you really need the effect you are after it may be worth it.

I'm working on my own verlet based object for simulating vehicle damage, so I know it could work.
You may want to read this http://www.gamasutra.com/resource_guide/20030121/jacobson_01.shtml


Is that the guide you're following for your vehicle based damaged? Its something I'd like to look into for my next project. For the learning experience =).

NickM

25-03-2008 09:12:56

Hi NickM

Yes I feel Verlet can be used but what about tearing .I dont know how you can actually implement it .

Do you have to calculate the dx and dv for each of the particles and then simulate accordingly.What about the new tear lines generated.


It's hard to tell you exactly how you'd implement it because I don't know exactly what you want to achieve, what you'd probably want to do is hand code enough verlet particles and constraints to give you a ball shape, you'd then fix the position of all those particles that you do not want to allow to move (those that aren't near the tear), the particles along the tear lines would not be connected directly to the particles on the other side of the tear, allowing them to move apart. Each vertex of your visible mesh would need to be locked to it's nearest verlet particle, so that when the particle moves the visible mesh vertex follows, the vertices along the tear lines would have to be locked to the correct verlet particle by hand to give the correct visual look when tearing occures. It's hard to explain but I hope that helps, as I said before, it is quite a lot of work.

NickM

25-03-2008 09:18:21


Is that the guide you're following for your vehicle based damaged? Its something I'd like to look into for my next project. For the learning experience =).


That article was what got me started looking at verlets and understanding how they work, my actual code has moved on a lot from that but it's based on it.

Ps. betajaen how do I go about getting you to read me a bedtime story?

betajaen

25-03-2008 09:26:05

Ps. betajaen how do I go about getting you to read me a bedtime story?

By asking nicely.