Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  simulation in world and local space
#1
Hello! ObiSolver can perform the simulation in one of two spaces: [b]world space[/b] (the default) and [b]local space[/b]
http://obi.virtualmethodstudio.com/tutor...space.html


But I can't find this in the last version of Obi Cloth.

Where can I find this mode?
Reply
#2
That manual is for legacy (now unsupported) versions: 4.X and older. Current version is 6.0.1.

Since version 5.0, simulation is always performed in the solver's local space. This results in better performance and makes it easier to reason about what space you're working in. It also avoids floating point precision problems when working away from the world's origin, which is a must for large game worlds. Quoting the manual:
http://obi.virtualmethodstudio.com/tutor...olver.html

Quote:Solvers always perform the simulation in local space. This means that translating, rotating or scaling the solver will rigidly transform the simulation as a whole.

To emulate world space, just leave the solver at the world's origin. This way, local and world space become the same. Note you can also inject world-space inertial forces into the solver, using the solver's world linear/angular inertia scale parameters.
Reply
#3
(09-04-2021, 09:38 AM)josemendez Wrote: That manual is for legacy (now unsupported) versions: 4.X and older. Current version is 6.0.1.

Since version 5.0, simulation is always performed in the solver's local space. This results in better performance and makes it easier to reason about what space you're working in. It also avoids floating point precision problems when working away from the world's origin, which is a must for large game worlds. Quoting the manual:
http://obi.virtualmethodstudio.com/tutor...olver.html


To emulate world space, just leave the solver at the world's origin. This way, local and world space become the same. Note you can also inject world-space inertial forces into the solver, using the solver's world linear/angular inertia scale parameters.
Thanks for your answer! Can I use simulation in local space for scaling my cloth in runtime?
Reply
#4
(12-04-2021, 01:23 PM)user23 Wrote: Thanks for your answer! Can I use simulation in local space for scaling my cloth in runtime?

More or less. Scaling the solver will scale the entire simulation space, not just your cloth.

This means that the "world" your cloth is being simulated in is smaller/larger so the cloth will be smaller/larger as well. For many uses this is close enough.
Reply
#5
(12-04-2021, 01:33 PM)josemendez Wrote: More or less. Scaling the solver will scale the entire simulation space, not just your cloth.

This means that the "world" your cloth is being simulated in is smaller/larger so the cloth will be smaller/larger as well. For many uses this is close enough.
Do you mean that "scaling solver" is scaling the main object in hierarchy which has component Obi solver? I can show small video how I try to scale this object: 
Reply