I've run into a problem when making a storyboard. I'd like my background image animations to be pixel-perfect, so I thought scripting would be the way to go. But I cannot get them to line up perfectly. I'm doing some fades and scalings of one base image in different colours.
What is the size of the storyboard background?
How can one align animations perfectly?
The play area is 640x480 to my knowledge, but I'm looking for the widescreen info. It seems that my 1920x1080 regular background test image fits perfectly on the screen and is not blurry, which suggests that it is used as-is. When introducing the animations, things start to blur. Firstly, from the full resolution, one achieves visually almost the identical size with the scaling factor 0.445. But when using an animation, even the original background image is not in its original size. Secondly, the scaled (animated) image doesn't seem to lay exactly in the centre of the screen. After the animation there is a shift of maybe one pixel to the right. Changing the placement of the sprite in 1-pixel increments is too much in every direction to fix this.
Am I missing something?
Experiments:
I've looked at the scaling I've used in a few maps. These are the results of my visual alignments:
As the aspect ratios of the pictures varied, this would suggest, that the pictures are scaled to fill both the axes. And that the size of the horizontal axis is roughly 853px. Assuming the height limit is 480, based on the full hd calibration, calculating the scaling factor would result in 0.4444... but this scaling has the same shift effect I described above.
What is the size of the storyboard background?
How can one align animations perfectly?
The play area is 640x480 to my knowledge, but I'm looking for the widescreen info. It seems that my 1920x1080 regular background test image fits perfectly on the screen and is not blurry, which suggests that it is used as-is. When introducing the animations, things start to blur. Firstly, from the full resolution, one achieves visually almost the identical size with the scaling factor 0.445. But when using an animation, even the original background image is not in its original size. Secondly, the scaled (animated) image doesn't seem to lay exactly in the centre of the screen. After the animation there is a shift of maybe one pixel to the right. Changing the placement of the sprite in 1-pixel increments is too much in every direction to fix this.
Here's the script:
Sprite,Foreground,Centre,"full.png",320,240
S,0,1000,,0.445
F,0,1000,2000,0,1
S,0,1000,,0.445
F,0,1000,2000,0,1
Am I missing something?
Experiments:
I've looked at the scaling I've used in a few maps. These are the results of my visual alignments:
- 1600 x 1117 -> 0.533 -> 853.2 x 568.8
- 1800 x 1200 -> 0.474 -> 852.8 x 595.7
- 1920 x 1080 -> 0.445 -> 854.4 x 480.6
As the aspect ratios of the pictures varied, this would suggest, that the pictures are scaled to fill both the axes. And that the size of the horizontal axis is roughly 853px. Assuming the height limit is 480, based on the full hd calibration, calculating the scaling factor would result in 0.4444... but this scaling has the same shift effect I described above.