Help calculating resolutions/positions for Ultra Mode 7

Hello, I've been messing with Ultra Mode 7 for my game. The idea is to make the game visually similar to games like Darkest Dungeon, where you look at kind of a 2D side view of rooms/corridors/scenes and move sideways.


So far I've set it up correctly and have got some results. However, I'm having this annoying issue where I seem to be unable to come up with a formula/way to calculate the resolution I need to use for some of the sprites to blend properly when put side by side, due to how the FOV and stuff affects how sprite size "changes" (not changes per se, but the sprite looks smaller/bigger in comparison to the camera position) based on distance.


I'm pretty sure there must be a formula/way of saying "OK, if I want to make this sprite take 7 tiles width from the camera position, and I'm using these fov, pitch, angle, etc I should make it X pixels wide", however I suck at maths, so I will appreciate any help from anyone that's good at it.


Just to put an example of what I'm doing and what I want to accomplish (spoiler so the post doesn't look too long).

Spoiler: Example
This is currently one of the "corridors":

Spoiler: Img1
(Ignore poor Harold, character sprites aren't made yet 😅)
cb5a4d8e3a901c21d69f46d1959c2a1e.png

In there you can see 4 "layers", from front to back: The one the actors move on, the ones with the small ridges/hills, the mountains and the sky.

This is achieved using some events like this:

Spoiler: Img2
d8tivzma.png

Where yellow is the "path" actors walk at, orange is just a black background stuff to block the background, green will be the small ridges/hills, cyan will be the mountains and dark blue will be the sky.

Thing is even if this looks okay-ish at first glance.

Spoiler: This will be where the "road" layer sprite meet with each other
ybk71po4.png
This has been made by trial and error with ultra mode 7 settings and event distance, but I want a reliable way to calculate the distance even with different fov/angle/etc settings, so I would appreciate any help I can get because this is driving me crazy.

Let me know if there is any other info I can provide. I can provide the Ultra 7 settings I'm using, however the goal is to be able to use a formula calculate how many pixels wide a sprite needs to be for a certain tiles "size" using any settings.

TLDR: For short I want to know if there is a formula I can use to calculate how many pixels a sprite size is visually "reduced" for each tile it is placed behind the player movement "lane" at any given FOV setting.

Original thread: https://forums.rpgmakerweb.com/threads/help-calculating-resolutions-positions-for-ultra-mode-7.157100/