2D Toolkit Forum

2D Toolkit => Support => Topic started by: Supagoat on November 30, 2014, 03:52:52 pm

Title: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: Supagoat 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)
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: Supagoat 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.
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: unikronsoftware 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.
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: kreso22 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.
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: unikronsoftware on December 04, 2014, 10:02:24 am
Is your game window visible there, or is it a hidden tab?
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: kreso22 on December 06, 2014, 09:05:34 am
It is a detached window (visible).
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: unikronsoftware 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.
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: kreso22 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
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: unikronsoftware 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.
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: kreso22 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
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: unikronsoftware 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.
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: zblack 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?
Title: Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
Post by: unikronsoftware 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).