Obi Official Forum
Question about clothing scale - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Question about clothing scale (/thread-2314.html)



Question about clothing scale - user23 - 16-06-2020

Hello.


We do project augmented reality try clothes. We want use ObiCloth to simulate phisics, but in our product we change scale clothes (from 1.0 to 12.0 on skeleton model). Last version ObiCloth supports this mode? Or can we change model without restart program?


P.S. I was read messages on this forum about how work clothes model in Unity, but maybe something has changed

Thanks.


RE: Question about clothing scale - josemendez - 16-06-2020

(16-06-2020, 11:39 AM)user23 Wrote: Hello.


We do project augmented reality try clothes. We want use ObiCloth to simulate phisics, but in our product we change scale clothes (from 1.0 to 12.0 on skeleton model). Last version ObiCloth supports this mode? Or can we change model without restart program?


P.S. I was read messages on this forum about how work clothes model in Unity, but maybe something has changed

Thanks.

Hi there,

Scaling cloth isn't supported, as it does not make sense to apply an affine transform to a deformable object (not in Obi, not in any existing engine. Affine transforms can only be meaningfully applied to rigid objects). You can however scale the simulation space (the reference frame used for the simulation), which may or may not suit your needs.

Also, character bone scaling isn't supported, and will never be, for the same reason why you can't scale the entire cloth: just doesn't make any sense mathematically speaking. Your best bet is to re-generate the cloth at runtime after rescaling your character bones, however this is too expensive to be done every frame.


RE: Question about clothing scale - renderlux - 18-06-2020

(16-06-2020, 12:17 PM)josemendez Wrote: Hi there,

Scaling cloth isn't supported, as it does not make sense to apply an affine transform to a deformable object (not in Obi, not in any existing engine. Affine transforms can only be meaningfully applied to rigid objects). You can however scale the simulation space (the reference frame used for the simulation), which may or may not suit your needs.

Also, character bone scaling isn't supported, and will never be, for the same reason why you can't scale the entire cloth: just doesn't make any sense mathematically speaking. Your best bet is to re-generate the cloth at runtime after rescaling your character bones, however this is too expensive to be done every frame.