Search Forums

(Advanced Search)

Latest Threads
Can I blend in and out of...
Forum: Obi Cloth
Last Post: josemendez
20-06-2025, 04:32 PM
» Replies: 1
» Views: 58
Solver is too performance...
Forum: Obi Rope
Last Post: quent_1982
20-06-2025, 08:09 AM
» Replies: 40
» Views: 2,860
Obi 7 Model Scaling
Forum: Obi Cloth
Last Post: alkis
19-06-2025, 02:37 PM
» Replies: 2
» Views: 155
Obi Softbody instability?
Forum: Obi Softbody
Last Post: Aroosh
18-06-2025, 06:35 PM
» Replies: 0
» Views: 73
Tear Rod
Forum: Obi Rope
Last Post: chenji
18-06-2025, 08:34 AM
» Replies: 2
» Views: 137
Pipeline that bends
Forum: Obi Softbody
Last Post: josemendez
17-06-2025, 02:07 PM
» Replies: 11
» Views: 396
Memory Leaks?
Forum: General
Last Post: josemendez
16-06-2025, 08:45 PM
» Replies: 3
» Views: 225
Obi 7.0 ParticleAPI
Forum: Obi Rope
Last Post: alicecatalano
12-06-2025, 09:19 AM
» Replies: 12
» Views: 1,967
Is it possible to simulat...
Forum: Obi Fluid
Last Post: josemendez
09-06-2025, 08:21 AM
» Replies: 1
» Views: 185
Fluid Control Issues
Forum: Obi Fluid
Last Post: josemendez
06-06-2025, 09:19 AM
» Replies: 1
» Views: 223

 
Pregunta Prefab rope collision question
Posted by: loltype - 17-06-2019, 02:57 PM - Forum: Obi Rope - Replies (4)

Hi,

I purchased OBI rope 4.1 recently. It is fantastic asset!

I got stuck on an unexpected phenomenon for the past few days. I made a prefab which consists of Obi Rope(fully set up, initialized) + script(just destroy after 5 sec). And I added a cube with ObiCollider to the scene for collision testing.

When I instantiate the prefab rope at runtime, it falls and collide the cube correctly as long as prefab remains. But once all prefab has been destroyed, newly instantiate  prefab will be penetrate(not collide with) the cube.


This is link for Youtube video.
https://youtu.be/jjRjJNdYFdI

Now I have workarounds for this: 
 (1) Remove solver from the prefab, add a solver to scene and set this at runtime. As the following link:
       http://obi.virtualmethodstudio.com/forum...p?tid=1074
 or 
 (2) Simply add a dummy solver to the scene. I don’t know why it works…perhaps as long as a solver remains the phenomenon is not happen, even if the solver is dummy(not used).

I'm new to Unity and Obi Rope so maybe it is a noobish question. But I would like to share this on the forum, just in case. And if possible, I would like to know how this phenomenon happens.

Thanks!

Print this item

  Pinned to
Posted by: dutchman - 17-06-2019, 08:06 AM - Forum: Obi Rope - Replies (3)

When following the tutorial (http://obi.virtualmethodstudio.com/tutor...setup.html) attaching a cube to Obi Rope, When I drag the cube into the field of the "Pinned to:" it is not submitted into the field. New to all of this, I'm sure it's a beginner's mistake, need some help. Thank you. (MacOS)

Print this item

  Moving Local-Space Solver causes child Cloth to jump & tear?
Posted by: jabza - 15-06-2019, 10:42 PM - Forum: Obi Cloth - Replies (4)

***Update: Setting Solver to LateUpdate appears to fix this, but should this even be needed? Not a desired solution. ***

Hi,

I have one ObiSolver set to Local-Space, with five TearableCloth actors as children.

When teleporting the parent GameObject of this Solver, the cloth appears to 'snap jump', and sometimes even causes tearing.
Implying forces from Global-Space are effecting the actors?

This has puzzled me, as I'd expect this behavour with a Global-Space Solver, but not Local. 
Please see my Sovler configuration below - Obi version 4.1:

[Image: 1LnwSKn.png]

What I am observing, the moment of the parent Transform 'teleport', the TearableCloth is locally offset for one frame:
[Image: MP3x2l5.png]

At the next frame, we see the Cloth 'stretching' back:
[Image: tavErpN.png]

Again, I'd expect this behaviour if my Solver was global space, not local space. Is this a correct assumption?

Thanks again for the support, much appreciated.

Cheers,
Jabza

Print this item

Triste softbody stretching through floor downward to infinity
Posted by: pancakes - 14-06-2019, 08:26 PM - Forum: Obi Softbody - Replies (2)

When I try to make a softbody object using the same setup and solver as the ball in the example ball, the object does not collide correctly with the floor and ends up stretching downward to infinity. Changing the particle or cluster radius has no effect. 

Attached is a gif of the issue. The ball behaves correctly but not my custom object. I have gone through the documentation step by step but cannot find any answers. Please can someone help me understand what is going on and how to fix it?


Huh Huh Huh

Print this item

  No particles when using "edit particles"
Posted by: mattcscz - 12-06-2019, 11:11 PM - Forum: Obi Cloth - Replies (1)

Hi,

Am new to obi cloth.

When I try to set up following the tutorial and click "edit particles" there simply is not points on my mesh, could I get some assistance with what might be wrong with it? I have the mesh set and initialized and also set a solver.

Thanks

Mat

Print this item

  Marquee tool
Posted by: Richard - 09-06-2019, 05:06 PM - Forum: Obi Cloth - Replies (18)

I asked about marquee tool before, but I want to choose particles by only script not using UI. How can I choose particle by rect of coordinates? and create obi handle from there? I don't know how to select the target(obi cloth) and lead to edit by script

Print this item

  Importing Error by Obi Soft
Posted by: NKNKNK - 08-06-2019, 08:21 AM - Forum: Obi Softbody - Replies (1)

http://obi.virtualmethodstudio.com/forum...hp?tid=833

I have same problem.
But, Restarting Unity and Windows OS does not solve the problem.

[Image: byi9jfG.png]

-Version
Windows10 
Android build
Unity 2019.1.0f2

Thank you for your cooperation.

Print this item

  Obi Cloth 4.1 Crash on Apple A12 devices.
Posted by: alkis - 06-06-2019, 06:32 PM - Forum: Obi Cloth - Replies (4)

We have run into an issue where Obi Cloth reliably crashes on Apple A12 based devices. I have created a minimal repro project based on the Runtime Cloth example of the distribution. The issue happens on both 4.0 and 4.1. The attached project crashes on A12 devices, such as the iPhone XS and XR, but not on any other devices we have tested on, including A9, A10 and A11 devices. We are building using Unity 2018.4.1f1 and Xcode 10.2.1 (10E1001). The devices are running iOS 12.2.

There are multiple different stack traces for the crashes, I have attached some.

The issue was unfortunately discovered in the last minute and blocked us from making a release using Obi, we will have to temporarily strip the assets using it until a solution can be found.

To repro with the project attached, unzip into a base distribution of 4.1 (or 4.0 for that matter, same result), build, run on a A12 device and tap to spawn a sack.



Attached Files
.txt   StackTraces.txt (Size: 3.41 KB / Downloads: 9)
Print this item

Corazón Help with creating rope on runtime
Posted by: Smurfj3 - 06-06-2019, 12:00 PM - Forum: Obi Rope - Replies (3)

Hello, first off I want to say it's amazing asset, have messed around with it in the editor and everything worked as expected, however I have problems achieving the same on runtime.

I have checked the example code on 1 of your pages, but it seemed outdated. I have tried various things but can't seem to get it to work. I have tried the following code:


Code:
public class RopeGenerator : MonoBehaviour {

    private ObiRope rope;
    private ObiCurve path;
    private ObiSolver solver;
    private ObiRopeExtrudedRenderer ropeextruder;
    private ObiRopeCursor cursor;
    private MeshRenderer render;

    public Material RopeMaterial;

    public IEnumerator MakeRope(Transform fromtrans, Transform totrans, float ropeLength)
    {
        GameObject ropeObject = new GameObject("HitchRope", typeof(ObiSolver),
                                typeof(ObiRope),
                                typeof(ObiCurve),
                                typeof(ObiRopeExtrudedRenderer),
                                typeof(ObiRopeCursor));

        rope = ropeObject.GetComponent<ObiRope>();
        path = ropeObject.GetComponent<ObiCurve>();
        solver = ropeObject.GetComponent<ObiSolver>();
        ropeextruder = ropeObject.GetComponent<ObiRopeExtrudedRenderer>();
        cursor = ropeObject.GetComponent<ObiRopeCursor>();
        render = ropeObject.GetComponent<MeshRenderer>();

        rope.Solver = solver;
        rope.ropePath = path;
        ropeextruder.section = Resources.Load("DefaultRopeSection") as ObiRopeSection;

        render.material = RopeMaterial;
        
        ropeextruder.uvScale = new Vector2(1, 10);
       
        yield return rope.StartCoroutine(rope.GeneratePhysicRepresentationForMesh());

        cursor.ChangeLength(20);

        GameObject HandleObject01 = new GameObject("Obi Handle01", typeof(ObiParticleHandle));
        GameObject HandleObject02 = new GameObject("Obi Handle02", typeof(ObiParticleHandle));

        ObiParticleHandle handle01 = HandleObject01.GetComponent<ObiParticleHandle>();
        handle01.Actor = rope;
        handle01.AddParticle(0, fromtrans.position, Quaternion.identity, rope.invMasses[0], rope.invRotationalMasses[0]);
        handle01.AddParticle(1, fromtrans.position, Quaternion.identity, rope.invMasses[1], rope.invRotationalMasses[1]);  

        ObiParticleHandle handle02 = HandleObject02.GetComponent<ObiParticleHandle>();

        handle02.Actor = rope;
        int index = rope.UsedParticles - 1;
        handle02.AddParticle(index, totrans.position, Quaternion.identity, rope.invMasses[index], rope.invRotationalMasses[index]);
        handle02.AddParticle(index - 1, totrans.position, Quaternion.identity, rope.invMasses[index - 1], rope.invRotationalMasses[index - 1]);
        rope.AddToSolver(null);
    }
}
However I get an nullreferenceexception. that occurs in ObiRopeCursor.cs line 101.

The rope does appear in the scene tho. The effect I am going for is to generate a rope between 2 object where 1 of the objects could be both static or a moving object and the other object is always a moving object.

Help would be very much appreciated.

Print this item

  Having trouble getting cloth to collide with other gameobjects
Posted by: digitalOctopus - 05-06-2019, 04:45 AM - Forum: Obi Cloth - Replies (2)

I have a table mesh with a separate tablecloth mesh. Both are sitting upon a floor mesh. The table is a rigidbody with a mesh collider.

The tablecloth has an Obi Cloth component, set up as shown in the Obi Cloth setup video. The simulation works great, the tablecloth that came with the table actually moves like cloth now. The only trouble is, it falls through the table and through the floor, off into space. I've tried different colliders, configurations, etc, but can't seem to get it. Thanks for any help!

Print this item