Obi Official Forum
How constraints Z position in 3D world - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Softbody (https://obi.virtualmethodstudio.com/forum/forum-12.html)
+--- Thread: How constraints Z position in 3D world (/thread-1488.html)

Pages: 1 2


How constraints Z position in 3D world - Zavhoz - 20-11-2019

Hi! How constraints Z position in 3D world for soft body? If switch Mode in solver to 2D, then all meshes is broken.


RE: How constraints Z position in 3D world - josemendez - 20-11-2019

(20-11-2019, 12:55 PM)Zavhoz Wrote: Hi! How constraints Z position in 3D world for soft body? If switch Mode in solver to 2D, then all meshes is broken.

2D mode does exactly this: it "freezes" the z coordinate of all particle positions.

Disclaimer: it does not project the z coordinate to zero. It simply ensures the z coordinate is not modified by the simulation.

Can you share more info about your issue? We've been unable to reproduce any weird behavior in 2D mode.


RE: How constraints Z position in 3D world - Zavhoz - 20-11-2019

(20-11-2019, 01:06 PM)josemendez Wrote: 2D mode does exactly this: it "freezes" the z coordinate of all particle positions.

Disclaimer: it does not project the z coordinate to zero. It simply ensures the z coordinate is not modified by the simulation.

Can you share more info about your issue? We've been unable to reproduce any weird behavior in 2D mode.

3D mode:
[attachment=477]

2D mode:
[attachment=478]


RE: How constraints Z position in 3D world - josemendez - 20-11-2019

(20-11-2019, 01:34 PM)Zavhoz Wrote: 3D mode:


2D mode:

I think you misunderstood the basic concept behind softbodies: softbodies are composed of multiple particles. The global rotation of the softbody is a result of each individual particle's rotation, plus the constraints that hold them together. So in a sense, the object does not have an angular/linear velocity of its own, nor does it have a position/orientation.

If you use a full 3D mesh for the softbody, and then try to constraint its individual particles to 2D, it won't work, because each particle needs to be able to rotate in 3D even if the entire softbody seems to rotate in 2D only. For it to work as you expect you would have to constraint the position/orientation of the object as a whole, but it does not have one, so you cannot do that.

Use a flat 2D mesh for the simulation, with a 3D one bound to it. You can use a full 3D mesh and skin it to the 2D simulation using the ObiParticleSkinner. It will work as you expect. See this video (I used a rectangular mesh, if you're doing a ball you should use a circular one, but you get the idea):



RE: How constraints Z position in 3D world - hungseparate - 18-06-2021

Is this solver set to 2D mode ?
I tried did something like this video, but it still not work !

If set to 2d model -> plastic sheet work as i wanted -> mimic 3d model not
set to 3d -> both work fine but cant constrain z position ?!

Im using version 5.6


RE: How constraints Z position in 3D world - josemendez - 18-06-2021

(18-06-2021, 04:42 AM)hungseparate Wrote: Is this solver set to 2D mode ?
I tried did something like this video, but it still not work !

If set to 2d model -> plastic sheet work as i wanted -> mimic 3d model not
set to 3d -> both work fine but cant constrain z position ?!

Im using version 5.6

Hi,

Yes, this solver is set to 2D mode. I had no issues replicating the setup in the video, by using a flat mesh and binding a 3d model to it.

Can you give more details? What problems have you encountered? What did not work well for you?


RE: How constraints Z position in 3D world - hungseparate - 24-06-2021

(18-06-2021, 08:03 AM)josemendez Wrote: Hi,

Yes, this solver is set to 2D mode. I had no issues replicating the setup in the video, by using a flat mesh and binding a 3d model to it.

Can you give more details? What problems have you encountered? What did not work well for you?

Tks for you respond, look like its my mistake, i do it again in you demo scene and it working fine, may be i did some wrong setting !


RE: How constraints Z position in 3D world - gesila77 - 09-12-2021

(20-11-2019, 02:59 PM)josemendez Wrote: I think you misunderstood the basic concept behind softbodies: softbodies are composed of multiple particles. The global rotation of the softbody is a result of each individual particle's rotation, plus the constraints that hold them together. So in a sense, the object does not have an angular/linear velocity of its own, nor does it have a position/orientation.

Use a flat 2D mesh for the simulation, with a 3D one bound to it. You can use a full 3D mesh and skin it to the 2D simulation using the ObiParticleSkinner. It will work as you expect. See this video (I used a rectangular mesh, if you're doing a ball you should use a circular one, but you get the idea):

hi, i made a circular one but look weird in 2d mode. Did i do something wrong?



RE: How constraints Z position in 3D world - josemendez - 10-12-2021

Quote:hi, i made a circular one but look weird in 2d mode. Did i do something wrong?

With no info on what you did, it's hard to tell! Sonrisa

What are your blueprint settings? Where is the ObiSoftbodySkinner component placed? is it in the same transform as the softbody?


RE: How constraints Z position in 3D world - gesila77 - 11-12-2021

(10-12-2021, 08:58 AM)josemendez Wrote: With no info on what you did, it's hard to tell! Sonrisa

What are your blueprint settings? Where is the ObiSoftbodySkinner component placed? is it in the same transform as the softbody?
Yes, obi in 2d mode. here are some screenshots