Search Forums

(Advanced Search)

Latest Threads
Settings Obi Skinned Clot...
Forum: Obi Cloth
Last Post: cgwill
5 hours ago
» Replies: 0
» Views: 13
Pinholes: new component f...
Forum: Announcements
Last Post: goosejordan
21-03-2025, 08:47 PM
» Replies: 5
» Views: 335
Growing a rope attached t...
Forum: Obi Rope
Last Post: josemendez
18-03-2025, 07:39 AM
» Replies: 1
» Views: 118
2 Rendering bugs on iOS(M...
Forum: Obi Fluid
Last Post: cliv3dev
17-03-2025, 02:30 PM
» Replies: 2
» Views: 154
Twisted Bones
Forum: Obi Rope
Last Post: Jawsarn
15-03-2025, 10:35 PM
» Replies: 0
» Views: 78
[Fixed] ProceduralInstanc...
Forum: General
Last Post: marzand
14-03-2025, 06:07 PM
» Replies: 0
» Views: 89
How to fix both ends when...
Forum: Obi Rope
Last Post: josemendez
14-03-2025, 11:21 AM
» Replies: 3
» Views: 178
Obi Physics Suite (all 4 ...
Forum: Announcements
Last Post: josemendez
13-03-2025, 09:35 AM
» Replies: 0
» Views: 86
Scaled SkinnedCloth not m...
Forum: Obi Cloth
Last Post: josemendez
13-03-2025, 08:13 AM
» Replies: 3
» Views: 252
Runtime generated SDF
Forum: General
Last Post: goosejordan
11-03-2025, 02:30 PM
» Replies: 2
» Views: 244

 
  Collision detection via script / disable force
Posted by: Kalidor - 28-09-2017, 11:24 AM - Forum: Obi Fluid - Replies (4)

Hi!

1. Is it possible to request collisions via script (like OnParticleCollision)?
2. The particles shouldn't add force to other rigid bodies. Is it possible to disable it?

Thank you!
Kalidor

Print this item

  Static ropes possible?
Posted by: Sauerkraut - 26-09-2017, 07:58 PM - Forum: Obi Rope - Replies (4)

Hi - I am considering Obi Rope for a VR game - I am intending to have a lot of "ropes" - some interactable through physics and the player's hands - Obi's capabilities of which are well publicised, but also a lot of static ones (eg. electric wires running along walls, connecting puzzles etc) which never need to be interactable.

Obi seems like a great way to create realistically accurate ropes / cables which drape along other meshes / trees / walls / terrain. However for those ropes / cables etc which are static - is there a way to set up Obi-ropes using the physics to drape the rope around other objects at design time initially, then once they are in the correct position obtain just the mesh of the rope's generated skin and discard the particles for performance reasons? Or is it possible to completely disable the physics so that for static ropes this does not take up unnecessary processing power? The latter would be preferable, as that would allow modification to the ropes as the game is being designed / terrain changed / etc.

Any help would be much appreciated.

Print this item

  Rope distance from attached object
Posted by: dignifiedweb - 26-09-2017, 04:48 AM - Forum: Obi Rope - Replies (3)

Hi,

I love your rope asset so far! I was wondering, is there a way to get the rope snug up against the collider? I followed along with your youtube tutorial to make a rope attached to a cube, but using all defaults, my cube is a considerable distance away from the rope at runtime. When I add the Pin Constraint (pinned to object) on the bottom rope particle, it automatically adds an offset in the Y access. I noticed, if I drop that Y access down a bit, it brings it closer to the collider. In the tutorial, it also mentioned adjusting the distance in the solver itself, I did that as well, but no impact for some reason. Any ideas what I'm doing wrong?

Here's a screenshot:
[Image: LQqp9Hj.png]

Youtube tutorial I followed

I can also provide you the scene if needed, let me know. If I revert to defaults, it is the same result I have found.

I should note: I pinned the top particle to the top cube instead of pinning in place, which is what was done in the tutorial.

Print this item

  Obi rope ends
Posted by: Parker - 25-09-2017, 11:01 PM - Forum: Obi Rope - Replies (1)

How can we get the rope end/start prefab and change Color or material during runtime.

When you attach a start and/or end prefab to the rope startprefab or the endprfab. We want to change material on the ends how can we get a handle or reference to the instantiated end

Print this item

  How to make small size continous water stream?
Posted by: sunyifeng83 - 25-09-2017, 04:17 AM - Forum: Obi Fluid - Replies (2)

Hi jose,


I still have a problem. I want the water flow down from faucet continously and smaller. But if i made the EmitterShapeDisk smaller. If just one stream. The stream can't continously flow down. If there is any way to make small size continous stream? Now the streams flow down have gaps. 



Attached Files Thumbnail(s)
   
Print this item

  A couple of Bugs fixes for Obi Rope
Posted by: Parker - 22-09-2017, 04:24 AM - Forum: Obi Rope - No Replies

ObiRopeEditor.cs

Line 94:  Replace ;;  with  ;

Oni.cs

Line 28, Add newline and the following
[Flags]


ObiBone.cs

Line 198, restPositions cannot be re-declared as it willl have a different meaning to the restPositions above.

Line 198: change restPositions to restPositions1
Line 201: change restPositions to restPositions1

Print this item

  ovr (oculus) implementation
Posted by: satchmo - 21-09-2017, 01:50 PM - Forum: Obi Fluid - Replies (2)

Hi guys, I bought fluid, great job!
I've seen some questions in th FAQ session about vr, I think it would be great a future implementation with a oculus touch sensor ready scene, do you think you'll do it?
So, If you do, I will not try by myself :-)
thx
CArlo

Print this item

  Creating Rope in runtime
Posted by: Parker - 21-09-2017, 03:40 AM - Forum: Obi Rope - Replies (2)

Unity is running.  Meaning this is real time.  The user will not be stopping the game and creating a rope, initializing it, and putting on handles, then re-start the game.

I want this to be done during runtime and with scripts.  When I use the code, the rope DOES NOT work, it has no physics attached.  How do you get it to work.

 ObiRope Rope;
 ObiSolver Solver;
 ObiCatmullRomCurve Curve;
 ObiRopeCursor Cursor;

 private void Awake()
 {
     if (Rope == null)
         Rope = gameObject.AddComponent<ObiRope>();

     if (Curve == null)
     {
         Curve = gameObject.AddComponent<ObiCatmullRomCurve>();
         Rope.ropePath = Curve;
     }
     if (Solver == null)
     {
         Solver = gameObject.AddComponent<ObiSolver>();
         Rope.Solver = Solver;
     }

     // Configure rope and solver parameters:
     Rope.SectionThicknessScale = 0.10f;
     Rope.resolution = 1f;
     Rope.BendingConstraints.stiffness = 0.2f;
     Rope.UVScale = new Vector2(1, 5);
     Rope.NormalizeV = false;
     Rope.UVAnchor = 1;

     Rope.RestLength = 10;
     Solver.distanceConstraintParameters.iterations = 15;
     Solver.pinConstraintParameters.iterations = 15;
     Solver.bendingConstraintParameters.iterations = 1;

     // Add a cursor to change rope length:
     Cursor = Rope.gameObject.AddComponent<ObiRopeCursor>();
     Cursor.rope = Rope;
     Cursor.normalizedCoord = 0;
     Cursor.direction = true;
 }


public void InitRope()
{
    Rope.UpdateVisualRepresentation();
}

private IEnumerator CreateRope()
{
    yield return Rope.GeneratePhysicRepresentationForMesh();
}

public void UpdateRope()
{
    StartCoroutine(CreateRope());
}

Print this item

  Moving Rope in runtime
Posted by: Parker - 21-09-2017, 03:32 AM - Forum: Obi Rope - Replies (1)

Unity is running.  This will happen in real time, meaning the user will not stop the program and go to the particle editor, make changes, then run the game again.

I want to move a rope from left side of screen to right side without it fly over all over the place.  I am looking for code to fix this problem.

Print this item

Pregunta WaitForAllTasks spent a lot of time!
Posted by: sunyifeng83 - 20-09-2017, 11:52 AM - Forum: Obi Fluid - Replies (15)

I have encountered a performance problem. When i simulate a faucet emitter with 1000 particles limit, the fps will drop obiviously with the particle nums adding. Finally the fps will dropped to less than 10fps. I have attached my configurations and the function WaitForAllTasks spent time. How can i get over the problem. Any help will be appreciated!



Attached Files Thumbnail(s)
       
Print this item