Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kreso22

Pages: [1]
1
Support / Re: Collider Issue in 4.3
« on: March 02, 2015, 05:14:10 am »
This is happening to me too.
I can't make a repro - but I did a fix that works for me. Just attached this script to object containing sprite/colliders

[ExecuteInEditMode]
public class FixBugWPolygonColliders : MonoBehaviour {
void Start () {
      //remove all collider duplicates (tk2d bug)
      PolygonCollider2D[] colls = gameObject.GetComponents<PolygonCollider2D>();
      bool originalCol = false;
      foreach (PolygonCollider2D col in colls)
      {
         if (!originalCol)
         {
            originalCol = true;
         } else
         {
            #if UNITY_EDITOR
            DestroyImmediate (col);
            #else
            Destroy (col);
            #endif
         }
      }
   
   }
}

2
Support / Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« 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

3
Support / Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« 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

4
Support / Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« on: December 06, 2014, 09:05:34 am »
It is a detached window (visible).

5
Support / Re: Unity 4.6 tk2d 2.5 - IsMatrixValid error
« 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.

6
Support / Re: Self illuminated, transparent shader
« on: December 01, 2014, 04:52:08 am »
Thanks a lot for the suggestion. I tried combining all the blend modes and didn't succeed in achieving the effect.
Then I took a step back .. basically I have a greyscale sprite that I want to tint with color. So I tried making it brighter in grayscale - and it worked.
I know this sounds obvious and I should have done that right away... but I did it now.

Thanks a for your help!

Kreso

7
Support / Self illuminated, transparent shader
« on: November 30, 2014, 04:51:35 am »
Hi,

First to say I spent 2 days trying to create my own solution with no success. What I gained from these 2 days is some knowledge of shaders, and a huge appreciation for what 2Dtk can do and does (as I was browsing source code for reference).

For my 2D, unlit game I would like to change shade of color for the sprite. I can change sprite's color with 2Dtk editor utility and still stay at 1 draw call, which is great. But the sprite will look too dark.

Is there any way to achieve effect like Self-iluminated/Diffuse shader? The effect that I get by just applying Main Color parameter is marvelous. Unfortunately shader doesn't work with transparency. And ideally keep at 1 draw call (edit material tint via script).

I am thinking only change current shader (tk2d/Blend Vertex Color) and somehow multiply values or something, but I don't understand shader rules.

Any help is appreciated.



Thank you in advance,
Kreso

8
Support / Re: tk2d Camera 2.3 not showing lighting properly
« on: October 07, 2014, 11:18:52 pm »
This is turning out to be an issue for me.
Could you confirm latest version of Unity (or any version of Unity) that has it working?

Thanks a bunch,
Kreso

9
Support / Re: tk2d Camera 2.3 not showing lighting properly
« on: October 02, 2014, 12:55:09 am »
This seems to be active again. Is there no way around it? Other than setting up another camera I mean (having perspective camera is not an option).

Thanks,
Kreso

edit (I'm using Unity 4.5.4f1 pro)

10
Support / Re: Load/Change texture on Sprite.
« on: August 01, 2014, 08:36:50 pm »
I was hoping that it could be done via 'string' method argument, since in inspector I can chose sprite collection by name, from dropdown (again I assumed it's stored somewhere where I could potentially use it).
OK, I understand. Perhaps in  a future version. Thank you for your prompt reply!

11
Support / Re: Load/Change texture on Sprite.
« on: August 01, 2014, 06:52:56 am »
I was wondering is it possible just to change collection if I know it's name (string)?
I need to change collection and chose another sprite from this new collection.
SetSprite wants CollectionData which I don't know how to read (except dragging & dropping in inspector) but I want to avoid inspector if possible. Is it possible?

Thank you,
Kreso

Pages: [1]