View Full Version : Cropping map created in Unity
Valyar
November 4th, 2020, 11:44
I experiment with the new map creation tools (finally) in unity and I am very pleased that now I don't have to use different applications to work with all assets I purchased over the years from various places. Stitching the map has never been more easier and adding effects and doodads is excellent. Now, there is the situation where the map is ready to be presented to players... and the whole unlimited border thing around the images and assets bleeding out of the background (because this is how you do maps to look good, especially world ones) look terrible. The only workaround I have found is to use mask and LOS borders to limit what they can see, but this is quite lame for overland maps that don't need this. Also, the players can pan around the edges.
Is there a way to "crop" the map and control to what extent they can pan the image? And this is valid for the compound maps that are created and plain images that are shared. I am looking at the missing "feature" from FGC - sizte to fit that automatically resizes the horizontal and vertical borders of a window.
Jaybob32
November 5th, 2020, 02:17
40736
I've used the LOS trick as well. I was thinking of something like this though. Basically make a second background under your background. Then use the adjust colors effect to reveal the edges and turn it's brightness to 0. Still really just making a border, but it cuts the edges nicely.
I'll keep thinking though. What we really need is a way to just crop it. Delete everything outside the crop, but from what I understand that's not how FGU works. it would delete those elements "hanging" over your edge, instead of cropping them.
Kelrugem
November 5th, 2020, 02:38
What do you mean with the LoS borders? As far as I know there is already automatically a LoS border at the boundary of the image :) (but not shown as nodes in the LoS mode)
Jaybob32
November 5th, 2020, 02:44
What do you mean with the LoS borders? As far as I know there is already automatically a LoS border at the boundary of the image :) (but not shown as nodes in the LoS mode)
hmm, did not know that. However with some elements hanging over the edge I think that defeats the "auto" LOS. (See below picture)
However with some more testing I found a time of day fx layer on the top of the layer stack will work. You have to enable the mask, then reveal the edges to "cut" anything off. I used a previous map I made.
40740
40741
Kelrugem
November 5th, 2020, 02:50
hmm, did not know that. However with some elements hanging over the edge I think that defeats the "auto" LOS. (See below picture)
However with some more testing I found a time of day fx layer on the top of the layer stack will work. You have to enable the mask, then reveal the edges to "cut" anything off. I used a previous map I made.
40740
40741
Also the hanging over things should have such a border, that I remember, when that is not the case anymore you may have found a bug :) (but I am not sure how the border looks like in that case)
And yes, layers work also as mask for the Fx layers below :) Hence, Fx needs to be at the top when it should not be hidden by any layer :)
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.