Search Forums

(Advanced Search)

Latest Threads
Broken scripts with updat...
Forum: Obi Rope
Last Post: hariedo
Yesterday, 10:35 AM
» Replies: 0
» Views: 45
Garment explodes on Andro...
Forum: Obi Cloth
Last Post: CptnFabulous
19-12-2024, 07:16 AM
» Replies: 4
» Views: 667
Calculating and Reproduci...
Forum: Obi Fluid
Last Post: ZacharyP
18-12-2024, 05:49 PM
» Replies: 2
» Views: 771
Null Reference, actor not...
Forum: Obi Rope
Last Post: josemendez
13-12-2024, 12:39 PM
» Replies: 1
» Views: 161
Issue with Grasping ObiRo...
Forum: Obi Rope
Last Post: josemendez
12-12-2024, 12:00 PM
» Replies: 5
» Views: 467
Changing extruded rendere...
Forum: Obi Rope
Last Post: aderae
10-12-2024, 07:35 PM
» Replies: 2
» Views: 245
Baking a rope is causing ...
Forum: Obi Rope
Last Post: josemendez
10-12-2024, 11:06 AM
» Replies: 6
» Views: 662
Barrier belt - changing l...
Forum: Obi Rope
Last Post: josemendez
10-12-2024, 10:42 AM
» Replies: 1
» Views: 219
Path editor gizmo's appea...
Forum: Obi Rope
Last Post: josemendez
10-12-2024, 09:50 AM
» Replies: 1
» Views: 215
Problems when using multi...
Forum: Obi Cloth
Last Post: Cat3Man
09-12-2024, 03:17 AM
» Replies: 2
» Views: 293

 
  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

  Proxy Cloth Crash
Posted by: AltruXeno - 30-10-2017, 08:10 PM - Forum: Obi Cloth - Replies (1)

Hello!

I recently purchased Obi Cloth and am really loving the whole system. Not only does it provide more options and flexibility than the Unity cloth, but also has a better vertex selection tool.

However, I'm having issues with the proxy cloth component. I'm trying to add cloth to my character's jacket and am following the trench coat example but Unity crashes upon play whenever the proxy cloth component is present, or more specifically, when the proxy cloth component is present and I've bound the vertices with the Triangle Skin Mesh. I've checked the editor log and found no hints at all before the crash and am at a loss.

The big trick is that I had it working the day that I downloaded the asset (about a week ago), but decided to restart the whole process since I had become more acquainted with the system (or so I thought). Since then I have tried, from scratch, 5 different times and every time that I attach the proxy component it instantly crashes on play. Removing the component allows it to work again.

I'm sure that I will need to supply much more information to get to the bottom of the issue, but am uncertain what it is that you will need from me: pictures of the skin painting, model details, etc. Or, perhaps, you've come across this before and will know exactly what it is that I need to do. Either way, I hope that you can help me easily fix this and I can use your asset to bring even more depth to my character!

Print this item