Search Forums

(Advanced Search)

Latest Threads
Stretching verts uniforml...
Forum: Obi Softbody
Last Post: josemendez
Yesterday, 04:32 PM
» Replies: 1
» Views: 180
Scripting rod forces
Forum: Obi Rope
Last Post: chenji
11-09-2025, 01:15 PM
» Replies: 25
» Views: 3,066
Burst error causing crash...
Forum: Obi Rope
Last Post: josemendez
10-09-2025, 07:03 AM
» Replies: 1
» Views: 271
Controlling speed of emit...
Forum: Obi Fluid
Last Post: josemendez
06-09-2025, 06:29 AM
» Replies: 1
» Views: 541
Looks nice on editor but ...
Forum: Obi Fluid
Last Post: josemendez
04-09-2025, 07:20 AM
» Replies: 3
» Views: 788
How to Shorten or Scale t...
Forum: Obi Rope
Last Post: josemendez
02-09-2025, 09:53 AM
» Replies: 5
» Views: 858
The Limitation of Using O...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 10:30 PM
» Replies: 1
» Views: 594
Bug Where a Straight Segm...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 08:46 PM
» Replies: 1
» Views: 558
Having an issue with obi ...
Forum: Obi Rope
Last Post: Ben_bionic
29-08-2025, 04:23 PM
» Replies: 4
» Views: 1,061
Non-uniform particle dist...
Forum: Obi Rope
Last Post: chenji
29-08-2025, 09:05 AM
» Replies: 4
» Views: 904

 
  Obi Rope and Obi Cloth Shader Compilation Error
Posted by: Sbmhome - 16-09-2019, 07:40 PM - Forum: General - Replies (2)

I'm getting the below errors when creating a build for my game.

Shader error in 'Obi/Particles': invalid subscript '_ShadowCoord' at line 82 (on d3d11)
Compiling Vertex program with DIRECTIONAL SHADOWS_SHADOWMASK LIGHTPROBE_SH UNITY_SINGLE_PASS_STEREO
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_RGBM_ENCODING

Shader error in 'Obi/Simple Particles': invalid subscript '_ShadowCoord' at line 68 (on d3d11)
Compiling Vertex program with DIRECTIONAL SHADOWS_SHADOWMASK LIGHTPROBE_SH
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_RGBM_ENCODING


I noticed a previous post suggested that the error was related to this line of code not being present in the shader. BUT IT IS present in both of the shaders.
#pragma multi_compile_fwdbase nolightmap


I'm Using Unity 2017.4.24f and ObiRope 3.2 and ObiCloth 3.2

Thanks.

Print this item

  Problems with Obi Cloth
Posted by: TH3H3RO - 16-09-2019, 02:14 PM - Forum: Obi Cloth - Replies (1)

Hey all,
I just bought Obi Cloths and wanted to look at some of the demo scenes.
Unfortunately none of them work. Please see the provided link for clarification. here
I am on Unity 2019.1.3f

Regards,

Dan

Print this item

  Older Fluid versions
Posted by: Elran - 16-09-2019, 07:59 AM - Forum: Obi Fluid - Replies (1)

hey there Obi, 
first of all, i love the product, such an easy way to generate amazing results.

we would love using it in our product, that unfortunately has been built on unity 2017, was wondering if there is a supporting version available?

Print this item

  Rope jittery with pin and fixed contraints
Posted by: ftf_shess - 16-09-2019, 05:37 AM - Forum: Obi Rope - Replies (2)

Hello,

I'm seeing a lot of jitter for a rope on both ends - it has pin contraints on one end, and fixed pos/rot on the other in Unity 2018.4.8.

The pin constraints on one side are pinned to an object with a rigid body that is set to kinematic because it is moved by a player in VR.  The rope is parented under a different object with a rigid body that is also set to kinematic to be moved by the player's other hand in VR.

I've tried making sure the phases are the same and increasing the iterations of Pins, with no change.

Changing the update order to anything other than FixedUpdate makes the side with fixed constraints look correct, but it causes the side with the pinned constraints to wig out and go down through the floor for some reason.

This "down through the floor" behavior happens if I follow the pendulum tutorial online and set the update order to AfterFixedUpdate or Late, so I assume that for a pin constraint, this is just not the correct order in general.

I know this is an odd combination, but I feel like I'm missing something obvious in the setup.

Any thoughts or pointers?

Thanks!

Print this item

  Distance Fields not working
Posted by: jaysama - 16-09-2019, 05:37 AM - Forum: Obi Fluid - Replies (3)

Hi Obi,

I just purchased Obi Fluid yesterday to make my game. But I experienced difficulty in implementing it, and currently I'm stuck in Distance Fields.
Referring to this thread, that has resolved my initial issues so far (the lag for using raw mesh collider), I am now able to create Distance Field for my fbx glass mesh.
However, when implementing it on sample scene FaucetAndBucket, it seems that the Distance Field doesn't work at all.
The water seems to just went through the mesh.

Pic:
[attachment=401]

Distance Field:
   

Mesh:
   

How do I resolve this?

Print this item

  Is it able to move softbody with script?
Posted by: harapeco - 16-09-2019, 01:47 AM - Forum: Obi Softbody - Replies (16)

Hello.

I'd like to move softbody object with script.
for example, attach above code to softbody object.


Code:
using UnityEngine;
using System.Collections;

public class Gravity : MonoBehaviour {
   public GameObject planet;      
   public float accelerationScale;
    
    void FixedUpdate () {
        
        var direction = planet.transform.position - transform.position;
        direction.Normalize();

        GetComponent<Rigidbody>().AddForce(accelerationScale * direction, ForceMode.Acceleration);
    }
}


Is it able to  do this?

or if not, how can i do like this.

Print this item

  Make Fluid Less "Jello-like" / Liquid Escapes Container
Posted by: justintsai01 - 15-09-2019, 01:34 AM - Forum: Obi Fluid - No Replies

I have some problems with the ObiFluid. I want a beaker to contain the liquid, and move it around to dump. Can anyone help me if they've run into these problems and solved them?
1. Some drops of liquid "phase" through the beaker. The beaker has the KinematicVelocities, ObiRigidBody, and ObiCollider scripts.
2. The liquid is "jello-like" when I move the beaker with the liquid. Is there some settings I could do to make it not like jelly/honey? I've played around with the emitter material values but nothing works yet.

Any help/suggestions is well appreciated, thanks!

Print this item

  A few technical questions
Posted by: Adrian_GSO - 12-09-2019, 10:39 AM - Forum: Obi Rope - Replies (2)

Hi, great asset btw. 

Is there a way to programmatically calculate the points of the rope? I wish for the rope to curl around a cylindrical object much like a firehose. 
And is there a way to programmatically force the rope to be a fixed length during set up?

Thank you so much.

Print this item

  Obi Handle and fixing particles at runtime
Posted by: msw201089 - 10-09-2019, 09:33 PM - Forum: Obi Softbody - Replies (5)

I am running into an interesting problem. I am trying to create a new gameobject, attach an Obi Particle Handle component to it, set a particles mass and velocity to 0, then add that particle to the handle. I have tried to do this in almost every order possible by creating the gameobject first, adding the particle first, zeroing out mass and velocity first, and no matter what order the operations are done in inevitably the model freaks out and disappears, or only the particle itself freaks out. I have also tried to setup the handle in the editor and then disable and enable it at runtime but this also causes weird behavior.

Code sample:

Code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Obi;

public class ObiSoftBodyTester : MonoBehaviour
{
    ObiActor actor;

    public GameObject runtimeHandleGO;
    public ObiParticleHandle newHandle;
    public ObiSolver mySolver;

    // Start is called before the first frame update
    void Start()
    {
        actor = GetComponent<ObiActor>();
        Debug.Log(actor);
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.A))
        {
            RunInit();
        }
    }

    public void RunInit()
    {
        runtimeHandleGO = new GameObject();

        newHandle = runtimeHandleGO.AddComponent<ObiParticleHandle>();
        newHandle.Actor = actor;

        newHandle.transform.position = actor.GetParticlePosition(actor.particleIndices[0]);

        /*
        mySolver.velocities[0] = Vector3.zero;
        mySolver.invMasses[0] = 0;
        */

        /*
        actor.velocities[0] = Vector3.zero;
        actor.invMasses[0] = 0;
        actor.PushDataToSolver(ParticleData.INV_MASSES | ParticleData.VELOCITIES);
        */

        newHandle.AddParticle(0, actor.GetParticlePosition(actor.particleIndices[0]), Quaternion.identity, actor.invMasses[0], 0.0f);

        /*
        mySolver.velocities[0] = Vector3.zero;
        mySolver.invMasses[0] = 0;
        */

        actor.velocities[0] = Vector3.zero;
        actor.invMasses[0] = 0;
        actor.PushDataToSolver(ParticleData.INV_MASSES | ParticleData.VELOCITIES);

        Debug.Log(newHandle.ParticleCount);
    }
}

I have this script attached to the dragon in the sample scene from the Obi softbody asset.

Basically, I'm not sure if my code is causing the problems, I'm going about this the wrong way, or if I've found a bug.

Any help would be appreciated.

Unity version 2019.2.0f1

Print this item

  Particle editor not working at all Unity 2018.4
Posted by: Ian_W - 09-09-2019, 08:34 PM - Forum: Obi Rope - Replies (2)

I'm on unity 2018.4 and all the rope components seem to work, however, none of the inspector widgets seem to be working. Whenever I hit the edit particle button I get a couple of hundred errors about a null reference exception in the ObiParticleActorEditor script on lines 332 598 and 262. I can sort of click around and eventually find spots where I can add pins but things aren't quite working and it makes it nearly impossible to set up ropes.

Print this item