playMaker

Author Topic: Changing Camera Size Without Changing Orthographic Size  (Read 1146 times)

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
Changing Camera Size Without Changing Orthographic Size
« on: September 11, 2022, 03:11:59 PM »
Hello,

I'm not 100% sure this is a playmaker question (but I thought it might require a specific action, so I thought I'd post it here). Anyways, I have a camera set to orthographic with a size of 16.875. This works because I have a background made of repeating tiles and it does not get wavy or fuzzy. However, if I set the camera size to anything else, the background gets all wavy and fuzzy. The foreground does not have this effect, even if the camera size is not 16.875. This is a 2d pixel art game and all my assets have a PPU of 32. How can I change the camera size without changing the orthographic size? I tried changing the scale of the camera and the scale of the camera's parent, but it kept the camera size itself the same. Thanks in advance for your help!

John Bassi :)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Changing Camera Size Without Changing Orthographic Size
« Reply #1 on: September 12, 2022, 02:10:58 AM »
Hi.
for orthographic, as far as i know you can only change it by using the orthographic size setting.

i think you need to figure out why the background is getting fuzzy

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
Re: Changing Camera Size Without Changing Orthographic Size
« Reply #2 on: September 12, 2022, 10:35:56 AM »
Hello,

Thanks for your reply. I think this website explains my problem.

https://gamedev.stackexchange.com/questions/157011/strange-warping-shimmering-effect-with-unity-tilemap-and-cinemachine/157021#157021

However, I don't think I can do any of the solutions it offers (I can't keep the camera size at what it currently is forever, I don't want to add a border to the screen, I don't want to render at a different resolution, and I don't want to change my sprites).

Hopefully, this website will tell you a little bit about my problem, and hopefully, there is another solution. Thanks!

John Bassi :)

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
Re: Changing Camera Size Without Changing Orthographic Size
« Reply #3 on: September 16, 2022, 10:39:57 AM »
Bump

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
Re: Changing Camera Size Without Changing Orthographic Size
« Reply #4 on: September 16, 2022, 07:17:40 PM »
I figured out a solution. My Tilemap was way too big, so I just made it the size of my camera and made it a child of my player.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Changing Camera Size Without Changing Orthographic Size
« Reply #5 on: September 18, 2022, 02:20:35 PM »
Hi.
Thanks for sharing your solution :)