Basis shapekey editing while rendering bug #50524

Closed
opened 2017-01-25 12:28:14 +01:00 by Jaroslav Novotny · 11 comments

System Information
Win 7 64bit GTX 980Ti

Blender Version
Broken: 2.78a (e8299c8)

Short description of error
When the basis shapekey is edited, all other shapekeys reflect the change, this is ok.
When there is a 3D view in render shading mode and a basis is edited, shapekeys no longer reflect the the basis change.

Exact steps for others to reproduce the error
See the cube in the scene with a shapekey.
Edit the Basis key of the cube (for example turn the cube into sphere Shift+Alt+S).
See the other shapekey working relatively to the new basis.

Open the file again and switch the right upper 3D window into rendered mode (doesn't matter if CPU or GPU).
Change the Basis key the same way.
The other shapekey no longer reflects the change of the basis.

shapekey_bug.blend

**System Information** Win 7 64bit GTX 980Ti **Blender Version** Broken: 2.78a (e8299c8) **Short description of error** When the basis shapekey is edited, all other shapekeys reflect the change, this is ok. When there is a 3D view in render shading mode and a basis is edited, shapekeys no longer reflect the the basis change. **Exact steps for others to reproduce the error** See the cube in the scene with a shapekey. Edit the Basis key of the cube (for example turn the cube into sphere Shift+Alt+S). See the other shapekey working relatively to the new basis. Open the file again and switch the right upper 3D window into rendered mode (doesn't matter if CPU or GPU). Change the Basis key the same way. The other shapekey no longer reflects the change of the basis. [shapekey_bug.blend](https://archive.blender.org/developer/F439898/shapekey_bug.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @jerryno

Added subscriber: @jerryno
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Bastien Montagne was assigned by Aaron Carlisle 2017-02-02 05:20:59 +01:00
Member

I can confirm that something is weird here. Assigning to #mont29 for now.

I can confirm that something is weird here. Assigning to #mont29 for now.
Member

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'

Can confirm the problem too… Thing is, shape keys are full of design issues, and iirc there are several ways to break the sync to the basis… just wasn’t aware of that one :(

Will try to have a lok again here, but last time I checked this was an unsolvable nightmare.

Can confirm the problem too… Thing is, shape keys are full of design issues, and iirc there are several ways to break the sync to the basis… just wasn’t aware of that one :( Will try to have a lok again here, but last time I checked this was an unsolvable nightmare.
Bastien Montagne removed their assignment 2017-02-02 12:51:44 +01:00

Added subscribers: @Sergey, @mont29

Added subscribers: @Sergey, @mont29

Problem is with prepare_mesh_for_viewport_render() in scene.c, which calls BM_mesh_bm_to_me().

That conversion from BMesh to Mesh does a very tricky handling of shape keys, to correctly propagate basis editing to 'children' shapekeys.

Issue is that for rendered viewport, this BMesh-to-Mesh conversion gets called repeatedly, but without calling Mesh-to-BMesh in-between, so diff data stored in BMesh to handle shapekeys become useless.

Unless @Sergey has nice idea to fix this, I’m tempted to consider this as known failure for now, especially since in Blender 2.8 we intend to make BMesh directly usable by render engines (and hence, that super-ugly conversion would not be needed anymore anyway here).

Problem is with `prepare_mesh_for_viewport_render()` in `scene.c`, which calls `BM_mesh_bm_to_me()`. That conversion from BMesh to Mesh does a very tricky handling of shape keys, to correctly propagate basis editing to 'children' shapekeys. Issue is that for rendered viewport, this BMesh-to-Mesh conversion gets called repeatedly, but without calling Mesh-to-BMesh in-between, so diff data stored in BMesh to handle shapekeys become useless. Unless @Sergey has nice idea to fix this, I’m tempted to consider this as known failure for now, especially since in Blender 2.8 we intend to make BMesh directly usable by render engines (and hence, that super-ugly conversion would not be needed anymore anyway here).

This issue was referenced by 9e2dca933e

This issue was referenced by 9e2dca933e3e1541c5d40a89e10a0277be94e2fe

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#50524
No description provided.