01-04-2021, 12:33 PM (This post was last modified: 01-04-2021, 12:38 PM by josemendez.)
(01-04-2021, 12:26 PM)Henning Wrote: Hi Obi team,
For some compatibity issue I have to move to Unity before 2020 and when I imported Obi Rope 6.0.1 to 2019.4.22 the rope is not rendered correctly.
As shown in the attached image, the rope is only a line and once I click at some other objects, this line disappears.
Does it mean that 2019.4.22 is no longer supported or is there anything I can do to get it to work?
Many thanks in advance!
Obi 6.0.1 is supported in Unity 2019.3 and up, there should be no issues in 2019.4.
The line you’re seeing is the path gizmo. As such, it’s only rendered if the rope object is selected. As for the rope mesh not being rendered, make sure the rope is parented under a solver. Neither simulation nor rendering will be updated if there’s no solver to do so. Also, make sure the rope has one of the rope rendering components: http://obi.virtualmethodstudio.com/tutor...modes.html
(01-04-2021, 12:33 PM)josemendez Wrote: Obi 6.0.1 is supported in Unity 2019.3 and up, there should be no issues in 2019.4.
The line you’re seeing is the path gizmo. It’s only rendered if the rope object is selected. As for the rope mesh not being rendered, make sure the rope is parented under a solver. Neither simulation nor rendering will be updated if there’s no solver to do so.
Let me know if this helps
HI Jose,
Thanks for your quick reply!
I am sure that the rope is under a solver. I am using Ubuntu 18.04 currently, do you think this might be related?
01-04-2021, 12:47 PM (This post was last modified: 01-04-2021, 12:47 PM by josemendez.)
(01-04-2021, 12:40 PM)Henning Wrote: HI Jose,
Thanks for your quick reply!
I am sure that the rope is under a solver. I am using Ubuntu 18.04 currently, do you think this might be related?
Thanks again!
The OS shouldn’t make any difference.
What renderer component are you using? (Extruded renderer, chain renderer, etc)
Is the solver included in a Updater component? (ObiFixedUpdater, ObiLateUpdater, etc)?
(01-04-2021, 12:47 PM)josemendez Wrote: The OS shouldn’t make any difference.
What renderer component are you using? (Extruded renderer, chain renderer, etc)
Is the solver included in a Updater component? (ObiFixedUpdater, ObiLateUpdater, etc)?
The solver includes an ObiFixedUpdater and I am using Extruded renderer. Everything is just default. Thanks.
(01-04-2021, 12:53 PM)Henning Wrote: The solver includes an ObiFixedUpdater and I am using Extruded renderer. Everything is just default. Thanks.
In this case, the rope should definitely be rendered. Some more things:
- Maybe the rope is hidden in the hierarchy? (little eye icon in the left row of the hierarchy, only appears when hovering the mouse over it)
- Does the MeshFilter component in the rope have a mesh assigned? (This is done automatically, but just a sanity check)
01-04-2021, 01:53 PM (This post was last modified: 01-04-2021, 01:53 PM by Henning.)
(01-04-2021, 01:13 PM)josemendez Wrote: In this case, the rope should definitely be rendered. Some more things:
- Maybe the rope is hidden in the hierarchy? (little eye icon in the left row of the hierarchy, only appears when hovering the mouse over it)
- Does the MeshFilter component in the rope have a mesh assigned? (This is done automatically, but just a sanity check)
The rope is not hidden and I just checked that the mesh in MeshFilter is assigned to extrudedMesh.
I thought it should be rendered as well since this is how it worked previously on other versions.
One thing that I observed is that when I hit the play button, I got this error which kept repeating itself:
DllNotFoundException: libOni
Maybe it the part that caused the whole problem? Thanks.
01-04-2021, 02:00 PM (This post was last modified: 01-04-2021, 02:03 PM by josemendez.)
(01-04-2021, 01:53 PM)Henning Wrote: One thing that I observed is that when I hit the play button, I got this error which kept repeating itself:
DllNotFoundException: libOni
Maybe it the part that caused the whole problem? Thanks.
Yes, that means the entire engine library isn’t found by Unity. Nothing (sinulation, rendering) will work.
If you’ve just imported Obi into the project, restarting Unity usually fixes it as Unity can’t hot-load native libraries (see our FAQ: http://obi.virtualmethodstudio.com/faq.html)
Another possibility is that the library just isn’t there for some reason. Check that /Obi/Plugins/x86_64/libOni.so exists.
Note this only applies when using the fallback backend (Oni). Installing the required Burst dependencies will circumvent the use of any native libraries.
(01-04-2021, 02:00 PM)josemendez Wrote: Yes, that means the entire engine library isn’t found by Unity. Nothing (sinulation, rendering) will work.
If you’ve just imported Obi into the project, restarting Unity usually fixes it as Unity can’t hot-load native libraries (see our FAQ: http://obi.virtualmethodstudio.com/faq.html)
Another possibility is that the library just isn’t there for some reason. Check that /Obi/Plugins/x86_64/libOni.so exists.
Great! It should be the culprit then!
I have restarted the project several times so hot-loading shouldn't be the problem. /Obi/Plugins/x86_64/libOni.so exists as well.
Here is the complet error I got when restarting the project.
I've tried to reproduce this in Ubuntu 10.4.3 LTS (Virtual Box, which is where we build the native library for Linux) using Unity 2019.3.1f1 to no avail. It's really strange that Unity can't find the library despite it being there. This sounds like a problem with the Unity installation, the OS, or both.
The console log doesn't really help much, since any call to a function defined in the lib (in this case, OniBackend.CreateSolver) will trigger the DllNotFoundException.