Search Unity

!IsNormalized

Discussion in 'Editor & General Support' started by boxy, Aug 22, 2005.

  1. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    Hi Guys
    I'm getting this console error and I don't know how to get rid of it :) Would someone be so kind as to help a noob out?
    Message:
    !IsNormalized (normal)

    sub message: (Actually there are 2 errors, line: 49 and line: 77)
    Assert in file: Plane.h at line: 49

    I can't think I've done much different except I'm regularly replacing an imported fbx scene as it is updated in Cinema4D
    Cheers
    Boxy
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    You could report a bug with the project folder attached.

    The error alone unfortunately doesn't say enough to fix the problem alone from that.
     
  3. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    Thanks Joachim
    Its qute a big folder, probably about 80mb zipped. The error doesn't seem to prevent me from building the level so I'll keep an eye on it and submit it when I get chance.
    Cheers
    Boxy
     
  4. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Thanks. Just send it to me any time you like.
     
  5. slipstream

    slipstream

    Joined:
    May 4, 2008
    Posts:
    21
    I just had the same error on the latest 2.0.2 release. It appears that the culprit is the Spotlight object which does not like range=0. Changing it to 1 fixes the problem.

    Hope this helps!

    ico
     
  6. geoff.w.brown

    geoff.w.brown

    Joined:
    Nov 28, 2005
    Posts:
    11
    Hi Loachim,

    I recently got the iphone extension for unity. The first thing i did was decide to convert the the Lerpz 3D example so that it can run on iphone.

    The first time i build it it had heaps of errors. I fixed them by using #pragma strict. And explicitly creating variables of the correct type, instead if just inferring the type from the \"Get\" functions.

    Like this:

    function Start ()
    {
    var foo : MyScript = GetComponent(MyScript);
    foo.DoSomething();
    }


    Now everything compiles fine and runs in the preview window on my desktop.

    However i get the following assertion:

    !IsNormalized (normal)
    Assert in file: /Users/joe/iphone-clean/../Runtime/Geomertry/Plane.h at line: 67

    The console is bombarded with this message all the time when the app is running.

    On my desktop it still runs, when i deploy it to my iTouch it gets to the menu, then after hitting play it takes ages and just resets the iphone. ( maybe running out of memory ? )

    I have tried to minimize geometry by removing allot of the level geometry leaving on Lerpz on his 1 platform. Reduced overall filesize by heaps, but still crashes the iphone.

    Any ideas ?

    Kind Regards
    Geoff Brown
     

    Attached Files:

  7. phoen

    phoen

    Joined:
    Oct 25, 2005
    Posts:
    94
    i get exactly the same error when i use a projector component in an iphone scene.
     
  8. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    We are aware of this issue in the iPhone version of Unity. It will be fixed with the next iPhone release.
     
  9. Zender

    Zender

    Joined:
    Jan 3, 2010
    Posts:
    11
    It's easy, your camera near clip is too near. Mine was at 0,0001. I changed it for 0,01 and it stopped spaaming !IsNormalised(normal) in console.

    If it doesn't work look for other 4 decimal value near 0 in lights or cameras.

    - Zender
     
  10. nick2049

    nick2049

    Joined:
    Nov 9, 2009
    Posts:
    4
    I got the same error when adding a SpotLight to a GameObject. This code generated the error:
    Code (csharp):
    1.  
    2. GameObject spotLight = new GameObject("spotLight");
    3. spotLight.AddComponent<Light>();
    4. spotLight.light.type = LightType.Spot;
    5. spotLight.light.range = 1000;
    6.  
    But this did not:
    Code (csharp):
    1.  
    2. GameObject spotLight = new GameObject("spotLight");
    3. spotLight.AddComponent<Light>();
    4. spotLight.light.range = 1000;
    5. spotLight.light.type = LightType.Spot;
    6.  
     
  11. Temponautix

    Temponautix

    Joined:
    Nov 16, 2010
    Posts:
    7
    I'm still learning, and am running into this as well.

    I have a terrain, a camera, two spotlights following two wheels rolling over the terrain.
    Immediately, even when setting things in the editor and not just when pressing the test play button, I get dozens of messages saying:
    !IsNormalized( Normal )
    and the log claims an assertion:
    (Filename: /Applications/buildAgent/work/71ca6fec1b41cc30/Projects/../Runtime/Geometry/Plane.h Line: 71)

    I presume some vector ends up being zero somewhere where it shouldn't, but how? What? I tried everything. When I even so much as touch a camera or light, this comes up. What could it be?
     
  12. Temponautix

    Temponautix

    Joined:
    Nov 16, 2010
    Posts:
    7
    ...oh, and I also get this:
    "!IsNormalized (normal)
    UnityEditor.DockArea:OnGUI()"

    and then the same assert as above, claiming there is an error "in file"?!
     
  13. BrUnO-XaVIeR

    BrUnO-XaVIeR

    Joined:
    Dec 6, 2010
    Posts:
    1,687
    Funny how this bug with spotlights still not fixed.