Position in Render does not match viewport. (Driver properties) #69101

Closed
opened 2019-08-23 21:26:42 +02:00 by Tinamagomed · 7 comments

System Information
Operating system:Windows7
Graphics card: gtx1050ti

Blender Version
Bug:2.80 (release)

Short description of error
Information about the position of objects is obtained in a different way for the viewport and render when working with drivers

The position of the dummy in the viewport is taken from its past state. When rendering from the frame on which the viewport was standing.

Exact steps for others to reproduce the error
1.create a cube
2.create a dummy (or another cube)
3. Set for dummy driver in the X position
4. Script expression: (bX + aX) /2
Variables:
[bX is the position of the dummy on the x axis]
[aX is the position of the cube on the x axis]
5. create an animation on x axis for target cube
6. play in vievport
7. play in render

p.s. Rendered animation https://youtu.be/1HdPOXR1qCs (sound driver's work's right but render isn't) planks on sides must indicate acceleration (in vievport its right) indicators on front sides must indicate drift.
p.p.s I offer 2 solutions: 1. take the position of objects for drivers from their position in the last frame. 2. add the parameters "speed"(local and world space) and "acceleration"(same) to the properties of object's in drivers tab.

**System Information** Operating system:Windows7 Graphics card: gtx1050ti **Blender Version** Bug:2.80 (release) **Short description of error** Information about the position of objects is obtained in a different way for the viewport and render when working with drivers The position of the dummy in the viewport is taken from its past state. When rendering from the frame on which the viewport was standing. **Exact steps for others to reproduce the error** 1.create a cube 2.create a dummy (or another cube) 3. Set for dummy driver in the X position 4. Script expression: (bX + aX) /2 Variables: [bX is the position of the dummy on the x axis] [aX is the position of the cube on the x axis] 5. create an animation on x axis for target cube 6. play in vievport 7. play in render p.s. Rendered animation https://youtu.be/1HdPOXR1qCs (sound driver's work's right but render isn't) planks on sides must indicate acceleration (in vievport its right) indicators on front sides must indicate drift. p.p.s I offer 2 solutions: 1. take the position of objects for drivers from their position in the last frame. 2. add the parameters "speed"(local and world space) and "acceleration"(same) to the properties of object's in drivers tab.
Author

Added subscriber: @Chalouek

Added subscriber: @Chalouek
Tinamagomed changed title from Position in render and veivport bug. (Driver properties) to Position in Render does not match viewport. (Driver properties) 2019-08-24 01:24:50 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Since it takes time for each developer the recreate your setup, please provide your .blend file here, so we can reproduce.
Thx in advance.

Since it takes time for each developer the recreate your setup, please provide your .blend file here, so we can reproduce. Thx in advance.
Author
[Driver.blend](https://archive.blender.org/developer/F7776206/Driver.blend)
Member

Added subscriber: @Sergey

Added subscriber: @Sergey
Member

Hi there (and sorry for the massive delay in the reply)!

This issue looks like a dependency cycle.
The drivers variables are set up as Transform Channel types (and thus the dependency cycles are not reported, see below)
If I set the variables up as Single Property types (no functional change), you get the dependency cycles reported:

Driver_single_property.blend

Dependency cycle detected:
  OBV2/Parameters Component/DRIVER(location) depends on
  OBV2/Transform Component/TRANSFORM_FINAL() via 'RNA Target -> Driver'
  OBV2/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Simulation -> Final Transform'
  OBV2/Transform Component/TRANSFORM_EVAL() via 'Transform Eval -> Simulation Init'
  OBV2/Transform Component/TRANSFORM_LOCAL() via 'Eval'
  OBV2/Transform Component/TRANSFORM_INIT() via 'Transform Init'
  OBV2/Parameters Component/DRIVER(location) via 'Driver -> Driven Property'
Dependency cycle detected:
  OBV1/Parameters Component/DRIVER(location) depends on
  OBV1/Transform Component/TRANSFORM_FINAL() via 'RNA Target -> Driver'
  OBV1/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Simulation -> Final Transform'
  OBV1/Transform Component/TRANSFORM_EVAL() via 'Transform Eval -> Simulation Init'
  OBV1/Transform Component/TRANSFORM_LOCAL() via 'Eval'
  OBV1/Transform Component/TRANSFORM_INIT() via 'Transform Init'
  OBV1/Parameters Component/DRIVER(location) via 'Driver -> Driven Property'
Detected 2 dependency cycles

So having dependency cycles is not considered a bug.

See #72899 (Animation driver takes data from previous frame) on why these are not reported for Transform Channel driver vars:

In #72899#842566, @Sergey wrote:
The dependency cycle is not reported on purpose actually: while animated property can not currently control driver, rigs were using a lot of non-animated properties properties as a driver variable. For example, using non-animated X-value of a transform is fine to drive Y of scale.

This behavior is used a lot by rigs here and in other studios, and printing dependency cycle would spam terminal to a degree that you wouldn't be able to find real issues.

Think real solution would be to support such setups, but this is already reported as #64793.

In the end, this looks like a duplicate of #64793 (Bone driver leading to cyclic dependency (used to work in 2.79)) as well...

Hi there (and sorry for the massive delay in the reply)! This issue looks like a dependency cycle. The drivers variables are set up as `Transform Channel` types (and thus the dependency cycles are not reported, see below) If I set the variables up as `Single Property` types (no functional change), you get the dependency cycles reported: [Driver_single_property.blend](https://archive.blender.org/developer/F8262264/Driver_single_property.blend) ``` Dependency cycle detected: OBV2/Parameters Component/DRIVER(location) depends on OBV2/Transform Component/TRANSFORM_FINAL() via 'RNA Target -> Driver' OBV2/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Simulation -> Final Transform' OBV2/Transform Component/TRANSFORM_EVAL() via 'Transform Eval -> Simulation Init' OBV2/Transform Component/TRANSFORM_LOCAL() via 'Eval' OBV2/Transform Component/TRANSFORM_INIT() via 'Transform Init' OBV2/Parameters Component/DRIVER(location) via 'Driver -> Driven Property' Dependency cycle detected: OBV1/Parameters Component/DRIVER(location) depends on OBV1/Transform Component/TRANSFORM_FINAL() via 'RNA Target -> Driver' OBV1/Transform Component/TRANSFORM_SIMULATION_INIT() via 'Simulation -> Final Transform' OBV1/Transform Component/TRANSFORM_EVAL() via 'Transform Eval -> Simulation Init' OBV1/Transform Component/TRANSFORM_LOCAL() via 'Eval' OBV1/Transform Component/TRANSFORM_INIT() via 'Transform Init' OBV1/Parameters Component/DRIVER(location) via 'Driver -> Driven Property' Detected 2 dependency cycles ``` So having dependency cycles is not considered a bug. See #72899 (Animation driver takes data from previous frame) on why these are not reported for `Transform Channel` driver vars: > In #72899#842566, @Sergey wrote: > The dependency cycle is not reported on purpose actually: while animated property can not currently control driver, rigs were using a lot of non-animated properties properties as a driver variable. For example, using non-animated X-value of a transform is fine to drive Y of scale. > > This behavior is used a lot by rigs here and in other studios, and printing dependency cycle would spam terminal to a degree that you wouldn't be able to find real issues. > > Think real solution would be to support such setups, but this is already reported as #64793. In the end, this looks like a duplicate of #64793 (Bone driver leading to cyclic dependency (used to work in 2.79)) as well...
Member

Closed as duplicate of #64793

Closed as duplicate of #64793
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
2 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#69101
No description provided.