How to create Terrain Stamps (e. g. from world.party, World Creator 2, etc)

I was asked how to create Terrain Stamps. So I thought instead of replying individually I’d make this post so that everyone can have an answer in case the question arises. If you do know different ways, please do share your instructions.

terrain.party

5805106--613870--tp0.png

  • hit export

5805106--613897--tp2.png

  • extract the downloaded zip file which contains your height map images

Open Unity

  • drag the heightmap png file into your project (e. g. the one with the ‘Merged’ in the name)

  • modify the image properties, e. g.

R16 is important for higher resolution heightmaps, otherwise you’d get terracing effect

  • Assets > Create > Brush (or via popup in the Project tab) and drag the image into the mask texture field of the created Brush

5805106--613891--tp7.png

  • select a terrain, select Stamp Terrain in the Paint Terrain settings, select your Brush and start stamping

5805106--613894--tp8.png

Please notice also the help text below the “Stamp Terrain” selection

3 Likes

World Creator 2

  • create your terrain and export with these settings

Unity can’t read r16, so use e. g. png16

  • import the png into Unity, configure the image

  • create a brush with your image

  • stamp with the brush on your terrain

4 Likes

Photoshop

  • create your heightmap, using Grayscale and 16 Bits/Channel

5805184--614122--ps1.png

  • export as PNG (or TIF)

  • import into Unity and change the image settings

  • create a brush using that image and stamp your terrain with it as described above

1 Like

Additional Links

Terrain Documentation

Free Stamps

You can create stamps/height maps with Zbrush, Substance Designer as well. I wouldn’t use terrain party… also you don’t have access to any of these other programs then fine go for it…
. ( you have more control.) also, use Tiff. or Super PNG, I wouldn’t be using PNG. in game engines…TGA if you need the alpha channel for some reason. but other wise your method is not bad. at all.

https://www.fnordware.com/superpng/

Fantastic Rowlan. :slight_smile:

Thank you so much for taking the time to create this.
I really hope many Unity users find this brilliant thread.

Written in a way that is super informative, that anyone can follow, and learn from.

That will benefit everyone looking for answers on Unity brush & stamp creation, with “professional” results…

Thank you, and Kudos.:smile:

1 Like

@Recon03

Hi.
The only thing you have to take into account though…
Is Zbrush, Substance Designer costs “big bucks.”
Whereas Unity, and Terrain Party are both free. As shown in the tutorial above.

And there are many- (The vast majority, I would imagine.) -Unity users, who are not professional devs.
Or even if they are, are 1 / 2 person indie devs on a very restricted budget. The same with most hobbyists.

This option allows everyone to be able to create quality stamps in Unity FOC. :slight_smile:

1 Like

I already asked about the file formats earlier, see this post . But let’s summon @wyatttt to be sure :slight_smile: In short: Which image format is the preferred one for stamps?

Welcome to game development… and Substance does not cost big bucks/. But buying software cost money…also, you get what you pay for…and lastly there are tons of other software, :“free” that works really well too…

some hobbies can cost money. :slight_smile: So, which is why I said, if you don’t want to buy, or can’t afford, go ahead and use it…( but there are better software … Blender is “Free” Gimp “Free” and plenty of other Affinty, I think is like 50$…( not big bucks, or you can sub to PS , I believe its 20 or 10 ( Dunno I own it. ) But my point plenty of better options…Also you can use World Composer…( Terrain Party,) not a fan of personally. but , hey if it works for you…Use it…but , need to offer people other options… ( Some users like to know they can use other software to handle this… :slight_smile:

https://affinity.serif.com/en-us/photo/ On sale for 25$…dirt cheap…
https://www.blender.org/ Free

You can use PNG.(Never said you couldn’t)…but not the besy way to handle it for Stamps or any texture in game engines…( not just Unity, but any other game engine, which is why Super PNG exist and way, just about any company, will ONLY accept TGA, files and why most of us use TGA for a reason…but sure you can use PNG., if you like, or JPEG…but, the result may not be way you want… and if you are dealing with Alpha channel…that is where most of the issues are… …mainly. but yes, you can if you like too. ( no one is stopping you from using Jpeg, and PNG. …( I don’t advise it)

I recommend TGA, and your second option Tiff is fine too. Only two you really should use in Game engine anyways. ( if you really want PNG, use Super Png. ( your choice.)

The rest of your steps are good, and helpful to new users. ( those I agree with and have nothing to add for Unity anyways. .

TGA and BMP are lossless and without any real compression which makes them quite big on the hdd, but also faster to load than most compressed formats, as no additional processing of the data is required. They also have pretty much the same size as they will have in the vram. Also, they of course have the highest possible quality.

The way I see it the requirements are:

  • editor only usage
  • uncompressed or lossless compressed, so jpg is out of the question
  • single channel is used
  • 16 bit for high detail, otherwise you’d get terraccing

Resizing the brush internally resamples the image, so the only 100% accurate representation is by having the stamp at 1:1 size of the original image

Well, fairly standard requirements. As far as I imagine preparing an image file for the subsequent construction of a map label, it is necessary: take a high-quality .png or .jpg file, and then bring it to mind. In this regard, several questions arise: is it advisable to use converters to fetch the data to the desired format? Which editors can be used: is Movavi Picverse (https://picverse.com/) suitable or something more powerful, for example, Photoshop (https://www.adobe.com)? Where else can I read about this?

I think that doesn’t get said ENOUGH, ty !!!
amen, we aren’ t all RICH, no matter who thinks so, but thx to unity/blender , so many other great tools, we get by with a little help from great projects :wink:

1 Like

With all due respect.

I am honestly not sure why you sound vexed,that was not in any way my intent.
When I replied to your post of the 5th… I was very polite, and just stared the fact that not everyone has "lots of money, and there are many on very meagre funds.
I am also not sure this part … “also you don’t have access to any of these other programs then fine go for it…”
Was even in your comments of the 5th.
Otherwise I would have included this fact in my reply. Unfortunately the “reply” to post option wasn’t working when I did comment on your post.

But if they were, Mea Culpa.

However, that aside.
“Welcome to game development.”
I am not, nor ever will be. (nor want to be) a “game developer.”
And not knowing the specific ratio. But would imagine the majority of Unity users, are not “game developers” either.
They are hobbyists, dabblers, many migrating from gaming, to play around with personal scenes, or projects of their own making.

Moving on from that.

I was also pointing out that Rowlan had created a brilliant thread, showing how “us small-folk” could create stamps, and brushes in completely free Unity. While using also completely free, and legit tools from the web.

As to Substance not being “big bucks.” 20 dollars U.S each month, might be peanuts to some. But to others its really not.

I love the look of “World creator” but sadly I could not afford to buy it, even the personal licence at $150.

But I will admit to not even knowing about “world composer” on Unity Store. at 20 Euros. (Or 18 pounds for those of us in the UK,) and then 20% VAT, so, circa £22. and then Paypal seems to have screwed up the conversion rate from Unity charging more, so about 24 quid.

But unless World Composer , is considerably better than Terrain Party, Id stick with TP for now.
But I do thank you Recon03, for the heads up on World Composer, ill keep my eye on that one.

As to Blender YES! 100% yes!
Absolutely love it, and unlike Unity. <–(Which I also love.) And Im not sure if its the management / marketing / Blender team who makes this rule.
But unlike this recent trend in Unity, that has seen “some devs”- (fortunately just a few) -applying some spurious (to say the least) “sales practices.”
Whereby they, either…
1- Have started a “charge every year” to upgrade to the latest FREE Unity release. For Assets you have already paid for, and own, just so they will work on the “new free Unity.”
2- In one case I have seen, when sales dropped, the “dev” depreciated the asset. And then re-released exactly the same asset, just with the “upcoming additions” from the previous now defunct asset added. And charged the whole price over again. Just with a different name. Even to existing owners of the first one.
3 - Launch an asset, get purchasers. And then a few months later launch the “pro version.” With “added options.” Which clearly should have been in the original, seeing as the timespan between the two is so short, its obvious it was being worked on all along.

Anyway, I have seen nothing like any of these practices on any of the addons in Blender. On those I have both purchased, and browsed.
Even when the MASSIVE 2.8 eevee upgrade was launched, all the addons I owned were just upgraded to 2.8, and continuing…FOC.

I absolutely love Unity! It is awesome, but these new “asset practices” should really be looked at, and moderated. As they are adding a bogus vibe, for what is otherwise a world class platform.

Sorry I veered off topic there Rowlan.:roll_eyes:

Ill keep it to Stamps from now on. :wink:

And while back on… and staying on… the subject of Stamps.

Does anyone know of a way to turn meshes, objects into stamps for terrain.
I am specifically thinking of a giant lying on his /her side that could be stamped as an island.
Thin moana, that type of thing.

Or in-fact any object, but made into “terrain” with all the functions of terrain, grass, trees, splat etc.

Any ideas who this could be done please?

Thanks for any help.
Kudos.

1 Like

A stamp is nothing else than an alpha mask. There are several tutorials about how to create those with Blender. Usually involves creating a texture from an orthographically placed camera on top of a mesh, e. g. like this example. There are others which might fit your workflow better, but the principle is the same.

Actually, you might also create those inside Unity with Unity tools.

1 Like

Hey and thanks Rowlan.
This is great.

I really appreciate the reply, and the help. :slight_smile:
I will have a look into doing it both in Blender, and Unity.

YOU DARE SUMMON ME?!?!?

that would be GraphicsFormat.R16_UNorm and then PNG, JPEG, TGA should work

2 Likes

We have code for this in the TerrainTools Package. You can take a look at the Mesh Stamp Tool which I’m assuming does exactly what @Rowlan shared for Blender

It renders a topdown view of the mesh and uses the height/depth as the fragment output

1 Like

Using stamps to create other stamps. I totally have to try that now, that sounds exciting! :smile:

Well, that worked. Used a few stamps on the terrain and created a depth-image

and then a stamp out of it

And the fun of it is it works on anything, the above mentioned giant should definitely be possible :slight_smile: I only had a dragon at hand:

and used as stamp:

3 Likes