Hello Guest

Author Topic: Unity 4.6 tk2d 2.5 - IsMatrixValid error  (Read 13317 times)

Supagoat

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Unity 4.6 tk2d 2.5 - IsMatrixValid error
« on: November 30, 2014, 03:52:52 pm »
I see this error in the console when I start up unity 4.6.  I can clear it away and it doesn't stop me from running my game and it doesn't appear to come back.

This is on a project that was originally created back in Unity 3.5 and updated, and likewise started with tk2d 1.x and upgraded.  I just created a new project in Unity 4.6 and included tk2d and it's not showing that error.

IsMatrixValid (matrix)
UnityEngine.Camera:set_projectionMatrix(Matrix4x4)
tk2dCamera:UpdateCameraMatrix() (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCamera.cs:801)
tk2dCamera:OnEnable() (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCamera.cs:275)
« Last Edit: November 30, 2014, 04:30:06 pm by Supagoat »

Supagoat

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #1 on: December 01, 2014, 12:35:28 am »
Update: I tried starting unity with a different project opened initially and no error, then I switched to the project that was giving me the error.... No error.  I just reimported all scripts and then restarted unity and no error.

So I guess the bottom line is: Not able to reproduce.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #2 on: December 02, 2014, 09:34:22 am »
It might be a temporary thing when the game view viewport is incorrect for a few seconds. If something like this comes up again, its safe to ignore - unless it keeps spitting it out constantly.

kreso22

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #3 on: December 02, 2014, 08:12:15 pm »
This happens to me every time I start my project, since Unity 4.6

Also, editor view is not rendered correctly until I hit play (and stop). By that I mean, some tiled sprite elements are not rendered.


P.S. unikron - can you see the attachments I posted? Because it says they are attached but I don't see them.
« Last Edit: December 02, 2014, 08:15:14 pm by kreso22 »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #4 on: December 04, 2014, 10:02:24 am »
Is your game window visible there, or is it a hidden tab?

kreso22

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #5 on: December 06, 2014, 09:05:34 am »
It is a detached window (visible).

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #6 on: December 06, 2014, 02:04:59 pm »
Can you post a repro for this in the private support forum please, I cant seem to get it to do that.

kreso22

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #7 on: December 08, 2014, 07:00:43 am »
Is it OK if I email you the Unity project?

I am not sure how to go to the private support forum, can you tell me how?

Thanks,
Kreso

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #8 on: December 09, 2014, 10:21:40 am »
Hi,

Register your copy of tk2d as described here (http://2dtoolkit.com/forum/index.php/topic,34.0.html) for access to the private support forum.

kreso22

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #9 on: December 10, 2014, 08:12:38 pm »
Hi,
OK, I send the request with my invoice number, I understand someone will confirm this by hand..

I don't want to post my project in the forums for people to download freely. So, I sent my project via email (wetransfer) because it is a rather small project and I experience both my problems there (described in the email).

I got notification that someone @ unikron received the email and downloaded the file. Perhaps we can continue in that email thread until we reach a solution?

Thanks!
Kreso

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #10 on: December 12, 2014, 03:19:30 pm »
Yes we'll do that, I've had a brief look and I dont get the IsMatrixValid error, but the other issue is completely different. Will continue via email over the weekend hopefully.

zblack

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #11 on: June 18, 2015, 09:51:25 pm »
I am getting this error now, too, in a brand new project with just tk2d added. Was a solution to this found?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« Reply #12 on: June 18, 2015, 11:30:40 pm »
It was a while ago, but I think in the last issue it was caused by the game window being invisible for a frame. The message is safe to ignore, unless it happens every frame (it should only trigger once or twice at on startup).