Author Topic: Need help figuring out how to zoom out field backgrounds  (Read 129 times)

niemasd

  • Fast newbie
  • *
  • Posts: 12
  • Karma: 3
    • View Profile
My end goal is that I want to have high-res backgrounds on FF7 Switch, which only supports mods that replace existing in-game files one-to-one. As such, I figured out a way to change the background image in field files to anything I want, including higher-res images. The problem is that, when I put a higher-resolution image, it just zooms it in:



I know the high-res image is in there just fine because I'm able to open it and extract it properly in Makou Reactor. My guess is that something (e.g. the Field File Camera Matrix?) needs to zoom out somehow, but I have no idea what exactly dictates how a background image is rendered in-game. Any help would be much appreciated.

If you want to mess with it yourself, my script to change Field file backgrounds is here

https://github.com/niemasd/PyFF7/blob/master/field_change_background.py

And the specific lines that need tinkering start here:

https://github.com/niemasd/PyFF7/blob/master/PyFF7/field.py#L1601

Perhaps the Q-Gears source will be useful, e.g.:

https://github.com/q-gears/q-gears/blob/3da522b996f09e81c148b25bd8cd022d8db761ef/QGearsMain/src/data/QGearsFLevelBackground2DLoader.cpp#L48
« Last Edit: 2019-05-30 07:11:56 by niemasd »

DragRopes

  • Friendly Neighborhood Batman
  • Freak
  • *
  • Posts: 894
  • Karma: -31
    • View Profile
Re: Need help figuring out how to zoom out field backgrounds
« Reply #1 on: 2019-05-30 14:46:36 »
Try running it in docked.  If that's no good; resize it to 720p and give that a shot.

niemasd

  • Fast newbie
  • *
  • Posts: 12
  • Karma: 3
    • View Profile
Re: Need help figuring out how to zoom out field backgrounds
« Reply #2 on: 2019-05-30 17:12:15 »
It's not about docked vs. undocked: it's about how Final Fantasy VII renders background images. Resizing the background image to 720p will have the same issue: the original size is 512x512. It has to do with how the game renders background images, so it's likely something in the Camera Matrix or something that needs to be modified

DLPB

  • No life
  • *
  • Posts: 9552
  • Karma: 321
  • For I realized that God's a young man, too.
    • View Profile
Re: Need help figuring out how to zoom out field backgrounds
« Reply #3 on: 2019-05-30 18:50:49 »
You'll likely need to alter cam data and I'm not sure if that would fix it.  Either way, that's hard and annoying to do.  See Makou reactor tool, walkmesh option.