Hello Guest

Author Topic: 2D The aspect fixed method in tool kit.  (Read 7204 times)

gateman

  • Newbie
  • *
  • Posts: 6
    • View Profile
2D The aspect fixed method in tool kit.
« 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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D The aspect fixed method in tool kit.
« Reply #1 on: April 16, 2013, 02:38:05 pm »
What camera do you use?

gateman

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: 2D The aspect fixed method in tool kit.
« Reply #2 on: April 16, 2013, 02:59:36 pm »
I use default UNITY camera(orthographic).
thank you.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D The aspect fixed method in tool kit.
« Reply #3 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.

gateman

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: 2D The aspect fixed method in tool kit.
« Reply #4 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D The aspect fixed method in tool kit.
« Reply #5 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.

gateman

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: 2D The aspect fixed method in tool kit.
« Reply #6 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.

gateman

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: 2D The aspect fixed method in tool kit.
« Reply #7 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!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D The aspect fixed method in tool kit.
« Reply #8 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.

gateman

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: 2D The aspect fixed method in tool kit.
« Reply #9 on: April 17, 2013, 09:41:28 am »
OK.Understood.
thank you greatful support. :)