Is it possible yet to rotate the terrain stamp brush? If so, how? I just tried 2019.1.0f1 and couldn’t find an option.
Thank you!
Is it possible yet to rotate the terrain stamp brush? If so, how? I just tried 2019.1.0f1 and couldn’t find an option.
Thank you!
Never mind, I just checked the code. It’s prepared, but not possible yet. I modified the code so that it works. In case anyone needs it, let me know and I’ll put it on github.
Suggestion though: Currently the shift key is used to invert the stamp. This is a hardly used feature and if anyone uses it, one may as well use the mouse to click the checkbox. I rather suggest - unless anyone else has a better idea - to use
Would be as flexible as this (click for animation):
Of couse question remains what to use for the brush size and opacity changes
Nice! I was going to try getting that to work. I’m interested in how you got it to work.
You need to use your own brush settings, you can’t set them in the edit context.
Basically get rid of the brush size and opacity sliders:
editContext.ShowBrushesGUI(0, BrushGUIEditFlags.Select);
and use your own in the Inspector and use those values here:
BrushTransform brushXform = TerrainPaintUtility.CalculateBrushTransform(terrain, editContext.raycastHit.textureCoord, <your-brush-size>, <your-brush-rotation>);
I’m not aware as to why they guys at Unity didn’t implement rotation yet, the code is there and seems to work, the value is set ot hardcoded 0.
You can see here how it looks like, also a github reference to the code I’m using. Just check the recent diff:
https://forum.unity.com/threads/free-path-paint-tool-open-source-github.630832/#post-4425130
I put it on github in case anyone has use for it:
https://github.com/Roland09/StampToolExtended
Looks like this:
Thank you!
We missed the cutoff for getting the rest of our rotation changes in. We’ve got it set up in our new Terrain Tools package that should be coming out soon. We are using custom brush settings
So much joy in this thread.
, Apr 19, 2019 — When is soon ?
Heya. It should be in the current package release. Which versions of the terrain tools package and Unity Editor are you using?
I’m using 2020.1.5f1 and there still isn’t a way to rotate the brush. The terrain tools appear to be built into the editor instead of available as a separate package (nothing comes up when I search for “terrain” in the Unity Registry, only when I show “Built-in” packages) so I don’t know what the version number is for those tools.
You’ll have to enable Preview Packages in Package Manager to see the Terrain Tools package in 2020+. Should be under Project Settings > Package Manager > Advanced Settings > Enable Preview Packages. The built-in tools do not have brush rotation exposed but the tools in the package will along with hotkeys to quickly change brush parameters
Aha! That’s where it went. Thank you!
I’m new to unity, how can I install it?
I tried using git but it says the following: “[Package Manager Window] Error adding package: https://github.com/Roland09/StampToolExtended.git.”
Unity version: 2021.1.0a6
Thanks!
I replied to the same question here .
I cant belive after 5 years somthing that was already “done” still isnt standard especialy when its such a nessasry part of terrain creation.
You can use the shortcut D while moving your mouse to rotate your brush ( I’m using terrain tools on Unity 2020.03.0f1 )
Can we please get the 3D preview option available in this gitHub repo?
https://github.com/Roland09/StampToolExtended
This is an awesome time savor! Thank you for creating this! Makes it so much easier to create specific terrains without having to import a gazillion brushes just for different orientation!
You can already do that in the latest version of the terrain tools using the A/S/D keys. Unfortunately the keybind didn’t make it yet into the sceneview help display, so those keybinds are rather useless for everyone.