Obi Official Forum
exposing ElastoplasticMaterial values? - 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: exposing ElastoplasticMaterial values? (/thread-883.html)



exposing ElastoplasticMaterial values? - StudioTatsu - 09-02-2019

Can you expose the current progression values from the ElastoplasticMaterial?
It would be great if we can get the comparison variables from plasticRecovery and maxDeformation equations.

Basically, the variables used to compare the current recovery value to plasticRecovery amount and current deformation value to maxDeformation amount. 
If those values are already exposed, what class do they reside in?
Thanks
 


RE: exposing ElastoplasticMaterial values? - josemendez - 10-02-2019

(09-02-2019, 07:01 PM)StudioTatsu Wrote: Can you expose the current progression values from the ElastoplasticMaterial?
It would be great if we can get the comparison variables from plasticRecovery and maxDeformation equations.

Basically, the variables used to compare the current recovery value to plasticRecovery amount and current deformation value to maxDeformation amount. 
If those values are already exposed, what class do they reside in?
Thanks
 

Hi!

Internally, there's only one thing stored for deformation: a 3x3 matrix for each shape matching cluster. We compare this matrix with the identity matrix (specifically, we calculate the frobenius norm of the difference between both) to determine the amount of deformation. We linearly interpolate with the identity matrix again to simulate recovery.

We're looking into ways to expose either the 3x3 deformation matrices themselves, or the norm of the difference with the identity matrix (which is a scalar that determines the "amount" of deformation, or what you call current deformation). Which one would be more useful to you?


RE: exposing ElastoplasticMaterial values? - StudioTatsu - 10-02-2019

the norm of the difference with the identity matrix will be more useful.  
I am trying to create a percentage of how deformed the softbody is.
I can compare the initial values with the difference.


Thanks