Search Forums

(Advanced Search)

Latest Threads
Get separate particles pa...
Forum: Obi Fluid
Last Post: slimedev
Yesterday, 06:51 PM
» Replies: 6
» Views: 3,084
Solver outside of hierarc...
Forum: General
Last Post: Jawsarn
Yesterday, 06:19 PM
» Replies: 4
» Views: 88
Cloth has stretchy behavi...
Forum: Obi Cloth
Last Post: josemendez
Yesterday, 11:02 AM
» Replies: 21
» Views: 672
Rope ignoring colliders o...
Forum: Obi Rope
Last Post: josemendez
24-07-2025, 07:03 AM
» Replies: 1
» Views: 120
Ladder made by Ropes (Rat...
Forum: Obi Rope
Last Post: josemendez
23-07-2025, 01:43 PM
» Replies: 5
» Views: 285
can you remove particles ...
Forum: Obi Softbody
Last Post: josemendez
22-07-2025, 02:19 PM
» Replies: 1
» Views: 168
ObiRope Mesh Renderer
Forum: Obi Rope
Last Post: quent_1982
08-07-2025, 11:27 AM
» Replies: 4
» Views: 535
How to dynamically change...
Forum: Obi Rope
Last Post: quent_1982
08-07-2025, 06:34 AM
» Replies: 6
» Views: 749
Pipeline that bends
Forum: Obi Softbody
Last Post: josemendez
04-07-2025, 09:52 AM
» Replies: 13
» Views: 1,544
How to implement/sync Obi...
Forum: Obi Rope
Last Post: quent_1982
01-07-2025, 01:48 PM
» Replies: 2
» Views: 440

 
  Rigid rope with heavy weight and 2 pin constraints
Posted by: dignifiedweb - 13-11-2017, 04:44 AM - Forum: Obi Rope - Replies (2)

Hi,

I was wondering for general advice on how to make the Obi Rope more rigid and less springy? I was able to add more distance constraints (300 or so) and that helped a lot, but I found I also had to take the mass down of each particle (painted to select). I got the rope to be rigid and almost no spring, but my problem is I have a pin constraint on the top particle and a pin constraint on the bottom. The bottom one is attached to a sphere collider and I have to make the sphere rigidbody's weight really light or else the springiness comes into effect in full force again with a heavier weight on it.

Do you think I just have to increase the resolution? I found that resolution (amount of particles) is tough because I'm using a very tiny rope/string.

Any suggestions would be much appreciated, thank you.

Print this item

  Adding pin constraint to particle in runtime.
Posted by: aaamarkin - 08-11-2017, 09:02 PM - Forum: Obi Rope - Replies (4)

Hi.
I have existing rope with couple on handlers on both of rope ends (attached to first and last rope particle).
I want to substitute them (or possibly only one of them with pin constraint).
I think handle can be removed/added with the help of disabling/enabling handle gameObject.
For adding ping constraint I'm launching some variations of following coroutine:

Code:
private IEnumerator AttachHook(){
        yield return 0;

        // Pin both ends of the rope (this enables two-way interaction between character and rope):
        ObiPinConstraints pinConstraints = obiRope.GetComponent<ObiPinConstraints>();
        ObiPinConstraintBatch pinBatch = pinConstraints.GetBatches()[0] as ObiPinConstraintBatch;

        // remove the constraints from the solver, because we cannot modify the constraints list while the solver is using it.
//        pinConstraints.RemoveFromSolver(null);
        
        // remove the first constraint.
//        pinBatch.RemoveConstraint(0);
        
        pinBatch.AddConstraint(obiRope.particleIndices[_obiParticleHandle.FirstParticleIndex], obiColliderToAttach, obiOffsetToAttach, 0);
        
        // Add the rope to the solver to begin the simulation:
        pinConstraints.AddToSolver(null);
//        pinConstraints.PushDataToSolver();
        
    }    

I was experimenting with Adding/Removing from solver and with pushing data back to solver without success.
I can see generated with script pin constraint in unity inspector, but it does nothing.
What am I missing?
Should I reinitialize rope somehow?

Thanks a lot.

Print this item

  2D Mode failure
Posted by: mimarilker - 07-11-2017, 08:38 AM - Forum: Obi Fluid - Replies (9)

Hi,

I am trying to use 2D mode in a vertical plane, when I rotate the emitter and particle system, it fails in simulation. The flow is not accurate and distributes all around in a very high speed. However there's no problem with emitter in horizontal plane. The only solution I achieved was to change the mode to 3D and update solver, however I really want to use 2D mode. So, I am waiting for your precious advises, thanks a lot.

Print this item

  How to read out stretch
Posted by: mbbmbbmm - 05-11-2017, 02:44 PM - Forum: Obi Cloth - Replies (3)

Hi,
Is there a way to read out the current "stretchedness" of an ObiCloth actor?

Thank you!
Jan

Print this item

  Scaling / Sizing a cloth - How?
Posted by: csofrany - 04-11-2017, 04:20 PM - Forum: Obi Cloth - Replies (3)

Hi there,
 
   I'm new to Obi in general, and just starting out with Obi Cloth. I have a scene where there are multiple differently sized items that I want to cover with pieces of cloth, to be uncovered later during runtime.

Now, in order to cover the different items, I'm using a simple plane that I add an Obi Cloth Component as outlined in the instructions. While this works in a general way, it seems to me that no matter what size of cloth i define (using the scale properties of the object's Transform), the resulting cloth expands/shrinks to the 1:1 scale as soon as I hit start, in effect negating any scale settings of the master Transform.

How do correctly size an Obi cloth so it stays at the size/scale I set? Do i have to create an appropriately sized mesh for each cloth, or can I use one mesh for all (as I'm doing now)?

Since this is a fairly basic issue, I assume I've missed an essential part of the manual - so any pointers appreciated.

Thanks,
ch  

Print this item

  Unfix particles via scripting
Posted by: mbbmbbmm - 04-11-2017, 04:19 PM - Forum: Obi Cloth - No Replies

Ok, so in order to fix a particle and make it move with the transform i should set the inverse Mass of the particle to zero (making the mass infinite I think). This works nicely. But how do I achieve the opposite, how can I unfix the particle again?  
If I give it back it's cached inverse mass it doesn't do anything - it doesn't react to gravity etc...


Ah nevermind I got it! 
actor.PushDataToSolver(ParticleData.INV_MASSES);  
was required.  Gran sonrisa Interesante


One more question. When I set up the cloth, i set the mass for all particles to 0.1. Shouldn't the inverse masses all be 10? Because when I cache them they have different values, some have 4760.332, some have  14281, some have 9520.665... What i s going on there?
Thank you!

Print this item

  Stiff wire simulation
Posted by: jfeng94 - 02-11-2017, 08:08 PM - Forum: Obi Rope - Replies (7)

I'm interested in using ObiWire to simulate stiff wires (like copper wires) that the user can bend at will but maintains its basic shape when subject to gravity.
Does anyone have any tips on how to set up the solver/constraints to get this sort of behavior? Thanks in advance!

Print this item

  IndexOutOfRangeException in Sample Scene
Posted by: Yomadorr - 02-11-2017, 07:05 PM - Forum: Obi Rope - Replies (2)

Dear Obi-Team
Today I bought your Rope Asset. But each sample scene crashes at start, because of IndexOutOfRangeExceptions.
(I work on Mac 10.12.6 (16G29) with Unity 2017.2.0f3 Personal (64bit) if that helps. )

E.g. in the scene "RopesAndJoints":
IndexOutOfRangeException: Array index is out of range.
Obi.ObiSolver.UpdateActiveParticles () (at Assets/Obi/Scripts/Solver/ObiSolver.cs:408)
Obi.ObiSolver.AddActor (Obi.ObiActor actor, Int32 numParticles) (at Assets/Obi/Scripts/Solver/ObiSolver.cs:324)
Obi.ObiActor.AddToSolver (System.Object info) (at Assets/Obi/Scripts/Actors/ObiActor.cs:221)
Obi.ObiRope.AddToSolver (System.Object info) (at Assets/Obi/Scripts/Actors/ObiRope.cs:380)
Obi.ObiActor.Start () (at Assets/Obi/Scripts/Actors/ObiActor.cs:134)

What am I doing wrong?

Best
Livio

Print this item

  IDea for measure fluid volume?
Posted by: cyy1133 - 02-11-2017, 05:16 PM - Forum: Obi Fluid - Replies (1)

um, sorry for my short English.. i purchased it Yesterday, but i really want to get this information hurry.
For example,
I want Measure fluid Particle volum in bowl.
Or want measure fluid Particle weight in bowl.

Is there any Api Support? or Devleop Idea?

Print this item

  HELP, libOni.dll is crashing my game.
Posted by: dodgevision - 02-11-2017, 01:02 AM - Forum: General - Replies (3)

Hi,

I'm using Obi Cloth and Obi Fluid in the same build. That has been working great and I love your assets! The problem is after 2 - 5 minutes of my game running, it will just crash. I tried to figure out the problem but had no luck. The fluid and cloth all work fine, and it doesn't seem like anything in particular causes the crash, it seems to just be time based. This crash happens in Unity and in stand alone builds. When it happens in Unity it does not give me an exception, it just crashes Unity completely and I have to restart the program.

After crash if I click the "Debug" Option it says this... "Unhandled exception at 0x00007FFBCA9AFB76 (libOni.dll) in skirtime.exe: 0xC0000005: Access violation reading location 0x000000006AE658C0."

Also, the output log says this before the Crash...


========== OUTPUTING STACK TRACE ==================

0x00007FFBBB67106F (libOni) SetDiffuseParticleNeighbourCounts
0x00007FFBBB66FFD8 (libOni) SetDiffuseParticleNeighbourCounts
0x00007FFBBB66F645 (libOni) SetDiffuseParticleNeighbourCounts
0x00007FFBBB66CD56 (libOni) SetDiffuseParticleNeighbourCounts
0x00007FFBBB6B98C6 (libOni) Generate
0x00007FFBBB6BADE1 (libOni) Generate
0x00007FFBBB6B94A9 (libOni) Generate
0x00007FFBBB6E0559 (libOni) Generate
0x00007FFC05631FE4 (KERNEL32) BaseThreadInitThunk
0x00007FFC073EEF91 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

**** Crash! ****


I hope this help, Let me know if there is anything else that might help you.

Thanks for your help,
Nick.

Print this item