Vertex alpha painting #42686

Closed
opened 2014-11-22 12:49:36 +01:00 by Fabio Arnold · 8 comments

I created a patch which enables editing the alpha channel of vertex colors in the vertex paint mode. For this I had to extend the MeshColor and MeshLoopColor to four channels to store alpha values. Then I introduced another blend mode (set alpha) to the vertex paint editor. I used Brush.alpha (which is also used for intensity and pen pressure I guess) for setting the alpha values instead of extending Brush.rgb to Brush.rgba which I tried first but noticed it was too much trouble.
I implemented OpenGL rendering for solid and textured shading for immediate and VBO mode. But because of transparency I still need to sort the triangles depending on the view. Does functionality already exists which I could use for that?

vertex_alpha_painting.diff

I created a patch which enables editing the alpha channel of vertex colors in the vertex paint mode. For this I had to extend the MeshColor and MeshLoopColor to four channels to store alpha values. Then I introduced another blend mode (set alpha) to the vertex paint editor. I used Brush.alpha (which is also used for intensity and pen pressure I guess) for setting the alpha values instead of extending Brush.rgb to Brush.rgba which I tried first but noticed it was too much trouble. I implemented OpenGL rendering for solid and textured shading for immediate and VBO mode. But because of transparency I still need to sort the triangles depending on the view. Does functionality already exists which I could use for that? [vertex_alpha_painting.diff](https://archive.blender.org/developer/F125369/vertex_alpha_painting.diff)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @donfabio

Added subscriber: @donfabio
Author

Here's the diff: https://developer.blender.org/D911

I also created a video to demonstrate the functionality: http://fabioarnold.de/videos/vertex-alpha-painting.mov

Here's the diff: https://developer.blender.org/D911 I also created a video to demonstrate the functionality: http://fabioarnold.de/videos/vertex-alpha-painting.mov
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel

Added subscriber: @SirPigeonz

Added subscriber: @SirPigeonz

I would love to see this in master it would help a lot in my current project.

Please merge it.

I would love to see this in master it would help a lot in my current project. Please merge it.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Campbell Barton self-assigned this 2015-02-25 12:38:17 +01:00

Prefer not to keep both task & diff open unless there is really need for design-discussion / code-review separation.

In this case prefer to keep discussion in the differential.

Prefer not to keep both task & diff open unless there is really need for design-discussion / code-review separation. In this case prefer to keep discussion in the differential.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#42686
No description provided.