31 votes Vote

Copy and Paste from an existing terrain

Would like to have the ability to create a "Point of interest" by copying a template area from a terrain. This would copy terrain height, textures, grass, trees and prefabs. Then we could have a node that would stamp them down, or a even a function we could call to stamp something down ourselves.

For example, I could create a tiny terrain, and make an abandoned campsite, with an old campfire, some stones, and a log. Then draw a circle or box around the area, and copy this to the "point of interest".

Then, the spawner could drop a few of these around every so often, with a random rotation if desired. It would grab the height at the new location as a base, and then set the heights (smoothing as needed), textures, grass, trees and prefabs.

Prefabs could contain whatever you needed - triggers, gameobjects that are just scripts, etc.

Jaimi McEntire , 19.05.2020, 04:27
Idea status: under consideration

Comments

Wraith, 24.07.2021, 11:05
There is no "everything" object in MM - it should be either map or objects. So, to input this to the graph you will have to use 5 nodes: height paste, textures paste, grass paste, trees paste, objects paste. Don't know whether it would be convenient to input all of them and connect to outputs.

But the main thing is that MM overwrites all the terrain information on apply. So the only way to use this - is to take from the other terrain, that will be kept in same scene. Yes, it should be in the same scene, or at the scene loaded additive.

Maybe I'll think about clone stamp for brush, but not sure it will be the part of core MM.
Jaimi McEntire, 26.07.2021, 19:45
Maybe having a scriptable object that held an array of height/textures/grass/trees/objects, that the artist could manually create and save would remove the need for a terrain in the scene? Though I don't think that's too big a deal as it can be hidden on a different layer.
Then there could be a function in MapMagic to "apply" this to a location. So a node could do it, scattering these about, or a it could be done manually, if you want to specifically place one somewhere.
Just some thoughts.

Leave a comment