Latest Threads |
Stretching verts uniforml...
Forum: Obi Softbody
Last Post: Aroosh
Yesterday, 05:32 AM
» Replies: 0
» Views: 77
|
Scripting rod forces
Forum: Obi Rope
Last Post: chenji
11-09-2025, 01:15 PM
» Replies: 25
» Views: 2,788
|
Burst error causing crash...
Forum: Obi Rope
Last Post: josemendez
10-09-2025, 07:03 AM
» Replies: 1
» Views: 194
|
Controlling speed of emit...
Forum: Obi Fluid
Last Post: josemendez
06-09-2025, 06:29 AM
» Replies: 1
» Views: 447
|
Looks nice on editor but ...
Forum: Obi Fluid
Last Post: josemendez
04-09-2025, 07:20 AM
» Replies: 3
» Views: 696
|
How to Shorten or Scale t...
Forum: Obi Rope
Last Post: josemendez
02-09-2025, 09:53 AM
» Replies: 5
» Views: 785
|
The Limitation of Using O...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 10:30 PM
» Replies: 1
» Views: 523
|
Bug Where a Straight Segm...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 08:46 PM
» Replies: 1
» Views: 496
|
Having an issue with obi ...
Forum: Obi Rope
Last Post: Ben_bionic
29-08-2025, 04:23 PM
» Replies: 4
» Views: 994
|
Non-uniform particle dist...
Forum: Obi Rope
Last Post: chenji
29-08-2025, 09:05 AM
» Replies: 4
» Views: 842
|
|
|
Instanced Cloth Not Appear In Builds |
Posted by: fluidman84 - 24-02-2021, 05:22 PM - Forum: Obi Cloth
- Replies (2)
|
 |
Hello,
I have created a script that Instances a Cloth Prefab clothing item and parents it under the solver character during runtime.
When I run the script system in the editor, everything behaves normally and the cloth is instantiated under the parent character and begins the cloth simulation as expected. However, when I deploy the same script in a Build, the clothing item does not appear in the scene when the I attempt to spawn the clothing item.
I have run several tests with the skinned cloth renderer both included and removed, and it is confirmed that the issue appears when the instanced item includes the obi skinned cloth and renderer.
Can you direct me as to what might be the issue that my prefabs will not appear in compilled builds when instanced at runtime?
Code: public GameObject femModel;
public GameObject thisClothing;
public GameObject[] clothingItem;
private bool clothingOn;
public GameObject dressObject;
// Start is called before the first frame update
void Start()
{
//Load clothing meshes (Assets/Resources/clothing/G8F_NicoleAgent.fbx)
clothingItem[0] = Resources.Load<GameObject>("clothingPrefabs/G8F_NicoleAgent");
clothingItem[1] = Resources.Load<GameObject>("clothingPrefabs/Blender_LoRes_Mini Beach Dress");
clothingItem[2] = Resources.Load<GameObject>("clothingPrefabs/G8F_Nightie_LoRes");
clothingItem[3] = Resources.Load<GameObject>("clothingPrefabs/G8F_Vision_Bikini");
clothingItem[4] = Resources.Load<GameObject>("clothingPrefabs/G8F_JoyUndies");
clothingItem[5] = Resources.Load<GameObject>("clothingPrefabs/G8F_XFashionSweatshirt");
clothingItem[6] = Resources.Load<GameObject>("clothingPrefabs/G8F_CowgirlOutfit");
clothingItem[7] = Resources.Load<GameObject>("clothingPrefabs/G8F_TropicalDayBikini");
clothingItem[8] = Resources.Load<GameObject>("clothingPrefabs/G8F_TropicalDayKimono");
clothingItem[9] = Resources.Load<GameObject>("clothingPrefabs/G8F_DarkNurse");
clothingItem[10] = Resources.Load<GameObject>("clothingPrefabs/G8F_HotTennisOutfit");
clothingItem[11] = Resources.Load<GameObject>("clothingPrefabs/G8F_Pantyhose");
clothingItem[12] = Resources.Load<GameObject>("clothingPrefabs/G8F_DeepNeckMiniDress");
clothingItem[13] = Resources.Load<GameObject>("clothingPrefabs/G8F_BellaLingerie");
clothingItem[14] = Resources.Load<GameObject>("clothingPrefabs/G8F_XFashionBohoChic02");
clothingItem[15] = Resources.Load<GameObject>("clothingPrefabs/G8F_UnderwearG8F");
clothingItem[16] = Resources.Load<GameObject>("clothingPrefabs/G8F_HotDress06");
clothingItem[17] = Resources.Load<GameObject>("clothingPrefabs/G8F_NovemberDress");
clothingItem[18] = Resources.Load<GameObject>("clothingPrefabs/G8F_XFashionCuteLingerie");
clothingItem[19] = Resources.Load<GameObject>("clothingPrefabs/G8F_AnimeLingerieSet02");
clothingItem[20] = Resources.Load<GameObject>("clothingPrefabs/G8F_Pubic");
clothingItem[21] = Resources.Load<GameObject>("clothingPrefabs/G8F_RecreationalOutfit");
clothingItem[22] = Resources.Load<GameObject>("clothingPrefabs/G8F_InfuseOutfit");
clothingItem[23] = Resources.Load<GameObject>("clothingPrefabs/G8F_BikiniCoverup");
}
public void ChangeOutfit(int OutfitVal)
{
Destroy(thisClothing);
thisClothing = Instantiate(clothingItem[OutfitVal]) as GameObject;
thisClothing.transform.parent = femModel.transform;
}
public void SpawnDress(int OutfitVal)
{
thisClothing = Instantiate(dressObject) as GameObject;
thisClothing.transform.parent = femModel.transform;
}
|
|
|
Constant fluid flow |
Posted by: Kyiba - 24-02-2021, 08:22 AM - Forum: Obi Fluid
- Replies (2)
|
 |
Hello!
Is there a way to make fluid move constantly in specific direction or not change its velocity in its life time duration?
|
|
|
calculate total deformation of a softbody |
Posted by: fewerhy - 21-02-2021, 01:58 AM - Forum: Obi Softbody
- Replies (1)
|
 |
Like the title says, any way for calculation of the total deformation of a softbody. The obiRope has calculate-length-function which can estimate the current total length. Does softbody has a function to calculate something like the total potential energy in it?
I would like to do some customized action when the total deformation exceeds certain value.
|
|
|
Exceptions on scale 0 Obi rope |
Posted by: bobby - 19-02-2021, 04:03 PM - Forum: Obi Rope
- Replies (1)
|
 |
Hello Obi,
when I tween the obi solver size to 0, I get a lot of exceptions. is there any way to remove them? I tried setting solver.enabled to false, but then when I deactivate the solver gameobject, i still get exceptions "Assertion failed on expression: 'ValidTRS()'
It doesn't affect the gameplay, it's just that exceptions appear in the console.
|
|
|
get position of particles |
Posted by: orestissar - 19-02-2021, 10:44 AM - Forum: Obi Cloth
- Replies (6)
|
 |
Hello,
I'm trying to retrieve the particle positions of 2 Obi Cloth Objectives.
In my scenario, i just created 2 flags with obi cloth blueprints. The two flags are on the same solver but in different world positions.
Code: ObiCloth cloth1 = Flag1.GetComponent<ObiCloth>();
ObiCloth cloth2 = Flag2.GetComponent<ObiCloth>();
cloth1 is assigned to the 1st Flag and cloth2 to the 2nd. All good so far (or at least i think so.)
However, when i use, for example:
Code: Debug.Log(cloth1.GetParticlePosition(0));
Debug.Log(cloth2.GetParticlePosition(0));
The result is exactly the same Vector3, despite the 2 flags being on different positions
No matter where i put the flags, the result is always the same.
Am i missing something? Any suggestions?
|
|
|
Wind Demo Frames Drop |
Posted by: StudioTatsu - 15-02-2021, 06:37 PM - Forum: Obi Cloth
- Replies (2)
|
 |
In the Wind demo, using Burst Backend, it drops to 1-2 frames per second.
Oni backend works fine. No issues.
Tested in 2020.2.4f1, Obi 6.0
Heavy garbage collection coming from CreateConstraintsBatch.
|
|
|
|