Search Forums

(Advanced Search)

Latest Threads
Broken scripts with updat...
Forum: Obi Rope
Last Post: hariedo
Yesterday, 10:35 AM
» Replies: 0
» Views: 41
Garment explodes on Andro...
Forum: Obi Cloth
Last Post: CptnFabulous
19-12-2024, 07:16 AM
» Replies: 4
» Views: 665
Calculating and Reproduci...
Forum: Obi Fluid
Last Post: ZacharyP
18-12-2024, 05:49 PM
» Replies: 2
» Views: 766
Null Reference, actor not...
Forum: Obi Rope
Last Post: josemendez
13-12-2024, 12:39 PM
» Replies: 1
» Views: 161
Issue with Grasping ObiRo...
Forum: Obi Rope
Last Post: josemendez
12-12-2024, 12:00 PM
» Replies: 5
» Views: 464
Changing extruded rendere...
Forum: Obi Rope
Last Post: aderae
10-12-2024, 07:35 PM
» Replies: 2
» Views: 243
Baking a rope is causing ...
Forum: Obi Rope
Last Post: josemendez
10-12-2024, 11:06 AM
» Replies: 6
» Views: 658
Barrier belt - changing l...
Forum: Obi Rope
Last Post: josemendez
10-12-2024, 10:42 AM
» Replies: 1
» Views: 216
Path editor gizmo's appea...
Forum: Obi Rope
Last Post: josemendez
10-12-2024, 09:50 AM
» Replies: 1
» Views: 213
Problems when using multi...
Forum: Obi Cloth
Last Post: Cat3Man
09-12-2024, 03:17 AM
» Replies: 2
» Views: 291

 
Triste Issues with Obi Cloth Simulation in Unity – "Shirt Exploding"
Posted by: gunmec - 10-07-2024, 02:48 PM - Forum: Obi Cloth - Replies (5)

Hi everyone,

I'm having trouble with the Obi Cloth asset in Unity. I'm trying to fit a 3D shirt model onto a 3D human model, but the shirt behaves unpredictably and appears to explode.

Details:

- Unity Version: 2022.3.3f1
- Obi Cloth Version: 6.5.4

Setup:
- A human model with MeshCollider and ObiCollider
- A shirt model with ObiCloth, ObiClothRenderer, and a correctly assigned blueprint
- ObiSolver with 8 substeps and Max Depenetration set to 10

Problems:

The shirt tears and looks like it's exploding, even when initially not colliding with the body.

Error Message when Generating Blueprint:

NullReferenceException: Object reference not set to an instance of an object
Obi.ObiActorBlueprintEditor.Refresh () (at Assets/Obi/Editor/Common/Blueprints/ObiActorBlueprintEditor.cs:416)
...


(But I can click on Edit and see the particles of the shirt).

I've tried adjusting physical parameters like Stretch Compliance and Bend Compliance, but without success. Does anyone have any idea how I can fix this issue?

Thanks in advance for your help!

Print this item

Corazón How can I extract the fluid rendering mesh?
Posted by: GuoliZheng - 10-07-2024, 02:34 PM - Forum: Obi Fluid - Replies (3)

Hello,
I have recently tried out the new grid-based fluid renderer and it looks fantastic, very captivating. Now, I would like to extract the mesh from a specific frame. There are many interesting things that can be done with this mesh, such as freezing it and setting it as a mesh collider. The possibilities are quite exciting to think about.
So, how should I go about doing this? How can I extract the mesh from a specific frame and turn it into a prefab, etc.?
Thank you!

Print this item

Corazón Version update help
Posted by: GuoliZheng - 10-07-2024, 09:41 AM - Forum: Obi Fluid - Replies (9)

Hello,
Thank you very much for the tremendous effort you put into Obi 7. I have obtained the custom package for this version. However, I have done a lot of work using Obi Fluid 6.5, and I have projects in the older version. How can I quickly update these projects to Obi Fluid 7 to avoid redundant work? When I tried to directly import the installation package and overwrite the existing one, many errors occurred.

Print this item

Estrella Burst Error
Posted by: aallenfx - 08-07-2024, 03:13 PM - Forum: Obi Cloth - Replies (1)

Hey,



I'm getting this import error. In my previous post things worked, then I tried importing a different obi product (obi fluid) and something got corrupted causing errors that won't self-resolve.



https://imgur.com/a/ud40C13





When deleting/re-importing I keep getting this error, for either or both:






Code:
Assets\Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs(74,46): error CS1061: 'UnsafeList<K>' does not contain a definition for 'length' and no accessible extension method 'length' accepting a first argument of type 'UnsafeList<K>' could be found (are you missing a using directive or an assembly reference?)




I'm not sure where it came from since I hadn't changed any core things such as adding assembly asmdef files. I did add new packages like Mathematics/Collections/Burst





Burst is version 1.8.13. Updating to 1.8.16 didn't fix it.






I am using Unity 2022.3.22f1 with Universal Render Pipeline. The error is preventing me from loading the plugin.

Print this item

  iOS DllNotFoundException for empty project testing your examples iOS
Posted by: inacen - 08-07-2024, 02:12 PM - Forum: Obi Softbody - Replies (3)

Just testing out your example scenes in empty iOS project in Unity 2022.3.36f1

DllNotFoundException: libOni assembly:<unknown assembly> type:<unknown type> memberTristenull)
Obi.OniBackend.CreateSolver (Obi.ObiSolver solver, System.Int32 capacity) (at Assets/Obi/Scripts/Common/Backends/Oni/OniBackend.cs:17)
Obi.ObiSolver.Initialize () (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:883)
Obi.ObiSolver.AddActor (Obi.ObiActor actor) (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1148)
Obi.ObiActor.AddToSolver () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:348)
Obi.ObiActor.OnEnable () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:323)

Print this item

  Rope between 2 trackers
Posted by: Xameal - 08-07-2024, 08:44 AM - Forum: Obi Rope - Replies (3)

Hello guys,

I need your help to find out if it's possible to create an Obi Rope between 2 trackers?
The idea is to make an extinguisher with a tracker on the "body" of the extinguisher, and an extinguisher at the end of the extinguisher nozzle with a hose connecting the 2 ends. As shown in the photo.

[Image: WSWX9LFA_Update-1.png]

The problem is that the trackers on Unity (ViveTracker or Meta Quest controllers used as trackers) are always positioned at (0, 0, 0). What's more, the ropes are very sensitive to gravity, collisions etc... And so with the trackers always moving (or almost), the rope has trouble staying in place and does 'tricks'. For example, it always turns like a 'skipping rope' around an axis.

Has anyone tried this before? Do you have any advice for this particular case? I'm sure I'm not the first person to want to create a flexible linked by 2 trackers Sonrisa .

Print this item

  prevent dynamic attachment from disjointing on re-enable
Posted by: rystills - 06-07-2024, 11:34 AM - Forum: Obi Rope - Replies (2)

I have a scene set up similarly to the chain sample scene, with a chain attached statically to the ceiling at one end, and dynamically to a rigidbody at the other. In the editor they appear like:
   

Upon running the game with gravity disabled on the body, the chain is stretched down a bit:
   

If gravity is enabled on the dynamic body, the chain stretches down further, and the body becomes slightly disjointed from the chain:
   

Each time the root object containing the solver, chain, and body is disabled and subsequently reenabled, the body becomes further disjointed by the same amount:
       

This behavior can be replicated by manually disabling / enabling the chain and ball while running the chain sample scene. In my case, I can compensate for the initial disjoint by shifting the body up slightly in the editor, but I'm having trouble preventing the further disjoint on re-enable. Is there a recommended way to prevent/mitigate this behavior?

Print this item

  Resize rope when apply force to attached mass
Posted by: Jaxel - 04-07-2024, 10:39 AM - Forum: Obi Rope - Replies (3)

Hello! I am using ObiRope to simulate fishing rod with reel. 

What i have: 
1. Cursor to resize my rope when the player reel in.
2. Hook. Just rigidbody attached dynamically with ObiParticleAttachment at the end of the rope. Static attachment at the fishing rod top point.

I apply force to fishing hook when player cast or fish move with hook. After that my rope will be stretched and i want to prevent this by giving extra lengthHow can i get the speed of first 1-2 rope particle point and also tension force? How can I compare the current rope tension with the tension at rest? I need these values to calculate resize speed and make more realistic fishing rod behaviour. Or maybe there is other solution for my case?

Thanks for your advices!

Print this item

Exclamación Obi Cloth- Character
Posted by: aallenfx - 03-07-2024, 05:40 PM - Forum: Obi Cloth - Replies (3)

Hey,

I had a question about obi cloth. Is it possible to use it on a character and mask out parts of the character like the head/stomach and have the physics applied to that only?

I briefly saw an example of character meshes with cloth applied to them in the demo vid, but did not see anything like that in the tutorials. I saw the ogre vid for obi softbody but I didn't quite see the effect I was looking for.

I considered obi softbody, but I read it can't do certain physics things like self-collision/double-sided that obi-cloth can do which is why I chose the obi cloth instead. 
Correct me if I'm wrong- but it looks like obi softbody is more of a wiggle/jiggle with a "return to original shape". Some kind of radial vertex offset from what I can see.

What I'm trying to achieve is more of a "ripple" like a baseball hitting a round jelly surface and the force ripples throughout the form. The force ripples from the origin and terminates at the outer edges. The shape would always return to the original, but there would be that ripple factor. And you could control the "firmness" or "impact" of the physics on the object.

It seemed like obi-cloth achieved that more closely, since cloth tends to have that ripple effect (from all the physics simulations I've seen involving cloth). Softbody in general seems to be more "firm/bouncy" and almost like a "spring" rather than some kind of "jelly". I could be wrong though, it's just what I've seen/tested so far.
 
To re-iterate what I'm looking for: 
> Has outward ripple effect on impact (from collision of some kind)
> Can control "firmness", "amplitude/offset", "motion multiplier" etc
> Always returns to original form

Any ideas on how to achieve this masked physics effect, and if obi-cloth supports the ripple on characters? 
Or if I should use obi softbody instead- if that more closely resembles what I'm trying to achieve?

Thanks,

Print this item

  Unity - UNKNOWN_OBJECT_TYPE declared as [WriteOnly]
Posted by: AlexisF - 02-07-2024, 02:40 PM - Forum: Obi Rope - No Replies

Hello
I am currently trying to update a project to Unity 2022.3.25 (from 2021.3.27). The current version of Obi Rope I'm using is the 6.3. 




Updating to Unity 2022 and keeping that version of Obi Rope leads to serious lags when increasing the number of ropes (already unplayable at less than 10). For this problem, I didn't really bother looking for a solution because updating to the latest (6.5.4 at the time I write this) solves it.


The problem is, thousands of errors pop up in the console after updating, and the rope behavior is clearly broken (at least visually).


Code:
System::InvalidOperationException: The UNKNOWN_OBJECT_TYPE has been declared as [WriteOnly] in the job, but you are reading from it.
This Exception was thrown from a job compiled with Burst, which has limited exception support.
#3 scripting_raise_exception(ScriptingExceptionPtr)
#4 AtomicSafetyHandle_CUSTOM_CheckWriteAndThrowNoEarlyOut_Injected(AtomicSafetyHandle const&)
#5 Unity.Jobs.IJobParallelForExtensions.ParallelForJobStruct`1<Obi.ApplyInertialForcesJob>.Execute(ref Obi.ApplyInertialForcesJob jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex) -> void_aaaff58bdce476e006d3a95c8933df9f from UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
#6 1a07ad49f6e8d1fe05692c844fae58d8
#7 ExecuteJob(ManagedJobData*, void (*)(void*, void*, void*, void*, int), int, unsigned char*)
#8 ExecuteJobCopyData(ManagedJobData*, void (*)(void*, void*, void*, void*, int), int)
#9 ForwardJobForEachToManaged(ManagedJobData*, unsigned int)
#10 ujob_execute_job(ujob_control_t*, ujob_lane_t*, ujob_job_t*, ujob_handle_t, unsigned int)
#11 ujob_wait_for(ujob_control_t*, ujob_handle_t, int)
#12 CompleteFenceInternal(JobFence&, WorkStealMode)
#13 ScheduleBatchedScriptingJobsAndComplete(JobFence&, ScriptingExceptionPtr*)
#14 JobHandle_CUSTOM_ScheduleBatchedJobsAndComplete(JobFence&)
#15  (Mono JIT Code) (wrapper managed-to-native) Unity.Jobs.JobHandle:ScheduleBatchedJobsAndComplete (Unity.Jobs.JobHandle&)
#16  (Mono JIT Code) [JobHandle.bindings.cs:27] Unity.Jobs.JobHandle:Complete ()
#17  (Mono JIT Code) [BurstSolverImpl.cs:274] Obi.BurstSolverImpl:ApplyFrame (single,single,single)
#18  (Mono JIT Code) [ObiSolver.cs:1505] Obi.ObiSolver:UpdateTransformFrame (single)
#19  (Mono JIT Code) [ObiSolver.cs:1553] Obi.ObiSolver:BeginStep (single)
#20  (Mono JIT Code) [ObiUpdater.cs:63] Obi.ObiUpdater:BeginStep (single)
#21  (Mono JIT Code) [ObiFixedUpdater.cs:48] Obi.ObiFixedUpdater:FixedUpdate ()
#22  (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
#23 mono_jit_runtime_invoke
#24 do_runtime_invoke
#25 mono_runtime_invoke
#26 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
#27 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
#28 MonoBehaviour::CallMethodIfAvailable(int)
#29 MonoBehaviour::CallUpdateMethod(int)
#30 void BaseBehaviourManager::CommonUpdate<FixedBehaviourManager>()
#31 FixedBehaviourManager::Update()
#32 InitPlayerLoopCallbacks()::FixedUpdateScriptRunBehaviourFixedUpdateRegistrator::Forward()
#33 ExecutePlayerLoop(NativePlayerLoopSystem*)
#34 ExecutePlayerLoop(NativePlayerLoopSystem*)
#35 PlayerLoop()
#36 EditorPlayerLoop::Execute()
#37 PlayerLoopController::InternalUpdateScene(bool, bool)
#38 PlayerLoopController::UpdateSceneIfNeededFromMainLoop()
#39 Application::TickTimer()
#40 -[EditorApplication TickTimer]
#41 __NSFireTimer
#42 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
#43 __CFRunLoopDoTimer
#44 __CFRunLoopDoTimers
#45 __CFRunLoopRun
#46 CFRunLoopRunSpecific
#47 RunCurrentEventLoopInMode
#48 ReceiveNextEventCommon
#49 _BlockUntilNextEventMatchingListInModeWithFilter
#50 _DPSNextEvent
#51 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
#52 -[NSApplication run]
#53 NSApplicationMain
#54 EditorMain(int, char const**)
#55 main
#56 start

Just to clarify, the expected result of the ropes is a perfectly straight line, with no bending at all. In the attached screenshot 1, you can see the rope is bending. And in the second attached screenshot, you can see the rendering of the rope is completely gone but the game still works as if the ropes were here. The flow of all this is, screenshot1 occurs when launching the game, but if I reload the level without quitting Unity, it's when the rendering disappears. This precision is what makes me think the problem is only on the rendering side because when playing in the first case scenario (with bent ropes) the physic behavior feels normal.
To add more "proofs" for that thought, if you play the game (links below), you will notice you can cut ropes. In the attached screenshot 3 you can see trying to cut the rope on the visual doesn't mark it red, while trying to cut between the hand and the head marks it red (screenshot4).

Now, the major points I need to mention are, I have little to no experience with Obi Rope, and this project isn't my own. The person who created this game isn't working with me anymore, quickly looked into this to see if anything was obvious but couldn't find a solution. They told me to make a post here to have a better chance.


The information worth mentioning :
- During my research, I ended up on this post which looks very similar but doesn't have any answer as the OP stopped responding (+ I don't know how to "Disable Burst to get a better stack trace")

- Unity version : 2022.3.25

- Obi Rope version : 6.5.4

- Android and iOS store links if you want to observe the pre-update (and wanted) behavior.


I'm sorry for the small amount of details, I truly don't know what to share to help explain my case and will gladly add more precision if needed.



Attached Files Thumbnail(s)
               
Print this item