Jump to content

Foliage Creator script


Dickieboy

Recommended Posts

I've been mucking around redoing some of the foliage on my map, and using this script. I'm noticing an odd thing, that the foliage I'm getting is "shifted" or offset to where I'm actually painting by what appears to be a single pixel. image.png.bfcc8116dfbf399a74503a114380705d.png

This is the masked area,

I run the script and it puts grass here
image.png.643c01d5db1284da77eb7dd4111a4c20.png

You can see on the left that it appears to be outside the masked area, but on the right edge it seems to have respected it better. 

Now If I then run a different "creator" to remove the foliage from the areas covered by the indoor mask, you'll see it's shifted even more.
Before
image.png.50783ee93b61266951bd135254f307a9.png

After

image.png.da1e95ad597a05fd040c3ac6a3674c41.png

You can see that none of the grass on the bottom left has been removed (where I'd have expected it to be, but the top right edge has been removed outside of the masked area. 

Any ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now