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 - fezon aimed

Pages: [1]
1
Support / Re: UIDepth Mask not working on Samsung Galaxy Tab 2 10.1
« on: April 02, 2014, 12:41:55 pm »
Thanx for reply..
Yes depth mask dont have any color. It will transparent the area where depth mask will be attached.

2
Support / UIDepth Mask not working on Samsung Galaxy Tab 2 10.1
« on: April 02, 2014, 08:00:31 am »
Hi,
I am using depth mask with the shader given below.

Shader "MaskedTexture"
{
   Properties
   {
      _MainTex ("Base (RGB)", 2D) = "white" {}
      _Mask ("Culling Mask", 2D) = "white" {}
      _Cutoff ("Alpha cutoff", Range (0,1)) = 0.1
   }
   SubShader
   {
      Tags {"Queue"="Transparent"}
      Lighting Off
      ZWrite On
      Blend SrcAlpha OneMinusSrcAlpha
      AlphaTest GEqual [_Cutoff]
     ColorMask 0
      Pass
      {
         SetTexture [_Mask] {combine texture}
         SetTexture [_MainTex] {combine texture, previous}
      }
   }
}

Its working perfect on Samsung Galaxy S2 , Samsung Galaxy S3, Google Nexus Tab but its not working on Samsung Galaxy Tab 2 10.1. Its just giving me white image as a mask. I am using a .png image as texture for masking. Kindly help me to resolve this issue. Thanx in Advance.

Regards,
Fezon

3
Support / Multiresolution problem with scroll demo project
« on: February 11, 2014, 01:36:38 pm »
I am trying to implement demo scroll given in tk2d root and facing multiresolution problem. Scroll background is scaled down and not fit in according to screen size . What can i do to make it fit according to the screen . I am implementing it for android. Need help.
Thank You

4
Support / Sprite Painting!
« on: February 06, 2014, 10:38:01 am »
Hi Unikron,

I want to paint a tk2dSprite in a game..  Kindly help me if there is any demo project, tutorial or help available related to tk2dSprite painting.
Thanx in advance for help!

5
Support / Re: Create and Edit tk2dSprite at Runtime!
« on: February 04, 2014, 10:36:55 am »
GOt it.. And Thanx Again  ;)

6
Support / Re: Create and Edit tk2dSprite at Runtime!
« on: February 04, 2014, 10:19:02 am »
Hi UnikronSoftware,

I have implemented sprite code as you told. It worked fine for me..But now i want to add more then one sprites with same collection. when i tried to add more then one sprite as shown below in code its just shows me jar_2. It creates both sprite in Background object. I can see in inspector view jar_1 and jar_2 are assigned to sprite and sprite_2 respectively but sorting order for both is 7 and in game view and scene view i can just see jar_2. I think jar_2 is overriding jar_1. Please help to get expected results...Thanx in advance...

//Implemented Code

 GameObject flavoursprite;

 void Start () {
  flavoursprite = GameObject.Find("Background");
  tk2dSprite sprite = flavoursprite.AddComponent<tk2dSprite>();
  sprite.Collection = Resources.Load("Pouring/DialogCollection", typeof(tk2dSpriteCollectionData)) as tk2dSpriteCollectionData;
  sprite.spriteId = sprite.GetSpriteIdByName("jar_1");
  sprite.SortingOrder=6;
  tk2dSprite sprite_2 = flavoursprite.AddComponent<tk2dSprite>();
  sprite_2.Collection = Resources.Load("Pouring/DialogCollection", typeof(tk2dSpriteCollectionData)) as tk2dSpriteCollectionData;
  sprite_2.spriteId = sprite.GetSpriteIdByName("jar_2");
  sprite_2.SortingOrder=7;
}

7
Support / Re: Create and Edit tk2dSprite at Runtime!
« on: February 03, 2014, 11:58:49 am »
Thankx for help! Done....

8
Support / Re: Create and Edit tk2dSprite at Runtime!
« on: February 03, 2014, 10:34:41 am »
Thanks for the help, Can you provide some C# script examples for tk2dSprite creation from resourses?

Fezon...

9
Support / Create and Edit tk2dSprite at Runtime!
« on: January 31, 2014, 07:00:28 am »
Hi, I am pretty new to Unity and tk2d. I have a sprite collection named "flavorCollection" of some sort of juice flavors. How I can create a tk2dsprite at runtime from flavorCollection? If I have multiple tk2dSprites in an empty game object how i can access one of them programmatically to change image from flavorCollection if i have my script on empty game object?
Thanx in advance for help! :)

Pages: [1]