2D Toolkit Forum

2D Toolkit => Support => Topic started by: gateman on April 16, 2013, 02:35:34 pm

Title: 2D The aspect fixed method in tool kit.
Post by: gateman on April 16, 2013, 02:35:34 pm
 :-[ :-[

Hello!
I would like to use 2Dtoolkit and to create a game.

Standard size: It is 1600x900.

This is cool when it starts by 16:9!!

however...
It is uncool if it starts by other aspect ratios or a full screen.
It is because sprite is extended up and down.

I would like to fix an aspect ratio and to hide an excessive portion in a letterbox(black color).

if possible.
In order to attain this, please teach me an easy method.

The camera is planning the usual parallel projection camera.

Although I do not understand English, I understand somehow with translation software.
Thank you.  :)

gateman
Title: Re: 2D The aspect fixed method in tool kit.
Post by: unikronsoftware on April 16, 2013, 02:38:05 pm
What camera do you use?
Title: Re: 2D The aspect fixed method in tool kit.
Post by: gateman on April 16, 2013, 02:59:36 pm
I use default UNITY camera(orthographic).
thank you.
Title: Re: 2D The aspect fixed method in tool kit.
Post by: unikronsoftware on April 16, 2013, 03:32:16 pm
If you're using the unity orthographic camera, you can easily letterbox yourself. Just draw 2 black sprites along the sides of the screen outside the view. You should also adjust the orthographic size when running in a different aspect ratio to fit the screen.

2D Toolkit 2.0 will have a system to automatically rescale your camera for you, so if you can wait, that could be a good solution.
Title: Re: 2D The aspect fixed method in tool kit.
Post by: gateman on April 16, 2013, 04:52:28 pm
There was a problem in my explanation.  :(
I made my intention into the image.

Could you take a look at image?

thank you.
Title: Re: 2D The aspect fixed method in tool kit.
Post by: unikronsoftware on April 16, 2013, 04:59:17 pm
Yes. That is what I understood from your explanation.

You can do this by changing the orthographic size of the camera based on the resolution. What you are doing is you're fitting the width of the scene. If you can wait, tk2d 2.0 will do this for you. If not let me know and I'll tell you what to do.
Title: Re: 2D The aspect fixed method in tool kit.
Post by: gateman on April 17, 2013, 02:26:21 am
Thank you for the support.

If good, please teach me the way.

sorry.
I... understand that this is the "excessive question".

I am going to purchase 2Dtoolkit2.0. (Or the free updater ?) .
however . It is actual that there is no time.
Title: Re: 2D The aspect fixed method in tool kit.
Post by: gateman on April 17, 2013, 02:30:35 am
I add. If it is the waiting time for about one month,
 I will wait for 2.0. thankyou!
Title: Re: 2D The aspect fixed method in tool kit.
Post by: unikronsoftware on April 17, 2013, 09:34:00 am
It shouldn't be that long for tk2d 2.0, so I suggest just waiting for it.
Title: Re: 2D The aspect fixed method in tool kit.
Post by: gateman on April 17, 2013, 09:41:28 am
OK.Understood.
thank you greatful support. :)