Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial?
#2
Hi Havie,

The second tutorial you link to is for Obi 4.1, as stated in the video title. 5.X underwent a large revamp in workflow, API, and interface.

The official manual can be found here: http://obi.virtualmethodstudio.com/tutorials/index.html
It describes in detail what types of blueprints are, how to set them up, as well as all solver parameters, etc. I'd recommend starting by reading these:
http://obi.virtualmethodstudio.com/tutor...cture.html <--- regarding Obi's overall architectural design
http://obi.virtualmethodstudio.com/tutor...olver.html  <--- regarding ObiSolver, the component in charge of performing the actual simulation.
http://obi.virtualmethodstudio.com/tutor...gence.html <--- regarding how the simulation is performed.
http://obi.virtualmethodstudio.com/tutor...setup.html <--- regarding ObiSoftbody blueprints and softbody setup.
http://obi.virtualmethodstudio.com/tutor...aints.html <--- regarding shape matching constraints.
http://obi.virtualmethodstudio.com/tutor...inner.html  <--- regarding ObiSoftbodySkinner.

Obi is a really large and complex system, aimed at advanced users. It assumes you're pretty comfortable with basic 3D and physics concepts such as vector spaces, triangle mesh structure, mass, forces, torques, timestep, etc, so what these are is not explained in detail. If you're starting out with 3D or physics it will take some time to get up and running.

Code:
I've managed to make a cylinder as a temp garbage can but it looks horrible when the game starts 
No wonder it looks bad, the built-in cylinder mesh in Unity has no subdivisions along its length. So it won't be able to bend or deform in any meaningful way, as you can't bend a single triangle:
[Image: ti72x4g.png]


[Image: npzvb7Q.png]
Looks like your constraints have quite high plasticity. That, or the skinner is not correctly bound to the softbody. You might want to click the "bind skin" button in the ObiSoftbodySkinner, as warned in the manual:

http://obi.virtualmethodstudio.com/tutor...inner.html
Quote:If you re-generate the softbody blueprint but do not re-bind the skin, skinning will look incorrect. You want to Generate the blueprint first, then Bind the skinner, in that order.

You can add a ObiParticleRenderer component to the softbody to visualize and debug the underlying particles. (see http://obi.virtualmethodstudio.com/tutor...ering.html)

Quote:I'm not even sure where to begin with making this less giggly.

Increase the amount of shape matching constraint iterations (found in the solver's constraints foldout) and/or reduce the physics timestep. A quick way to do this is to use more updater substeps. The effect of iterations/substeps on the resulting simulation is discussed in great detail here: http://obi.virtualmethodstudio.com/tutor...gence.html

Note this applies to all iterative physics engines, so the same can be done with Unity, Havok, etc.

Code:
The idea behind the project Im working on is a ball will hit the trash can and the impact will deform the mesh. I am not trying to have it deform from the ground?
You can't filter out which objects deform the softbody, as deformation happens purely due to strain (as a result of forces being applied to it), not due to contact with a particular body: If you hit the trashcan with a ball, depending on their relative mass the trashcan will deform a lot or not deform at all. But if there's a wall/ground that the ball can press the trashcan against, the trashcan will noticeably deform even if the ball is relatively light.


Quote:Also getting this error
https://i.imgur.com/8YLnsyF.png

Make sure you don't have multiple inspector tabs open, the blueprint editor currently does not support multiple editor inspector instances.
Reply


Messages In This Thread
Tutorial? - by Havie - 13-09-2020, 10:24 PM
RE: Tutorial? - by josemendez - 14-09-2020, 08:06 AM
RE: Tutorial? - by Havie - 16-09-2020, 09:00 PM
RE: Tutorial? - by josemendez - 16-09-2020, 10:18 PM
RE: Tutorial? - by Havie - 17-09-2020, 08:10 PM
RE: Tutorial? - by josemendez - 18-09-2020, 07:01 AM
RE: Tutorial? - by Havie - 18-09-2020, 12:14 AM
RE: Tutorial? - by josemendez - 18-09-2020, 07:10 AM
RE: Tutorial? - by Havie - 18-09-2020, 09:12 PM
RE: Tutorial? - by josemendez - 18-09-2020, 09:44 PM
RE: Tutorial? - by Havie - 19-09-2020, 04:24 PM
RE: Tutorial? - by josemendez - 19-09-2020, 05:32 PM
RE: Tutorial? - by Havie - 19-09-2020, 10:41 PM
RE: Tutorial? - by josemendez - 20-09-2020, 12:57 AM
RE: Tutorial? - by Havie - 20-09-2020, 01:21 PM
RE: Tutorial? - by Havie - 20-09-2020, 04:18 PM
RE: Tutorial? - by josemendez - 20-09-2020, 07:20 PM
RE: Tutorial? - by Havie - 21-09-2020, 07:02 PM
RE: Tutorial? - by josemendez - 21-09-2020, 08:03 PM
RE: Tutorial? - by josemendez - 22-09-2020, 02:21 PM