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

Pages: [1]
1
Support / Does tk2dCamera Anchor work with unity's camera ?
« on: January 24, 2014, 07:40:34 am »
I am having severe problems by playing with camera viewports.

If I use tk2dcamera and change its viewport, it rescales all the objects as shown here.

http://2dtoolkit.com/forum/index.php?topic=2442.0

If I use unity camera, the anchor does not work with it, if change view port.

What should I do ?
Please Help!

2
Support / Re: Splitscreen with tk2dCamera using Normalized View Port Rect
« on: January 24, 2014, 07:19:35 am »
I am facing the same problem.
I am using 2 to 6 split screens.

Is it solved yet ?

3
I am using more than one camera in a game, each camera has different viewport.

All cameras viewports are set in such a way that they all can render certain objects. at the same point.

Now, while changing the viewport rect of a camera, sometimes the objects rendered by the camera are re-sized(Meaning : Shown smaller or larger on the screen, not actually re-sized).

When the viewport width is changed, the size remains the same. but changing the viewport height affects the size.

All camera's are orthographic. What should I do so that the size of the objects shown remains the same irrespective of the camera viewport ?

Thanks.

Case 1 : This does not change the size.

gameCamera1.rect = new Rect(0,0,0.5f,1);
gameCamera2.rect = new Rect(0.5f,0,0.5f,1);
Case 2 : This does change the size.

gameCamera1.rect = new Rect(0,0,1,0.5f);
gameCamera2.rect = new Rect(0,0.5f,1,0.5f);

You can see these images. To get the idea more clear.! In Image "1" the size is perfect, in Image "2" the objects have shrink.


How can I use tk2dCamera to achieve this ?

Pages: [1]