- Home /
procedural path painting on terrain
i have a list of coordinates that i am building a path with, i have tried spawning a prefab with the texture applied but due to the amount of prefabs spawning it is very laggy. What i am looking at is painting on the terrain with a splat-map and code driven, is this the correct approach ?
@DuncanLDavis You should take a look at terrain data, specifically SetAlpha$$anonymous$$aps().
This works and works great except when i pull gps coordinates into unity world coordinates they are floats and setalphamaps only take ints which lat 43, lon 71 and lat 44, lon 72 are VERY far apart gps wise. I am not sure what to do there. Any ideas would be great.
I considered making a terrain the max size of a float(3,5) which would be 1 meter = 1 unity unit but can only make a terrain max size 100k
Answer by DuncanLDavis · Aug 06, 2016 at 10:12 AM
Salmjak · 3 days ago 0 @DuncanLDavis You should take a look at terrain data, specifically SetAlphaMaps().
This is the answer i was needing.