Search Forums

(Advanced Search)

Latest Threads
Cloth has stretchy behavi...
Forum: Obi Cloth
Last Post: Andreia Mendes
Yesterday, 03:15 PM
» Replies: 16
» Views: 153
Rope ignoring colliders o...
Forum: Obi Rope
Last Post: josemendez
Yesterday, 07:03 AM
» Replies: 1
» Views: 31
Ladder made by Ropes (Rat...
Forum: Obi Rope
Last Post: josemendez
23-07-2025, 01:43 PM
» Replies: 5
» Views: 158
can you remove particles ...
Forum: Obi Softbody
Last Post: josemendez
22-07-2025, 02:19 PM
» Replies: 1
» Views: 140
ObiRope Mesh Renderer
Forum: Obi Rope
Last Post: quent_1982
08-07-2025, 11:27 AM
» Replies: 4
» Views: 488
How to dynamically change...
Forum: Obi Rope
Last Post: quent_1982
08-07-2025, 06:34 AM
» Replies: 6
» Views: 674
Pipeline that bends
Forum: Obi Softbody
Last Post: josemendez
04-07-2025, 09:52 AM
» Replies: 13
» Views: 1,456
How to implement/sync Obi...
Forum: Obi Rope
Last Post: quent_1982
01-07-2025, 01:48 PM
» Replies: 2
» Views: 412
Collisions don't work con...
Forum: Obi Rope
Last Post: chenji
27-06-2025, 03:05 AM
» Replies: 3
» Views: 480
Force Zone apply differen...
Forum: Obi Rope
Last Post: chenji
26-06-2025, 11:41 AM
» Replies: 11
» Views: 1,322

 
  Sand-like properties
Posted by: danik9 - 31-07-2022, 11:22 PM - Forum: Obi Fluid - Replies (4)

I want to simulate sand. Kind of stylized. Think on Gaara sand visuals or the sand-falls from Journey game.

I'm thinking for the effect I want I should not use a granular blueprint.

How should I set the properties of a fluid blueprint to achieve the closest feel and texture.

Is it possible to control the angle of repose of a fluid with obi?

Best regards.

Print this item

  Relocating rope/solver in scene breaks it
Posted by: dhymers - 30-07-2022, 09:18 PM - Forum: Obi Rope - Replies (5)

Hi All,

I've made a scene using 5 obi ropes and it works pretty well, I planned to make it a prefab or copy it to other scenes  to use throughout a unity game, but one of the solvers/ropes stops working even if I simply try and move it to a new location in the scene it was constructed in. I'd like to use this setup at least 5 or 6 times throughout a game and I'd love to not have to rebuild it every time. Is this a common bug ?

Thanks
Dave
   

Print this item

  Stop of rotation
Posted by: mrsloom23 - 30-07-2022, 03:48 AM - Forum: Obi Softbody - Replies (2)

Hello. Please forgive me for my English. I use Google translate.

I would like to smoothly stop the rotation of my soft body. I read the documentation and looked at the examples, but I didn't find a suitable solution. I tried to solve the problem using an array of starting positions of particles. When the button was pressed, I tried to set each particle a speed in the starting direction. Alas. It didn't work out for me. 

My body must constantly fall, hitting other objects. I would like to stop its rotation by pressing a key. Tell me, is it possible? Thank you in advance,
josemendez.

Print this item

  Can a Softbody object collide with a Fluid?
Posted by: asama - 29-07-2022, 11:35 PM - Forum: Obi Softbody - Replies (1)

I was trying to have an Obi Softbody object collide with an Obi Fluid, is that possible? Thank you.

Print this item

  Documentation is incomplete for a beginner at 6.4
Posted by: RameezSafdar - 29-07-2022, 12:04 PM - Forum: Obi Rope - Replies (6)

I have imported Obi rope 6.4 into my project from asset store and documentation seems to be incomplete. I searched youtube videos and all of them are so old that they can not cater a new user who uses obi for 1st time. 

I need help to create a simple rope and then I need to elongate / shorten it on runtime. How can I do this? Can someone help me with it?

I created a simple rope by looking at example scenes, my rope doesnt collide, and if somehow i manage to make a visible rope in editor, in play mode that visual rope is no more there even though game object is. 

How do i deal with this?

Print this item

Pregunta Trying to add DistanceConstraint for my TearableCloth but getting IndexOutOfRange
Posted by: snowtv - 26-07-2022, 08:07 PM - Forum: Obi Cloth - Replies (28)

I'm following the example on the official document, here is the jist of my current method:

Code:
// get a hold of the distance constraint
        var distanceConstraints = colon.GetConstraintsByType(Oni.ConstraintType.Distance) as ObiConstraints<ObiDistanceConstraintsBatch>;

        // create a new distance constraints batch
        var batch = new ObiDistanceConstraintsBatch();

        // Add a constraint for the pair
        batch.AddConstraint(new Vector2Int(particleSolverIndexA, particleSolverIndexB), 0);

        // set the amount of active constraints in the batch to 2 (the ones we just added).
        batch.ActivateConstraint(0);

        // append the batch to the pin constraints:
        distanceConstraints.AddBatch(batch);

        // this will cause the solver to rebuild distance constraints at the beginning of the next frame:
        colon.SetConstraintsDirty(Oni.ConstraintType.Distance);

Basically my method will first find the solver indexes of two particles closest to the given world positions, then using the above code to add DistanceConstraint between them.

I removed the part of the example where it clears the entire constraint batches first, because I don't wanna remove all the existing DistanceConstraint.

Is there something wrong in the above code? Or I'm not getting the correct solver index for my particles?

Print this item

  question about acceptable meshes (tearable)
Posted by: danazoid - 26-07-2022, 01:43 PM - Forum: Obi Cloth - Replies (3)

Hi, I was testing out tearable cloth today and got the error "ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection."

I did some testing and this is what I got
1) "thick" mesh (my custom mesh that is 2 vertices thick): error
2) plane mesh (and my custom mesh reduced to 1 vertex in thickness): no error
3) simple cube mesh (in-built unity version, vertices 2 x 2 x 2): no error
4) "thick" plane mesh (essentially a simple cuboid with vertices 4 x 4 x 2): error

It seems to me the error occurs when the cloth is "thick" (ie not just 1 vertex in thickness). I don't know about the cube.
I would like to confirm if Obi Cloth is only designed to handle flat, 1 vertex thick meshes.
I want to be able to cut/tear cloths with a thickness to them, do any of your solutions allow that? (eg softbody)
Thanks in advance.

Print this item

  Sucking a Fluid from a pipette/Dropper
Posted by: shemtomke - 22-07-2022, 01:08 PM - Forum: Obi Fluid - Replies (1)

I have the following questions:

  1. Is it possible to suck a liquid in an upward manner and later on drop the liquid into a specific beaker using gravity? in this case, the dropper will have to make it in drops, not in a flow-like pressure. 
  2. How to make a liquid in a burette and allow drops to flow when opening it?
  3. How can I reduce how the liquid reacts in such a way when it is picked up it's not wavy, I wanted it to be stable. It is very shaky and it's due to settings in the buoyancy e.t.c (Fluid Settings) though I don't know the right path to follow to make the liquid stable enough.

Print this item

  DllNotFoundException
Posted by: kureysalp - 22-07-2022, 12:15 PM - Forum: Obi Rope - Replies (2)

Hi,

I bought the asset recently.

When I try any of the sample scenes I get this error. In a fresh project, just imported asset with package manager. Any help?

Using Unity 2021.3.3f1 LTS

Edit: Restarting unity didn't work.



[Image: Screen-Shot-2022-07-22-at-13-06-44.jpg]

Print this item

  Optimizing Obi Cloth Scheduled Jobs
Posted by: initialPrefabs - 21-07-2022, 10:09 PM - Forum: Obi Cloth - Replies (2)

I've been attempting to optimize Obi Cloth's scheduler since I noticed that there was idling in between jobs during runtime. One thing that I've done (at least for my use case) was that I changed the ApplyCollisionContraintsJob and BurstColliderCollisionContraintsBatch & BurstColliderFrictionConstraintsBatch jobs from IJob into an IJobFor with parallel scheduling. This helped reduce the Obi's Cloth's overall time with job completion.

While I think this is helpful, I'm not sure if parallelizing the constraints jobs breaks other things as it seems like the jobs don't mutually rely on other elements within the same array it is processing (please see the ProfilerAnalyzer-Results).



The part that I am interested in trying to optimize is the amount of idle in between jobs. I am wondering if there are any tips to try and optimize this and if its possible to schedule and chain a few jobs together to reduce the # of times Obi Cloth calls JobHandle.Complete() on prior input data (for example, when the GenerateContactsJob is scheduled and then DequeueIntoArrayJob is chained after instead of forcing the GenerateContactsJob to complete before we schedule DequeueIntoArrayJob). (Please see the Profiler-Results attachment.)



I'm willing to experiment a bit and see what I can come up with as it requires a bit of refactoring on the jobs, but I'm wondering if there are any suggestions or warning flags I should be aware of. The hardware where I'm profiling Obi Cloth is on: AMD Ryzen 9 5900 HS
And this is done in the Editor (release mode) with Leak Detection off, Burst enabled, Jobs Debugger disabled.



Attached Files Thumbnail(s)
       
Print this item