Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Severe bug with some types of Prefabs/meshes
#11
(04-22-2022, 02:14 PM)_Aka_ Wrote: Ok, managed to reproduce this one, and found a work around. I still need to look deeper into this and make sure this fix  is solid, but if you are in a hurry, here it is:
In CGData.cs, go to line 2004, and replace this line:
private static readonly Material NullMaterialDictionaryKey = new Material(Shader.Find("Diffuse"));
with this one
private static readonly Material NullMaterialDictionaryKey = new Material(Shader.Find("Standard"));
Will keep you updated

This one was unrelated to your problem. It is an issue I discovered trying to reproduce yours. Basically, in my code I need to create a default material. Using the Diffuse shader works fine as long as it is included in the build. In all my previous builds, this shader was included (because used in the build scenes). While trying to reproduce your issue, I happened to make a build without that material (that I thought was by default included by Unity in all builds), thus having an exception raised by the Shader.Find method.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#12
Is there anything else that I haven't answered to regarding this thread?
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#13
Hi,

For Issue A:
I suspected that Unity was not generating tangents in runtime because I had changed all the tangent settings I will raise a bug report with Unity.
(I do not have the original mesh to re export the fbx so I guess I'll import it into blender and re-export it)

However, I want to make mention, if I had a standard cube into the gameobject then it works, then the generation of tangents seems to succeed which
is very worrisome because I don't know why it works when a cube is added.

For Issue B:

Looking forward to the fix.

I don't think you've missed anything regarding this thread!

Thank you
Reply
#14
(04-23-2022, 03:51 AM)studentloan Wrote: However, I want to make mention, if I had a standard cube into the gameobject then it works, then the generation of tangents seems to succeed which is very worrisome because I don't know why it works when a cube is added.


That's probably because the cube has tangents, and the mesh combination step in the deform mesh module will auto-compute the tangents if it sees that tangents are partially present. Regardless, my fix should make this irrelevant.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#15
(04-23-2022, 01:42 PM)_Aka_ Wrote:
(04-23-2022, 03:51 AM)studentloan Wrote: However, I want to make mention, if I had a standard cube into the gameobject then it works, then the generation of tangents seems to succeed which is very worrisome because I don't know why it works when a cube is added.


That's probably because the cube has tangents, and the mesh combination step in the deform mesh module will auto-compute the tangents if it sees that tangents are partially present. Regardless, my fix should make this irrelevant.

I have filed a bug report with Unity about the issue of tangents not correctly being generated at runtime but works in the editor for some models. I hope some resolution is obtained.
Reply
#16
I hope too
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#17
Thumbs Up 
Hello admin,

I have filed a bug report about this tangents not generating on when an executable build is created with Unity and a Unity QA dev has successfully reproduced the issue and created
an issue for the same in the public issue tracker.

https://issuetracker.unity3d.com/issues/...tor-in-use

Please vote on this issue. Thank you!

Here's their email
Quote:Hi,

We successfully reproduced this issue. It will be possible to follow the progress and a chosen resolution in our public Issue Tracker once the report has been processed (link will become reachable after an hour):
https://issuetracker.unity3d.com/product...id/1422747

We highly appreciate your contribution. If you have further questions, please feel free to contact us.

Thanks,
Danielius
Customer QA Team
Reply
#18
Thanks for updating us. Voted.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Maintaining vertical orientation of extruded meshes rickgplus 3 2,221 01-24-2025, 09:24 PM
Last Post: _Aka_
  Deforming prefabs with LODs along a spine LiveWire 7 4,027 01-22-2025, 10:59 PM
Last Post: rickgplus
  CurvyConnections inside prefabs CoolUser 9 8,598 10-02-2024, 06:41 PM
Last Post: _Aka_
  Tunnel Colliders and Looping Meshes Petusarian 5 2,804 07-17-2024, 02:36 PM
Last Post: _Aka_

Forum Jump: