Search Forums

(Advanced Search)

Latest Threads
can you remove particles ...
Forum: Obi Softbody
Last Post: aardworm
09-07-2025, 07:09 AM
» Replies: 0
» Views: 40
ObiRope Mesh Renderer
Forum: Obi Rope
Last Post: quent_1982
08-07-2025, 11:27 AM
» Replies: 4
» Views: 190
How to dynamically change...
Forum: Obi Rope
Last Post: quent_1982
08-07-2025, 06:34 AM
» Replies: 6
» Views: 347
Pipeline that bends
Forum: Obi Softbody
Last Post: josemendez
04-07-2025, 09:52 AM
» Replies: 13
» Views: 1,068
How to implement/sync Obi...
Forum: Obi Rope
Last Post: quent_1982
01-07-2025, 01:48 PM
» Replies: 2
» Views: 263
Collisions don't work con...
Forum: Obi Rope
Last Post: chenji
27-06-2025, 03:05 AM
» Replies: 3
» Views: 351
Force Zone apply differen...
Forum: Obi Rope
Last Post: chenji
26-06-2025, 11:41 AM
» Replies: 11
» Views: 1,010
Can I blend in and out of...
Forum: Obi Cloth
Last Post: josemendez
24-06-2025, 04:42 PM
» Replies: 3
» Views: 327
Using a rigidbody/collide...
Forum: Obi Cloth
Last Post: josemendez
24-06-2025, 09:29 AM
» Replies: 1
» Views: 192
Solver is too performance...
Forum: Obi Rope
Last Post: quent_1982
20-06-2025, 08:09 AM
» Replies: 40
» Views: 4,984

 
  rope settings
Posted by: 3dship - 06-03-2025, 08:30 AM - Forum: Obi Rope - Replies (1)

Hello

What I want to do is really simple but I couldn't solve it because I'm a beginner. To tie the ship to the land with a rope. I create an obi solver and tie the ship. The ship is big and has a high volume, about 700,000 mass. When I move the ship, the rope constantly stretches and doesn't hold the ship. I couldn't figure out what other settings I should make and what I'm missing.

I switched the one that attaches the rope to the boat to dynamic. The one on land is static. other settings are default.

I'd be glad if you could help.
Thank you.

Print this item

  Performance degradation when using Collision callbacks in scripts
Posted by: Cat3Man - 01-03-2025, 12:08 PM - Forum: Obi Fluid - Replies (2)

Hello. I am using the latest Obi Fluid 7 with Unity 2022.3.43f1.

I noticed that when running a script with the following code while the Backend mode of the Obi Solver is set to GPU, performance deteriorates. Regardless of the processing inside the Solver_OnCollision function, simply registering a function as an event listener to .OnCollision causes a performance drop.

Example:
void OnEnable()
{
    if (solver != null)
    {
        solver.OnCollision += Solver_OnCollision;
    }
}

void OnDisable()
{
    if (solver != null)
    {
        solver.OnCollision -= Solver_OnCollision;
    }
}

private void Solver_OnCollision(object sender, ObiNativeContactList e)
{

}
However, when the Backend mode is set to CPU, the impact on performance is minimal.

Why does this happen?
Is there a way to use GPU Backend mode without causing a performance drop while still using this script?

Print this item

Exclamación Pinholes: new component for ropes
Posted by: josemendez - 28-02-2025, 01:06 PM - Forum: Announcements - Replies (7)

New component coming to ObiRope 7.0.5: ObiPinhole.

This is something that has been requested quite often: the ability to attach a rope to a point while allowing it to slide/pass trough that point - just like a thread passing trough the eye of a needle.

Pinholes implement that and a lot more: they have full two-way coupling with rigidbodies, they're motorized, and you can even define the friction between the rope and the pinhole. They work for ropes and rods, both open and closed/looped, and fully support rope tearing/cutting. Here's the WIP manual page for them, which contains more details and some use cases:

https://obi.virtualmethodstudio.com/manu...nhole.html

Let me know if you have some feedback, questions or suggestions!

Print this item

  Need Transform of Cloth or Particle Group
Posted by: vrtraining - 28-02-2025, 06:47 AM - Forum: Obi Cloth - Replies (4)

Hi,

I need to track the the transform of cloth particles or specially 2 individual corner particles who I have assigned Particle Group named lets say "Left Corner Particle" and "Right Corner Particle".

Is there is any way I can fetch the transform using Particle Group?

Print this item

Triste Shader Error in Obi Fluid 7.0.4 with Unity 2023.1.3f1 (URP 2D)
Posted by: robertye - 25-02-2025, 09:43 AM - Forum: Obi Fluid - Replies (1)

Hi,

I am using Obi Fluid 7.0.4 in Unity 2023.1.3f1 with Universal 2D, and I encountered the following error message:


Code:
Shader error in 'Shader Graphs/IndirectTransparent': 'OUTPUT_SH': Too few arguments to a macro call. 

at Assets/Obi/Resources/ObiMaterials/Fluid/ObiLightingURP.cginc(79)


This causes the transparent fluid to not display correctly.

If I comment out the code, the fluid seems to display correctly, but something appears to be missing.
However, in the RollingFriction example, the stone becomes invisible after commenting it out.

Before commenting:

[Image: 1ALR-cbfyiQtxfQIttlQl9XNj0B_glag9]

After commenting:

[Image: 1xew-Xbj2OkhccoQQHU1_Pet6sLSFZTtN]
[Image: 1xVASWuV7mlT75j3JQeXWXZidO70CZBtY]

Any insights or solutions would be greatly appreciated.

Thank you!

Print this item

  Interaction Obi fluid/cloth
Posted by: cliv3dev - 19-02-2025, 06:47 PM - Forum: Obi Cloth - Replies (3)

Hi,

I am testing collision between Fluid and cloth. 
Works fine between ObiCloth and ObiFluid, but when switching to ObiTearableCloth, fluid doesn't collide anymore with Tearable cloth. Do I need extra setup for collision to work ?

thanks,
Diego

Print this item

  Fluid ignores colliders on certain amount of particles (compute backend)
Posted by: JulijaF - 17-02-2025, 03:00 PM - Forum: Obi Fluid - Replies (2)

First off, I just want to say how amazing Obi Fluid is! I've had so much fun creating various liquids for my projects—huge thanks for the fantastic work. Keep it up!  Sonrisa

The Issue:
I initially ran into an issue with the compute backend struggling when handling a large number of colliders in the scene. The fluid wouldn't collide with anything, but I found a fix on the forum by adjusting:

Code:
#define MAX_CONTACTS_PER_SIMPLEX 32 → 512
This resolved the problem, but only up to a certain number of particles.

My Setup:
  • Colliders: ~150 (mostly Box Colliders), positioned close together.
  • Fluid Resolution: 3
  • Particle Count: Around 185k particles—at this point, the fluid starts ignoring colliders and becomes jittery.
The Problems:
  1. Instability at High Particle Count
    • Even with a high-end GPU, the compute backend becomes unpredictable when the particle count increases.
    • Reducing the resolution only delays the breaking point.
  2. Collisions Causing Jitter
    • The fluid behaves erratically when colliding with many objects, even with particle count around 100k.
    • This jitteriness leads to excessive foam generation.
Example Demos:
  1. Jittering Fluid at High Particle Count 
    demo
  2. Fluid Passing Through Multiple Colliders
    demo
Would love any insights on improving stability and handling high particle counts effectively. Thanks in advance! ?

Print this item

  Particle attachments dont attach correctly on quest2
Posted by: drone - 13-02-2025, 02:49 PM - Forum: Obi Rope - Replies (1)

Hi, in my company we have Obirope asset and i have a few problems setting it up.

We have overcomplicated vr setup using MetaXR sdk. Obirope 7.0.3, burst solver. 
There is image limit on forum so i uploaded it here. In Editor it looks ok (attachment 1. Cables in editor image),
but when app is built and run on quest2 cables are not snapped in place(attachment 2. Cables on the device).

Attachments 3-7 show my in editor setup. On image 4 control points on the edges collide with noting. Image 7 shows attachments that are set up on both sides of rope.
Stuff is connected to each other using meta SnapInteractable to SnapInteractor connection creating ”chains” of objects (they must be coupled/decoupled dynamically).
I also tried to write custom script for forcing renderable position into target Transform position. Sadly there is no visible change on the device.

Another issue is that I have problems with setting up rope as cable so it will behave more like cable, not like rope. Any suggestions?
And fps drop (-20fps) but I assume it's caused by multiple ropes, for now I just want rope endings to attach. 

Please let me know if I can specify something more or you need any additional information regarding my setup.

Print this item

Pregunta Dynamic attachment to fixed object with hinge component
Posted by: NoahAtlas - 12-02-2025, 09:34 AM - Forum: Obi Rope - Replies (9)

I'm working on this scene where I have a chain that is connected to 2 hooks. Both particle attachments are set to static. In the first attached image "Editor Setup" you can see how the setup looks in the editor. When I run this scene, the green mesh rotates downwards (due to the rigidody and hinge components) and we get the second image "Scene Running (Static)". Up until now everything is behaving as expected. 

Since I want the amount of strain on the chain to influence the rotation of the bottom hook (green mesh) I make the bottom particle attachment dynamic (and add the needed obi collider and rigidbody components to the bottom hook). When I don't change the settings of the chain, running the scene will lead to very erratic behavior: The chain immediately disconnects and all the components just start shaking uncontrollably (seen in image 3 "Dynamic No Changes").

I then tried modifying the chain constraints but it always results in a chain that doesn't have enough strain on it and that doesn't connect to the the mesh properly (as seen in image 4 "Dynamic With Stretch Compliance").

In the fifth attachment "Constraints" I have the constraints I used for the static image and the dynamic one + the Obi Solver settings. I tried tweaking every possible constraint to get a working dynamic attachment but nothing has worked. Any ideas what I could possibly be doing wrong?

Thanks in advance!



Attached Files Thumbnail(s)
                   
Print this item

  Changing rope lenth creates erratic behaviour
Posted by: VAbert - 10-02-2025, 09:46 AM - Forum: Obi Rope - Replies (3)

Hello!

Using Obi Rope, I'm trying to make a simple system where a rope is connected to a wall (attachment pin), and to an object that the player can control (another attachment pin); both of those static. I want to make sure that when the object moves away from the wall attachment, the rope gets longer, and when it gets closer, the rope gets shorter. I'm using a cursor, and I tried a few different solutions, but I couldn't get it to work. Here is the current code:

Code:
float dist = Vector3.Distance(obj.position, wallAttachment.position) * 1.2f;
if(dist - rope.restLength > 0.1f)
{
      objCursor.ChangeLength(Time.deltaTime * ropeSpoolSpeed);
}
else if(dist - rope.restLength < -0.1f)
{
      objCursor.ChangeLength(Time.deltaTime * -ropeSpoolSpeed);
}


The result is extremely chaotic, as you can see in this video : 

Am I missing something?

Also, along my experiences, I managed to make the rope shorter than zero, which results in an error spamming (in my opinion, it should not be possible), and also to crash Unity, probably by making it too long ? (I feel like there should also be a failsafe there).

Thank you!

Print this item