x


Need A workaround for two Unity bugs

I get two errors whenever I import a rigged model from Blender:

!IsFinite(outDistanceAlongView) UnityEditor.Handles:Internal_DrawCamera(Camera, Int32) UnityEditor.Handles:Internal_DrawCamera(Camera, Int32) UnityEditor.Handles:DrawCamera(Rect, Camera, Int32) UnityEditor.SceneView:OnGUI() System.Reflection.MonoMethod:InternalInvoke(Object, Object[]) System.Reflection.MonoMethod:InternalInvoke(Object, Object[]) System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) System.Reflection.MethodBase:Invoke(Object, Object[]) UnityEditor.HostView:Invoke(String) UnityEditor.DockArea:OnGUI()

[....\Runtime\Camera\RetainedRenderqueue.cpp line 335]

!slot->GetLocalAABB().IsValid() UnityEditor.Handles:Internal_DrawCamera(Camera, Int32) UnityEditor.Handles:Internal_DrawCamera(Camera, Int32) UnityEditor.Handles:DrawCamera(Rect, Camera, Int32) UnityEditor.SceneView:OnGUI() System.Reflection.MonoMethod:InternalInvoke(Object, Object[]) System.Reflection.MonoMethod:InternalInvoke(Object, Object[]) System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) System.Reflection.MethodBase:Invoke(Object, Object[]) UnityEditor.HostView:Invoke(String) UnityEditor.DockArea:OnGUI()

[....\Runtime\Camera\Culler.cpp line 60]

Yes, I've sent a bug report, but this doesn't directly alleviate the problem. I still need a way to keep those two errors from popping up, as it's literally slicing my game's FPS in half!

more ▼

asked Jul 21 '10 at 11:27 PM

cyangamer 1 gravatar image

cyangamer 1
40 6 6 13

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

These errors generally mean that one of the objects don't have valid bounds. While I agree that this is definitely a bug we should fixed (if we haven't in 3.0), to work around it for now, you should try finding out which object is causing it. Make a copy of the scene and take objects out until you no longer see the object. In the end you will probably find a mesh which has either zero vertices, or which has vertices with invalid numbers in it. Try to edit those meshes in Blender to see if you can make it go away.

more ▼

answered Jul 23 '10 at 09:42 AM

jonas echterhoff gravatar image

jonas echterhoff ♦♦
9.8k 7 23 104

Well, I did narrow down the problem to one mesh. Now I just need to figure out how to fix it. Still, a solution's a solution, so I'll approve this one and give an upvote!

Jul 23 '10 at 08:01 PM cyangamer 1
(comments are locked)
10|3000 characters needed characters left

Theres a similar bug with particle which you can read about here.

From reading through what you're doing and the actual error messages, it could be that the scale of your scene is going beyond the regular bounds of the scene, or it could be too small for Unity to deal with. Check your scale settings, and make sure they are something reasonable compared with other objects you have successfully imported from Blender.

more ▼

answered Jul 22 '10 at 03:23 AM

Murcho gravatar image

Murcho
2.7k 12 23 53

I came across that question while searching for a workaround. They described what was happening, but unfortunately no working solutions have been provided at Unity Answers yet. I can be a little more patient if this is fixed for Unity 3.0, but given my past experience with game engines, some bugs simply never get around to being fixed so I can't solely depend on the Unity Team. I need a way to keep those errors from lowering my game's performance.

Jul 22 '10 at 08:11 AM cyangamer 1
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1677
x728
x510
x17
x3

asked: Jul 21 '10 at 11:27 PM

Seen: 3107 times

Last Updated: Jul 23 '10 at 10:03 PM