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 - DahongPunyal

Pages: [1]
1
Support / Camera Settings for iPhone + iPad Project
« on: February 14, 2014, 02:25:50 am »
I am going to support my iPad app for iPhone. Is it automatic? Or I have to create different cameras for each platform?

Thanks!

2
Support / Re: Ways to Batch tk2dSprites
« on: February 11, 2014, 09:52:20 am »
Oh, thank you! :D

So, I can't add sprites, I'll do it manually then. Thanks!

3
Support / Ways to Batch tk2dSprites
« on: February 11, 2014, 02:17:40 am »
I am creating a GameObject and adding many tk2dSprites as its children programmatically. I want to add tk2dStaticSpriteBatcher to the parent GameObject to batch its children.

Do you have any idea of how can I manage to do it by code? Thanks!

4
Support / Re: tk2dSprite Change Shader Programatically
« on: February 05, 2014, 01:17:11 am »
Meaning, I have to import tk2d's shaders to the resources folder for it to work? Thanks!

5
Support / Re: Spotlight Effect Tutorial
« on: February 05, 2014, 01:16:05 am »
Thank you!

The problem was just with the position and rotation. We can really close this thread now!

Thanks a lot!

6
Support / Re: tk2dSprite Change Shader Programatically
« on: February 04, 2014, 10:33:04 am »
Sorry, I thought we can close this thread now. But, I tried to load it on iPad Mini and it didn't work. All I can see are pink assets. :(

7
Support / Re: Spotlight Effect Tutorial
« on: February 04, 2014, 10:31:57 am »
Oh, another thing.

I tried to used tk2d/LitBlendVertexColor, normals selected, and the lighting doesn't work.

8
Support / Re: tk2dSprite Change Shader Programatically
« on: February 04, 2014, 02:48:46 am »
I found a way to do this. I'm changing the sprite's renderer shader to other shader and it works fine. Thanks! We can close this now.

9
Support / Re: tk2dSprite Change Shader Programatically
« on: February 04, 2014, 01:39:51 am »
Thanks for the reply.

Can you give me a code snippet for that?

I can't find the SpriteChanged event, maybe because I'm using an older version of tk2d?

10
Support / Re: Spotlight Effect Tutorial
« on: February 04, 2014, 01:17:46 am »
I works now. I changed the shader from lit to diffuse :D.

Thank you!

11
Support / tk2dSprite Change Shader Programatically
« on: February 03, 2014, 03:53:59 am »
Is it possible for a tk2dSprite to change its shader at runtime?

Thanks!

12
Support / Spotlight Effect Tutorial
« on: February 03, 2014, 02:23:03 am »
Is there any tutorial available to create a spotlight effect (almost similar to this post http://2dtoolkit.com/forum/index.php/topic,3118.msg15314.html#msg15314) using tk2d?

I am using Orthographic camera (normal one). I also tried to switch the shader to lit one, and the collections' Normal Generation is set to Normals Only.



When I use the lit shaders, the sprites darken but when I tried to apply a spotlight, nothing happens. Can I have any idea of how to do it, if there's no tutorial available or any other technique to achieve this? Also, I am new to Unity3D.

Thanks!

 

13
Support / Re: tk2dSprite Masking
« on: January 25, 2014, 01:54:32 am »
Thanks! :D

Closed

14
Support / Re: tk2dSprite Masking
« on: January 23, 2014, 12:15:24 pm »
Thanks!

Can you give a link for a good tutorial of creating custom shader? I am new to Unity3D and it will be my first time to write one. :D

15
Support / tk2dSprite Masking
« on: January 23, 2014, 01:43:43 am »
I am new to tk2d (also in Unity) and I want to know if it possible to create a game object for background (tk2dSprite attached), then create another game object on top of it (also attached with tk2dSprite). The second game object is for overlay and I want to add a clipping mask to it (a circle mask, so it will look like a hole). And then I will add another game object for my main sprite.

Also, I want the mask animate or change its size for a duration. Like, from small to big and vice versa. Is it possible to achieve this using tk2d or I need other library to do it?

Here's what I want to do:


Thanks!

Pages: [1]