armory3d / armory3d/armorpaint

Brush opacity can exceed 1.0 causing weird painting behavior

Open Beginner friendly
#2,084 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
5k
Forks
553
Avg merge
3d 11h
Merged PRs (30d)
6

Description

**ArmorPaint version:** Latest git build

**OS / GPU model:** Windows

**Issue description:**
Brush opacity can exceed 1.0 when using brush nodes or high pressure sensitivity, causing weird painting behavior. The final opacity calculation in `uniforms.c` multiplies `brush_opacity` (0.0-1.0) by `brush_nodes_opacity` and `pen_pressure * pressure_sensitivity` (which can go up to 10.0), but the result is not clamped.

**Steps to reproduce:**
1. Set brush opacity to 1.0 via slider
2. Use brush nodes with opacity > 1.0, or
3. Set pressure sensitivity to high values (up to 10.0)
4. Paint with pen pressure enabled
5. Observe weird painting behavior due to opacity > 1.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in uniforms.c and inspect the final brush opacity calculation described in the issue, including brush_opacity, brush_nodes_opacity, and pen pressure. Reproduce with high node opacity or pressure sensitivity, then verify that painting remains well behaved and the resulting opacity does not exceed 1.0.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
computer-graphics
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.