Search Forums

(Advanced Search)

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

 
Sorprendido Crash report
Posted by: zhuchun - 31-01-2018, 09:03 AM - Forum: Obi Rope - Replies (9)

Hi,

My editor has crashed randomly these days, would you please have a look? 

error.log
==================
Unity Editor [version: Unity 2017.2.0f3_46dda1414e51]

libOni.dll caused an Access Violation (0xc0000005)
  in module libOni.dll at 0033:ed69cade.
==================

Editor.log
========== OUTPUTING STACK TRACE ==================

0x00007FF8ED69CADE (libOni) SetDiffuseParticleNeighbourCounts
0x00007FF8ED6E98C6 (libOni) Generate
0x00007FF8ED6EADE1 (libOni) Generate
0x00007FF8ED6E94A9 (libOni) Generate
0x00007FF8ED710559 (libOni) Generate
0x00007FF8FAC71FE4 (KERNEL32) BaseThreadInitThunk
0x00007FF8FB91EF91 (ntdll) RtlUserThreadStart

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

Dmp file:
https://drive.google.com/open?id=1BTjqHO...rRv0CMY8gK



Cheers,
Zhu Chun

Print this item

  Installation Issue Unity 2017.3.0F3: script errors
Posted by: izzyschneerson - 30-01-2018, 08:40 PM - Forum: Obi Cloth - Replies (6)

After importing OBI Cloth into my project I cannot enter Play-mode anymore: have to fix compile-errors.

These are the errors:

 
Assets/Standard Assets/Utility/SimpleMouseRotator.cs(3,27): error CS0234: The type or namespace name `CrossPlatformInput' does not exist in the namespace `UnityStandardAssets'. Are you missing an assembly reference?
 
Assets/Standard Assets/Characters/ThirdPersonCharacter/Scripts/AICharacterControl.cs(11,16): error CS0246: The type or namespace name `ThirdPersonCharacter' could not be found. Are you missing `Obi.Characters.ThirdPerson' using directive?


Unity Editor Version:

 2017.3.0f3

I have deleted OBI from my project and reimported all earlier assets, but that did not work

Print this item

  Sporadic Performance Drops
Posted by: salvetori - 30-01-2018, 05:44 PM - Forum: Obi Cloth - Replies (12)

Hello,

I've been having an issue where every few seconds I will encounter a massive momentary drop in performance. In this scenario the cloth I am simulating is following the character cloth setup from the documentation, and is currently not colliding with anything. The solver is using the default settings save for having the simulation space set to local and having the simulation order set to late update. The cloth being simulated has thickness, with self collisions enabled. However, enabling a cloth proxy or not didn't seem to have an effect on this performance spike happening. I also tested simply disabling every single constraint and that also did not seem to have an effect.

[attachment=70]

I followed some of the pointers found in this thread: http://obi.virtualmethodstudio.com/forum...d-200.html
Unfortunately these didn't change the outcome.

The demo scenes that come with obi cloth perform fine and I don't encounter this issue in those demo scenes, particularly in the character cloth scene that I am trying to emulate.
I am not really sure what is going on so I'd appreciate some help. Let me know if you guys need more info.

[attachment=69]

Edit:

So, I was incorrect in saying that the performance spikes don't happen in the different demo scenes. This is the benchmark scene profile:

[attachment=71]

Is this just a symptom of having a weak processor?
I have a AMD 6300 Six-Core Processor
I am also using Unity 2017.3.0f3

Is there some other way to prevent these performance spikes from happening? Or am I out of luck?

Print this item

  ParticleCollisionEvent OnParticleCollision
Posted by: UTFLuke - 29-01-2018, 03:46 PM - Forum: Obi Fluid - Replies (5)

Hi there,

i was wondering, how to create an ParticleCollisionEvent in a OnParticleCollision function. 
I can get the Particle collision via this function.
But i am not sure, how to build an ParticleCollisionEvent from this. Or how to get the Info from the collision from the code below.

My goal is to get aVector3 Intersection of the Collision, and the normal Sonrisa

void Solver_OnCollision(object sender, Obi.ObiSolver.ObiCollisionEventArgs e)
    {
        for (int i = 0; i < e.contacts.Length; ++i)
        {
            if (e.contacts[i].distance < 0.001f)
            {
                Component collider;
                if (ObiCollider.idToCollider.TryGetValue(e.contacts[i].other, out collider))
                {
                }
 
            }
        }
    }

thx for any help Sonrisa


I actually got that to work, I used 
e.contacts[i].point as the intersect Point
e.contacts[i].normal as the normal
(pretty obvious Lengua)

Now i just ran into another Problem. The OnParticleCollision triggers quite often, but I would rather like it to trigger it only on the first collision. What would be a good approach to achieve that behaviour?

Thx in regards,
A ObiFluid - Noob

Print this item

  Firehose
Posted by: moXier - 29-01-2018, 03:33 PM - Forum: Obi Rope - Replies (3)

How can I simulate a fire hose.
Right now one of the  ends are stuck to a nozzle, but when I walk away it is very weird, I want it to become longer and not glide around XD.

Print this item

  Large Radius Liquid Transfer Pipe that can be picked up at any point for HTC Vive
Posted by: AccqwTit - 29-01-2018, 08:16 AM - Forum: Obi Rope - No Replies

Good day,

I am building a program the simulate a fuel plant, for HTC Vive. 

I have several issues that I am experiencing:

1. Large radius pipe that transfers fuel from the plant to the truck: When I attach SteamVR throwable script to the object attached to the end-point of the rope, the whole rope malfunctions.

2. Collision effect seems not to work on SteamVR teleportation platforms. The rope cannot detect colliders.

3. Fuel Transfer pipe seems not to have weight, and it stretches. I applied the distance constraint, but I am not winning.

4. I also want to be able to pick the pipe from any point of the rope. Including the object attached at the end of the rope.

Print this item

  Bug + fix: IndexInActor not updated in solver after a particle kill
Posted by: tooomg - 28-01-2018, 05:34 AM - Forum: General - Replies (3)

Hi there!

I was doing some kind of fancy particle management when I came across a bug preventing me to delete the last particle of an emitter if another particle from the same emitter has been killed before. (Note: I've been killing it the "proper" way, setting its life to zero)
The bug was due to the fact that the IndexInActor field from the ParticleInActor class in the solver is not updated when a particle is killed by the Emitter. The consequence is that when deleting my 2nd particle, its IndexInActor still "pointed" to the particle I just killed before and was moved to inactive particles group at the end of the list.
I took a quick look and it seems that there's nowhere where IndexInActor is updated, so the fix boils down to doing it in KillParticle:

Code:
       public bool KillParticle(int index){

           if (activeParticleCount == 0 || index >= activeParticleCount) return false;

           // reduce amount of active particles:
           activeParticleCount--;
           active[activeParticleCount] = false;

           // swap solver particle indices:
           int temp = particleIndices[activeParticleCount];
           particleIndices[activeParticleCount] = particleIndices[index];
           particleIndices[index] = temp;
           // FIX BEGIN
           solver.particleToActor[particleIndices[index]].indexInActor = activeParticleCount;
           solver.particleToActor[temp].indexInActor = index;
           // FIX END

I tried it on my scene and if fixes the problem wonderfully!
I guess this was the intent of the existing swap in particleIndices above (cf the comment), but the change is not deep enough in the system for it to work correctly.
Unless the bug was due to me using the system in the wrong way, I guess it would be good to have this extra piece of logic integrated in the next release.

Cheers!

Print this item

  Simultaneous cloth collision with terrain and character
Posted by: a12345 - 27-01-2018, 11:49 PM - Forum: Obi Cloth - Replies (1)

Hi,

Is it possible to create a cloth that can detect collisions both with a terrain collider as well as the character that is wearing the cloth? Essentially I have a character wearing a trench coat that at some point will begin crawling on the floor. The cloth now needs to collide with both the character and the terrain and not disappear into the terrain.

How would I achieve this with Obi Cloth?

Print this item

  Callback for particle-particle collision
Posted by: tooomg - 26-01-2018, 10:44 PM - Forum: Obi Fluid - Replies (2)

Hi there!

I'm looking for a way to know when particles from different phases are colliding, in order to do some custom logic for each collision. The collision physics itself is working so I guess there's nothing wrong with my setup, but it might be the case, I'm fairly new with Obi Fluid.
I've looked into the ObiSolver.OnCollision callback, but it seems that it only provides data for the collisions against the Colliders of my scene!
Is there a way of achieving this particle-against-particle detection? Maybe directly through the Oni API? I don't know if that's realistically feasible in terms of performance, but let's try hehehe


Cheers and thanks for this great plugin!
Tom

Print this item

  Using Obi Cloth With Blend Shapes
Posted by: JoeParente34 - 24-01-2018, 11:30 PM - Forum: Obi Cloth - Replies (2)

Hi, I'm running into an issue with Obi cloth, that I can't seem to figure out.  The cloth simulation is working great on any given mesh, until one of the blend shapes is activated.  Then it seems like the cloth simulation is turned off.  For example, I have the cloth simulation on some hair.  There's a blend shape associated with the hair model to make it shorter, once this is turned on the cloth simulation stops.  Is it not possible to have both working on a model at the same time?  Am I doing something wrong settings wise?  

Hope to hear from you soon, Thanks!

Print this item