18
« on: January 31, 2013, 09:57:59 am »
I am having problems when using the tk2dCamera object and would really appreciate some help.
So what I am doing? I created a background image for testing purposes with a resolution of 1280x720 which I have put in a sprite collection (with use tk2dCamera ticked) and produced a sprite object with this background image texture. I have then added a tk2dCamera and I am now trying to fix the whole image on the screen.
I have set camera size to 100
I have set the native resolution to 1280x720
I also set the camera resolution to 640x360 and also fixed the game window to match the same resolution
Went back to the background sprite inspector, and clicked 1:1 button for pixel perfect texture. The texture was scaled from 1 to 360 in all axis and this resulted in the camera displaying a zoomed area of the image.
I went back to the camera object and added an override resolution of 640x360 and a scale of 0.0014. And as a result, the whole image was now displayed on the camera.
If I delete the tk2dCamera and create a normal unity camera object with size 100, and then I go in the sprite collection and untick the use with tk2dCamera and set the height to 720, and click on the 1:1 button on the sprite object, the whole image is displayed in the camera.
I would like to ask you if in both cases the background image is at pixel perfect? and what is the difference between the two as in features, advantages and disadvantages?