translucent objects occlude other members in group instances #48983

Closed
opened 2016-07-31 18:20:47 +02:00 by Paolo Acampora · 12 comments
Member

System Information
all operating systems

Blender Version
Broken: 2.77 66552ca

Short description of error
Group instances do not take the "show_transparent" property into account. As a result, opaque members of a group may be occluded by translucent members. It dosn't happen every time as the drawing order depends by the group membership order, yet it may be a significant issue when using linked groups for character with glasses, or car with windows et cetera.

transp_sort_1.jpg

Internally, this is due to the dupli Base objects being temporary and therefore not able to be deferred to the transparency pass. A possible solution would be to draw only non transparent dupli members in the first pass, so that the transparent ones can be drawn afterwards.

A fix patch to help illustrating the issue
dupli_transp.diff
transp_sort_2.jpg

Exact steps for others to reproduce the error
A sample .blend file containing some grouped object and their group instance: the circle masks the monkey, but not the cube in the background when in material shading
transp_sort.blend

**System Information** all operating systems **Blender Version** Broken: 2.77 66552ca **Short description of error** Group instances do not take the "show_transparent" property into account. As a result, opaque members of a group may be occluded by translucent members. It dosn't happen every time as the drawing order depends by the group membership order, yet it may be a significant issue when using linked groups for character with glasses, or car with windows et cetera. ![transp_sort_1.jpg](https://archive.blender.org/developer/F330459/transp_sort_1.jpg) Internally, this is due to the dupli Base objects being temporary and therefore not able to be deferred to the transparency pass. A possible solution would be to draw only non transparent dupli members in the first pass, so that the transparent ones can be drawn afterwards. **A fix patch to help illustrating the issue** [dupli_transp.diff](https://archive.blender.org/developer/F330461/dupli_transp.diff) ![transp_sort_2.jpg](https://archive.blender.org/developer/F330467/transp_sort_2.jpg) **Exact steps for others to reproduce the error** A sample .blend file containing some grouped object and their group instance: the circle masks the monkey, but not the cube in the background when in material shading [transp_sort.blend](https://archive.blender.org/developer/F330460/transp_sort.blend)
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @PaoloAcampora

Added subscriber: @PaoloAcampora

Closed as duplicate of #43093

Closed as duplicate of #43093

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Issues regarding alpha sorting in the view-port currently a known issue. (closing as duplicate).

Issues regarding alpha sorting in the view-port currently a known issue. (closing as duplicate).
Author
Member

Thanks for your reply! :)

This isn't however a sorting issue: the problem here is with dupligroup ignoring the transparency flag altogether. Though somehow related, #43093 is about more transparent objects overlapping in the view, an issue yet to be addressed. This is about transparent dupli objects, even one transparent object only, not being added to the alpha pass, the way blender currently handles transparency.

It could be easily overlooked, if it wasn't that dupligroup are the reccomended way to reference characters in external blend file, and rather than a missing feature it's blender not being able to follow its own workflow.

Thanks for your reply! :) This isn't however a sorting issue: the problem here is with dupligroup ignoring the transparency flag altogether. Though somehow related, [#43093 ](https://developer.blender.org/T43093) is about more transparent objects overlapping in the view, an issue yet to be addressed. This is about transparent dupli objects, even one transparent object only, not being added to the alpha pass, the way blender currently handles transparency. It could be easily overlooked, if it wasn't that dupligroup are the reccomended way to reference characters in external blend file, and rather than a missing feature it's blender not being able to follow its own workflow.

Added subscriber: @LucioRossi

Added subscriber: @LucioRossi

Removed subscriber: @LucioRossi

Removed subscriber: @LucioRossi
Member

Added subscriber: @icappiello

Added subscriber: @icappiello

Added subscriber: @mont29

Added subscriber: @mont29

If you want the patch to be considered, I strongly suggest to submit it as a differential instead… But not sure how likely it is to get accepted - and most certainly not for 2.79, this is way too late for that kind of changes imho.

If you want the patch to be considered, I strongly suggest to [submit it as a differential](https://developer.blender.org/differential/diff/create/) instead… But not sure how likely it is to get accepted - and most certainly not for 2.79, this is way too late for that kind of changes imho.
Author
Member

Hello Bastien,

this is another case of a patch that was badly needed in production, so it was perfect to us, but might raise some concerns as a merge proposal, so it has been attached only to start a conversation.

Technically, it shouldn't be much of an overload: transparent objects are skipped when drawing dupligroups so that they can be rendered later. Of course this implies a further pass in which those objects are rendered and it is true that this might result in a (most probably very slight) overhead, but it should be benchmarked.

I can work on it to make it at least a good candidate for review, what has to be defined is if there is any interest in fixing the issue for the releases between 2.79 and 2.80

Hello Bastien, this is another case of a patch that was badly needed in production, so it was perfect to us, but might raise some concerns as a merge proposal, so it has been attached only to start a conversation. Technically, it shouldn't be much of an overload: transparent objects are skipped when drawing dupligroups so that they can be rendered later. Of course this implies a further pass in which those objects are rendered and it is true that this might result in a (most probably very slight) overhead, but it should be benchmarked. I can work on it to make it at least a good candidate for review, what has to be defined is if there is any interest in fixing the issue for the releases between 2.79 and 2.80
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
5 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#48983
No description provided.