[BUG] Sprite Resolution

Started by Snarky, Fri 02/12/2022 09:07:02

Previous topic - Next topic

Snarky

[AGS Editor v3.6.0.38]

The "Resolution" property for sprites used to allow you to scale up "low-resolution" sprites in "high-resolution" (above 320x240) games to 2x size. This capability is now disabled by default. However, I think there are two problems with the way it currently works.

-First, even when "Allow relative asset resolutions" is disabled, the property is available in the sprite editor and can be modified. This is confusing because changing the value has no actual effect in-game. I think the property should be hidden or made non-editable when the game-wide setting is disabled.
-Second, it used to be possible to bulk-edit this setting by selecting multiple sprites and adjusting the property. Now, the changed value is not applied to all the selected sprites, but only to the first one. I would consider this a regression.

Separately from this, I think it would be nice if the ability to pre-scale sprites was reintroduced in a more straightforward way, e.g. a sprite scaling setting that could be set to 1x, 2x, 3x, 4x.

Crimson Wizard

#1
Quote from: Snarky on Fri 02/12/2022 09:07:02-First, even when "Allow relative asset resolutions" is disabled, the property is available in the sprite editor and can be modified. This is confusing because changing the value has no actual effect in-game. I think the property should be hidden or made non-editable when the game-wide setting is disabled.

I believe it's possible to do (similar thing is done for a few other properties in game).

Quote from: Snarky on Fri 02/12/2022 09:07:02-Second, it used to be possible to bulk-edit this setting by selecting multiple sprites and adjusting the property. Now, the changed value is not applied to all the selected sprites, but only to the first one. I would consider this a regression.

I did not pay attention to this earlier, but this was actually a thing at least in AGS 3.2.1. It was possible to select multiple sprites, and the property grid would display only matching property values, while blanking out mismatching ones.
Back in a day the sprite resolution was the only property that could be changed, now alot of import settings may be changed.
EDIT: this is no longer working since AGS 3.5.0, where the sprite import was reimplemented.

Opened an issue: https://github.com/adventuregamestudio/ags/issues/2008

Quote from: Snarky on Fri 02/12/2022 09:07:02Separately from this, I think it would be nice if the ability to pre-scale sprites was reintroduced in a more straightforward way, e.g. a sprite scaling setting that could be set to 1x, 2x, 3x, 4x.

I guess letting to set fully arbitrary width & height could be also an option; but the question will be whether this is a import setting or a runtime effect. If it's a runtime effect, then the engine should probably precreate a scaled sprite on load in software render mode, or apply this extra scaling in accelerated render mode (d3d,opengl etc).

I further guess this is something to consider for ags4.

Crimson Wizard

Quote from: Snarky on Fri 02/12/2022 09:07:02-First, even when "Allow relative asset resolutions" is disabled, the property is available in the sprite editor and can be modified. This is confusing because changing the value has no actual effect in-game. I think the property should be hidden or made non-editable when the game-wide setting is disabled.

This should now be done in 3.6.0 Patch 2
(https://www.adventuregamestudio.co.uk/forums/ags-engine-editor-releases/ags-3-6-0-patch-2/)


Quote from: Snarky on Fri 02/12/2022 09:07:02-Second, it used to be possible to bulk-edit this setting by selecting multiple sprites and adjusting the property. Now, the changed value is not applied to all the selected sprites, but only to the first one. I would consider this a regression.

The bulk-edit is reimplemented, but in 3.6.1 branch, because it is accompanied with a performance fix which is somewhat experimental (the bulk-edit was previously disabled by mistake, while fixing the significant performance issues when selecting many sprites at once).
This will be present in the next 3.6.1 beta update.

SMF spam blocked by CleanTalk