Viewport doesn't show or render vertex painted alpha. #58711

Closed
opened 2018-12-04 13:34:40 +01:00 by James Ovnik · 14 comments

System Information
Operating system: Windows 10 64bit
Graphics card: GeForce GTX 1080 Ti

Blender Version

Broken: 2.80, 1b6a394d86, blender2.8, 2018-12-03

Worked: 2.79 master, 1b974563b1, blender2.8, 2018-11-01

Short description of error

When applying alpha values to a mesh's vertices in Vertex Paint mode the viewport doesn't render the alpha. I've tried all the display modes (Solid/Lookdev and rendered (Eevee & cycles) ) but none render the painted alpha values.

I've attached a simple cube scene where the mesh has been painted with green vertex color, with the uppermost verts having alpha values. I've confirmed the alpha values are there and correct by opening the scene in 2.79 master where the Cube renders correctly, I've also imported to Maya where the again the cube renders correctly.

Vertex_Alpha_in_2_8.PNG

Vertex_Alpha_in_2_79.PNG

Vertex_Alpha_in_Maya.PNG

Vertex_Alpha_Cube.blend

system-info.txt

Exact steps for others to reproduce the error

Open attached .blend, select mesh and go to Vertex Paint mode. Cycle through the different viewport display modes and you'll see no alpha rendered.

**System Information** Operating system: Windows 10 64bit Graphics card: GeForce GTX 1080 Ti **Blender Version** Broken: 2.80, 1b6a394d862, blender2.8, 2018-12-03 Worked: 2.79 master, 1b974563b17, blender2.8, 2018-11-01 **Short description of error** When applying alpha values to a mesh's vertices in Vertex Paint mode the viewport doesn't render the alpha. I've tried all the display modes (Solid/Lookdev and rendered (Eevee & cycles) ) but none render the painted alpha values. I've attached a simple cube scene where the mesh has been painted with green vertex color, with the uppermost verts having alpha values. I've confirmed the alpha values are there and correct by opening the scene in 2.79 master where the Cube renders correctly, I've also imported to Maya where the again the cube renders correctly. ![Vertex_Alpha_in_2_8.PNG](https://archive.blender.org/developer/F5810684/Vertex_Alpha_in_2_8.PNG) ![Vertex_Alpha_in_2_79.PNG](https://archive.blender.org/developer/F5810652/Vertex_Alpha_in_2_79.PNG) ![Vertex_Alpha_in_Maya.PNG](https://archive.blender.org/developer/F5810657/Vertex_Alpha_in_Maya.PNG) [Vertex_Alpha_Cube.blend](https://archive.blender.org/developer/F5810665/Vertex_Alpha_Cube.blend) [system-info.txt](https://archive.blender.org/developer/F5810693/system-info.txt) **Exact steps for others to reproduce the error** Open attached .blend, select mesh and go to Vertex Paint mode. Cycle through the different viewport display modes and you'll see no alpha rendered.
Author

Added subscriber: @JamesOvnik

Added subscriber: @JamesOvnik

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Clément Foucault was assigned by Sebastian Parborg 2018-12-06 17:06:37 +01:00

The appended file does not work in 2.79 (it seems to be a 2.8 file).
However if you:

  1. Open the default cube scene in 2.79
  2. Go into vertex paint
  3. Choose the subtract brush and choose pick black as color.
  4. Paint some verts with the subtract brush
  5. Those verts should now have a visible transparent alpha value

I'm guessing that the draw methods in 2.8 does not support showing these alpha values.

@JamesOvnik did this ever work in blender 2.8? I've tried a to roll back to a 2.8 build from 11-01 and it still had this issue...

The appended file does not work in 2.79 (it seems to be a 2.8 file). However if you: 1. Open the default cube scene in 2.79 2. Go into vertex paint 3. Choose the subtract brush and choose pick black as color. 4. Paint some verts with the subtract brush 5. Those verts should now have a visible transparent alpha value I'm guessing that the draw methods in 2.8 does not support showing these alpha values. @JamesOvnik did this ever work in blender 2.8? I've tried a to roll back to a 2.8 build from 11-01 and it still had this issue...
Author

@ZedDB

Hi Sebastian, to the best of my knowledge this has been broken in all versions of 2.8 that I've tried.
Also worth noting is that the painting of vertex alpha is only possible in 2.79 master. It has never worked in 2.79 official.

@ZedDB Hi Sebastian, to the best of my knowledge this has been broken in all versions of 2.8 that I've tried. Also worth noting is that the painting of vertex alpha is only possible in 2.79 master. It has never worked in 2.79 official.

Added subscriber: @michaelknubben

Added subscriber: @michaelknubben

Added subscriber: @brecht

Added subscriber: @brecht

Well the issue is that we don't draw the vertex paint as part of the mesh but as an overlay.

Workbench does not support Alpha blending (it just supports OIT) so supporting VCol alpha would be very weird visually.

If Cycles would support this I would happily support it the same way in Eevee. But we must agree first on implementation with @brecht. As far as I know, Color sockets cannot use Alpha values because of OSL restrictions. Would the Fac output the alpha of the vertex color layer?

Well the issue is that we don't draw the vertex paint as part of the mesh but as an overlay. Workbench does not support Alpha blending (it just supports OIT) so supporting VCol alpha would be very weird visually. If Cycles would support this I would happily support it the same way in Eevee. But we must agree first on implementation with @brecht. As far as I know, Color sockets cannot use Alpha values because of OSL restrictions. Would the Fac output the alpha of the vertex color layer?

Using the Fac output for alpha seems a bit weak. Perhaps it would be better to add a new Vertex Color node similar to how we have UV Map, with color and alpha outputs.

Using the Fac output for alpha seems a bit weak. Perhaps it would be better to add a new Vertex Color node similar to how we have UV Map, with color and alpha outputs.

Added subscriber: @FeralMan

Added subscriber: @FeralMan

Hi guys, I'm working now on a project that uses "Vertex Paint" instead "Textures". I paint a lot of buildings needed for my project in Blender 2.8. But Now I need Alpha-Transparency support for the glow effect. What is the progress on support alpha-transparency? I'm interested in this feature to be developt.
I found a cheesy way to make it with the shader, you can read here https://blenderartists.org/t/vertex-paint-with-alpha-transperency/1164322
But it's not a cure.
Maybe some of the developer an interested and we can create a branch for "Vertex paint" feature. It's also lacking in layers system for painting. So it has a place for improvements.

Hi guys, I'm working now on a project that uses "Vertex Paint" instead "Textures". I paint a lot of buildings needed for my project in Blender 2.8. But Now I need Alpha-Transparency support for the glow effect. What is the progress on support alpha-transparency? I'm interested in this feature to be developt. I found a cheesy way to make it with the shader, you can read here https://blenderartists.org/t/vertex-paint-with-alpha-transperency/1164322 But it's not a cure. Maybe some of the developer an interested and we can create a branch for "Vertex paint" feature. It's also lacking in layers system for painting. So it has a place for improvements.

Added subscriber: @M.Pivetta

Added subscriber: @M.Pivetta

@fclem Is actually the not having support for alpha blending but only OIT or the overlay system the reason for being unable to hide mesh parts in Weight Painting and Vertex Coloring? (parts are not editable and invisible to the tools but still rendered so they are just in the way - it's clumsy somehow)

@fclem Is actually the not having support for alpha blending but only OIT or the overlay system the reason for being unable to hide mesh parts in Weight Painting and Vertex Coloring? (parts are not editable and invisible to the tools but still rendered so they are just in the way - it's clumsy somehow)
Clément Foucault was unassigned by Dalai Felinto 2019-12-23 16:35:44 +01:00

Added subscriber: @fclem

Added subscriber: @fclem

Closed as duplicate of #71947

Closed as duplicate of #71947
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
8 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#58711
No description provided.