-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual and Collision Mesh Mismatching after re-opening Unity Project #202
Comments
@matteomeneghetti Turning the object into a prefab eliminates this issue? How do you go about doing that? |
@cd25643 Sorry, I explained myself way too poorly. I meant to say that turning the object into a prefab immediately breaks it (just as reopening the project). |
No worries @matteomeneghetti. Only update I have on this issue... is I have found that if mesh files are too large, that is what can cause this issue. I went back and defeatured my URDF meshes extensively, and the issue seems to have gone away... |
May I ask how you did it? Can you elaborate on how to reduce mesh? Do you operate in the URDF file? |
Bug Description:
I originally created a URDF using Solidworks with several joints/links, exported both meshes and URDF properties from Solidworks. I then used the URDF importer tool to import the URDF+meshes that I created in Solidworks into Unity. Everything worked as intended. After closing Unity and revisiting a few days later, I now have a weird visual bug/glitch where the visual mesh and the collision mesh do not match. It looks like there are parts missing. I have attatched two images of the same view. The first image is the collision mesh (which still looks correct). The second image is the visual mesh (which should look very similar to the collision mesh). Like I mentioned, originally this looked perfectly normal when I first imported the URDF+meshes into Unity. Additionally, I verified the meshes(stl's) in the folder of the URDF itself; the visual mesh is correct there. Not sure what caused this, as I did not change anything in the Unity project. The only difference was I closed the project and re-opened it a few days later, and this glitch occurred. Only other piece of info worth noting, the meshes are quite large (file size). The link (base_link in this case) that is having issues is around 120mb. Not sure if that has something to do with the issue...
Steps to Reproduce the Bug:
Screenshots:
![ex1](https://user-images.githubusercontent.com/100865605/169152866-d0f1c92b-d272-40d2-97f2-9feb8568a21a.png)
![ex2](https://user-images.githubusercontent.com/100865605/169152891-0ec6d18d-0748-4177-b9e1-0bfa50948de3.png)
Image_ex1 shows the collision mesh of the URDF link having the issue. As I mentioned above, this is displaying correctly.
Image_ex2 shows the visual mesh of the URDF link having the issue. This should look nearly the same as the collision mesh, and this is the piece that is not rendering in Unity as intended. Even opening the mesh (stl) externally shows a proper mesh; it's only having a issue displaying in Unity.
Environment Info:
The text was updated successfully, but these errors were encountered: