PDA

View Full Version : Switching Between Tile & Selection Tool Changes Placed Image Size



Tailz Silver Paws
March 26th, 2021, 01:54
Hello folks, I am experimenting with converting my Map Tiles into art assets that can be used to build maps in Fantasy Grounds Unity. But I have come across a bit of a bug. I'm not sure if this is meant to act like this, but its a bit of a problem.

When I place a Map Tile onto the map using the Tile Tool, it is placed down perfectly fine. It remains at 180px size, can be moved around, rotated, etc.

But if I switch from the Tile Tool to the Selection Tool, the placed image is re-sized as if the program just gave it a 4-6px clear border. This re-sizing seems to only happen on placed PNG images that have clear transparent areas.

Is this is a bug or a feature?

Kelrugem
March 26th, 2021, 13:47
Hi :)

Do you have some dummy file with which one could recreate that issue? :)

Tailz Silver Paws
March 30th, 2021, 00:30
Hi :)

Do you have some dummy file with which one could recreate that issue? :)
Certainly, you can try out my Map Tiles Sample Pack (https://www.dropbox.com/sh/l8fjl0kufmhtrkd/AABgGB5x-s5zZgWVeweWfr_Ma?dl=0) which I just made. Or you can watch a YouTube video (https://youtu.be/JCkfhG-p2n4) I recently made where the problem occurs (around time index 18:20). I think what is happening is the program thinks I am placing a token and squishes it into a map grid square and adds a border.

Curiously I have not had the resizing happen on images placed which have no transparent area (for example floor tiles). It only seems to happen with images that have transparent areas (such as wall tiles).

Kelrugem
March 30th, 2021, 23:05
Thanks, I try to reproduce it, when I find time :) I hope someone else is quicker in reproducing that though :D

Tailz Silver Paws
March 31st, 2021, 01:37
Thanks, I try to reproduce it, when I find time :) I hope someone else is quicker in reproducing that though :D
Thankyou Kelrugem, look forwards to hearing what you find.

Kelrugem
April 17th, 2021, 22:54
So, sorry for the delay :)

I sadly was not able to reproduce your issue; I used your mod from the post above and tried some tiles, but no gain. I may need more steps to recreate it. But I am also on the test server, so, maybe your issue gets fixed with the lighting update :)

Tailz Silver Paws
April 20th, 2021, 03:51
So, sorry for the delay :)
No problem at all.


I sadly was not able to reproduce your issue; I used your mod from the post above and tried some tiles, but no gain. I may need more steps to recreate it. But I am also on the test server, so, maybe your issue gets fixed with the lighting update :)
I think it has something to do with the PNG images that have transparency. As FGU seems to act differently to those than to PNG images that have no transparency. As if its treating the placed graphic like a token and "fitting" it inside a grid square as a pog. I also found that other placed PNG images were getting deformed too as if FGU wanted to "pug-ify" the placed image?????

But if you are on a different version.... that is a spanner in the works to trouble shoot.

Kelrugem
April 20th, 2021, 15:00
I took a tile with transparency :) (I think? :D) Maybe test indeed helps but your report is currently the only one about that, so, I am wondering whether something subtle is happening, or whether I missed a step :)

Tailz Silver Paws
April 22nd, 2021, 07:23
I took a tile with transparency :) (I think? :D) Maybe test indeed helps but your report is currently the only one about that, so, I am wondering whether something subtle is happening, or whether I missed a step :)
Maybe it is my computer acting up. But the issue only happens when I place a graphic with transparency. PNG images with no transparent areas have no problem.

Geometer
April 22nd, 2021, 09:19
your report is currently the only one about that,

I don't know if this is the same issue the OP is reporting but I have found, when converting tokens to tiles via the little box in Image Control, that some tokens are distorted to fit into the box and this distortion persists when the tile is placed on the map. FG 47 shows this with a token from Forgotten Adventures. I've added the original token to the map alongside the tile produced for comparison.

I've also noticed, on much rarer occasions, that some token images overlap the edges of the box. FG 48 shows this with a token from Ddraig Goch's Samhain pack. The image was rotated 45 degrees left to produce the overlap.

Kelrugem
April 22nd, 2021, 13:36
I don't know if this is the same issue the OP is reporting but I have found, when converting tokens to tiles via the little box in Image Control, that some tokens are distorted to fit into the box and this distortion persists when the tile is placed on the map. FG 47 shows this with a token from Forgotten Adventures. I've added the original token to the map alongside the tile produced for comparison.

I've also noticed, on much rarer occasions, that some token images overlap the edges of the box. FG 48 shows this with a token from Ddraig Goch's Samhain pack. The image was rotated 45 degrees left to produce the overlap.

I think that distortion is coming by the settings of the width and height as given in the image sidebar :) Did you already define those before you placed the asset into the box of the image sidebar?

Tailz's problem is that it is first okay but then suddenly changes after doing something (like switching the mode)

Geometer
April 23rd, 2021, 07:43
I think that distortion is coming by the settings of the width and height as given in the image sidebar :) Did you already define those before you placed the asset into the box of the image sidebar?
Nope. W/H both set to 0.0. Placing the token in the box forces it to conform to 4.0 x 4.0



problem is that it is first okay but then suddenly changes after doing something (like switching the mode)
I've seen something similar; wall token-to-tile, placed horizontally on map, rotate 45 degrees left, rotate 45 right back to horizontal, deselect and a slight but perceptible reduction in size of the image can be observed. I think the image is returning to its original dimensions rather than actually resizing, i.e. when it rotates to be oblique to the grid it gets a little bigger (?) then returns to normal when horizontal, if that makes sense.

I can try and demonstrate all this in a video if that would help?

Kelrugem
April 23rd, 2021, 12:44
Nope. W/H both set to 0.0. Placing the token in the box forces it to conform to 4.0 x 4.0



I've seen something similar; wall token-to-tile, placed horizontally on map, rotate 45 degrees left, rotate 45 right back to horizontal, deselect and a slight but perceptible reduction in size of the image can be observed. I think the image is returning to its original dimensions rather than actually resizing, i.e. when it rotates to be oblique to the grid it gets a little bigger (?) then returns to normal when horizontal, if that makes sense.

I can try and demonstrate all this in a video if that would help?

Yes, would surely help if you can show a video, then the devs can look at your and Tailz's problem :)

About your distortion thing: Hm, not sure then, what is going on there (I was sadly also not able to reproduce that) :)

Geometer
April 24th, 2021, 14:58
A couple of videos that show what I mean.

The first shows the resizing, the second shows the distortion.

The distortion issue only appears to happen to tokens with linear images e.g. walls, rows of cabbages etc. It doesn't seem to happen to images that are more square or irregular in shape. I don't have any comparable tokens from other publishers so I can't test them.

Moon Wizard
April 24th, 2021, 21:19
@Geometer,

Is this in the Live build (v4.0.10) or the Test build (v4.1.0)?
I know that there was a similar issue reported for v4.0.10, and a fix is included in v4.1.0 already.

Thanks,
JPG

Geometer
April 25th, 2021, 05:47
@Moon Wizard: v4.0.10