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

Pages: [1]
1
Support / Rescaling specific textures to the atlas
« on: April 28, 2015, 12:13:41 pm »
Hi,
We're optimizing our atlases by lowering the resolution of some textures (things that look alright half or quarter scaled down). I noticed that there's a way to rescale the entire atlas, but I couldn't find a way to scale specific textures. There's a scale option in the atlas editor but it looks like it's not affecting the actual texture in the atlas just the logical representation afterwards inside the game. We want to avoid scaling the original textures in case we later on decide to re-optimize differently.

I wonder if I'm missing something, if not then I think this feature can be very beneficial to optimization.

Thanks!

2
Support / Re: Bug: Sorting Layer changes automatically
« on: February 12, 2015, 08:44:44 am »
Unity 4.6.1p4 (I can't upgrade to 4.6.2 at the moment due to some bugs in that release)
2D Toolkit 2.5.0

This has been happening when I was on Unity 4.6.1 and 4.6.2 as well

3
Support / Bug: Sorting Layer changes automatically
« on: February 11, 2015, 09:08:02 am »
Hi,
I started using Unity sorting layers in our game and for technical reasons I needed one layer below the "Default" layer.
Ever since I did that every time I click on a game object in the editor with a sprite attached it reverts automatically to the lowest layer (the one below "Default"). Unless I set it to the correct layer through code I am unable to select the layer I need.

I believe this is a bug...

Please help :)

4
Support / Re: Perspective camera increases draw calls
« on: July 07, 2013, 07:21:29 pm »
That seems to have fixed it! Thanks!
Would overlapping have any effect on objects that are of the same sprite collection?

5
Support / Perspective camera increases draw calls
« on: July 07, 2013, 06:55:28 pm »
Hi,
I'm trying to understand how to save draw calls effectively with tk2d while using a perspective camera, however I'm running into some unexpected behavior.

Here's what I tried:
- I set up a simple scene with 5 objects with 5 separate sprite collections
- The camera is a regular Unity camera and is set to perspective mode
- When the scene starts I get 5 draw calls (which is expected)
- When I duplicate some of the objects they sometimes get batched, sometimes they don't. Usually, they don't. Batching seems to happen at complete random locations  in the scene. It looks as though the closer the objects to the camera's center the more they get batched. The farther they are the less. This is regardless to any overlapping (I'm making sure nothing overlaps while testing this).
- When I switch to orthographic camera batching works as expected (I get 5 draw calls constantly).

This is with Unity 4.1.5f and tk2d 2.0. All sprites are animated using tk2dSpriteAnimator

Can anyone please help to explain what practices I should use to effectively batch my objects in a perspective camera? I'm a bit confused here and not sure where to start.

Thank you!
Yaniv

Pages: [1]