Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Alpha Stamps #286

Open
3 of 4 tasks
CsloudX opened this issue Dec 27, 2023 · 3 comments
Open
3 of 4 tasks

Support Alpha Stamps #286

CsloudX opened this issue Dec 27, 2023 · 3 comments
Labels
enhancement New feature or request idea Just an idea, may or may not be implemented
Milestone

Comments

@CsloudX
Copy link

CsloudX commented Dec 27, 2023

Description

Use alpha brush, we can brush montain every easy.

aaa 00_00_00-00_00_30

It like need this tasks:

  • Let can set brush size to larger (Current can only set less than 200m, for montain, it was too small)
  • Let can set brush Opacity to large than 100% (Current can only set less than 100%, This is option, we can click multi-time to make montain higher).
  • When mouse pressed , brush once (Current brush when mouse move)
  • Can custom brush's rotation
@TokisanGames
Copy link
Owner

TokisanGames commented Dec 27, 2023

That is called an alpha stamp. This means you provide a 2k-4k height image for a stamp.

The current brushes are already alpha stamps, though very small, 100px or 256px. Even if you did stamp them very large, they'd be ugly and blocky.

Alpha stamps are already partially supported. It's not just these 4 options you need. There are other things needed, notably 2k-4k alpha stamps.

Currently, you can import stamps in any region using the importer. Otherwise your best bet is to work in a photo editing app for now. Then you can place your 2k-4k stamp wherever you like, at any rotation and import that heightmap.

Additionally,
Larger brush size needs #174.

You can set Brush rotation by disabling jitter and enabling align to view in the advanced settings. Paintable UV rotation is planned.

@TokisanGames TokisanGames added enhancement New feature or request idea Just an idea, may or may not be implemented labels Dec 27, 2023
@TokisanGames TokisanGames moved this to Future Ideas in Terrain3D Roadmap Dec 27, 2023
@TokisanGames TokisanGames added this to the Future milestone Dec 27, 2023
@TokisanGames TokisanGames changed the title Can work like UE's alpha brush Support Alpha Stamps Dec 27, 2023
@TokisanGames
Copy link
Owner

Action on mouse click instead of movement was added some time ago.
Size > 100% added some time ago.
Strength > 100% enabled in 7e75cd4.

You could technically do this now, though it's not as smooth as it could be.

  1. Insert higher resolution alpha stamps into the brush directory, no built in tool to manage them
  2. Set brush size and strength very high.
  3. Align the camera to the angle you want and disable jitter. No specific angle option.
  4. Click once.

One of the default low res alpha mask zoomed up, stamped, then smoothed:

image

This ticket will remain open until it's a smoother process, maybe brush management at least.

@TokisanGames
Copy link
Owner

TokisanGames commented Aug 28, 2024

#468 Made a huge improvement for alpha stamping that eliminates the need for smoothing if using a small resolution 100x100 stamp at 1024x1024. However, it still needs smoothing if stamping at 2k+. See pics.

For future improvements, we need:

  • An alpha stamp mode that will:
    • Upscale the selected brush to 4096x4096
    • Stop hiding the decal (or provide mesh preview)
    • Snap to region?
    • Automatically disable jitter and align to view
    • Stamp rotation
  • Provide some interface for managing brushes
  • Resize a copy of all textures to only 100x100 for the brush selector. Currently it uses the full brush texture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idea Just an idea, may or may not be implemented
Projects
Development

No branches or pull requests

2 participants