EeVee/Workbench: image sequence offset doesn't have the expected behavior (as seen in Cycles) #72666

Closed
opened 2019-12-24 04:34:25 +01:00 by Casey Connor · 12 comments

System Information
Operating system: Linux and Windows
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.116 / Radeon (TM) RX 480 Graphics

Blender Version
Broken: version: 2.80rc1
Worked: (optional)

Short description of error
A camera with an "offset" Background Image sequence causes an object texture with "Window" texture coordinates to be offset as well, but only in EeVee (not Cycles)

Exact steps for others to reproduce the error
Image sequence:
images.tar
Blend File:
imageSequenceTest.blend

  • Download the attached images and .blend file.
  • Decompact the images in the same directory as the .blend file but within a folder named images/.
  • Open attached file.
  • Switch the selection between the mesh and camera to compare image sequence settings in the mesh material and camera background. (Must be the same).
  • Forward some frames, note that the images are synchronized.
  • In any of the image settings (for example the background), change the offset and forward or backward some frames.
  • In Eevee and Workbench it makes no difference other than not finding some images in the sequence.
  • In Cycles it works correctly.

This can be observed causing an issue at ~13:35 in this video: https://youtu.be/8irtcgc8GqE?t=814
...In that tutorial video, the instructor is removing a large tracking marker using "Window" texture coordinates. At ~13:35 he switches from EeVee to Cycles to do the texture baking on to the overlay plane.

The image sequence on the textured plane aligns perfectly with the duplicate background image sequence when the renderer is set to EeVee, but when he switches to Cycles, it is misaligned. Strangely, though, I don't think the camera object is using an "offset" in that case, so perhaps the bug (if it is one) goes deeper than I have supposed. [update: turns out he did set an offset, though I'm not clear if it was already in place at the timestamp in that video.]

Another way to reproduce the bug:

  • open blender with fresh/clean profile directory
  • delete default cube, add a plane, create a new material
  • in shader editor, delete BSDF node, add Image Texture node, connect Color output to Surface input of Material Output node
  • add Texture Coordinate node, connect Window output to Image Texture "Vector" input
  • in Texture Node, open provided image sequence, then enable "Cyclic" and "Auto Refresh"
  • select main camera; in Properties -> Camera pane, enable Background Images, click "Add Image" and then "Open" the same image sequence as before; Change Alpha to 1.0
  • assume camera view with numpad-0, change to rendered mode (EeVee, by default)
  • observe that the background image and the plane texture are in sync, as expected, even when changing frames
  • change render mode to Cycles, and observe the same
  • select camera object in outliner; in Properties->Camera->Background Images, change the Offset to 1
  • observe that in Cycles, the plane texture and background textures are offset by 1 frame
  • observe that in EeVee, they are not: the plane adopts the offset of the camera background image
**System Information** Operating system: Linux and Windows Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.116 / Radeon (TM) RX 480 Graphics **Blender Version** Broken: version: 2.80rc1 Worked: (optional) **Short description of error** A camera with an "offset" Background Image sequence causes an object texture with "Window" texture coordinates to be offset as well, but only in EeVee (not Cycles) **Exact steps for others to reproduce the error** Image sequence: [images.tar](https://archive.blender.org/developer/F8241760/images.tar) Blend File: [imageSequenceTest.blend](https://archive.blender.org/developer/F8244558/imageSequenceTest.blend) * Download the attached images and .blend file. * Decompact the images in the same directory as the .blend file but within a folder named `images/`. * Open attached file. * Switch the selection between the mesh and camera to compare image sequence settings in the mesh material and camera background. (Must be the same). * Forward some frames, note that the images are synchronized. * In any of the image settings (for example the background), change the offset and forward or backward some frames. * In Eevee and Workbench it makes no difference other than not finding some images in the sequence. * In Cycles it works correctly. This can be observed causing an issue at ~13:35 in this video: https://youtu.be/8irtcgc8GqE?t=814 ...In that tutorial video, the instructor is removing a large tracking marker using "Window" texture coordinates. At ~13:35 he switches from EeVee to Cycles to do the texture baking on to the overlay plane. The image sequence on the textured plane aligns perfectly with the duplicate background image sequence when the renderer is set to EeVee, but when he switches to Cycles, it is misaligned. ~~Strangely, though, I don't think the camera object is using an "offset" in that case, so perhaps the bug (if it is one) goes deeper than I have supposed.~~ [update: turns out he did set an offset, though I'm not clear if it was already in place at the timestamp in that video.] **Another way to reproduce the bug:** * open blender with fresh/clean profile directory * delete default cube, add a plane, create a new material * in shader editor, delete BSDF node, add Image Texture node, connect Color output to Surface input of Material Output node * add Texture Coordinate node, connect Window output to Image Texture "Vector" input * in Texture Node, open provided image sequence, then enable "Cyclic" and "Auto Refresh" * select main camera; in Properties -> Camera pane, enable Background Images, click "Add Image" and then "Open" the same image sequence as before; Change Alpha to 1.0 * assume camera view with numpad-0, change to rendered mode (EeVee, by default) * observe that the background image and the plane texture are in sync, as expected, even when changing frames * change render mode to Cycles, and observe the same * select camera object in outliner; in Properties->Camera->Background Images, change the Offset to 1 * observe that in Cycles, the plane texture and background textures are offset by 1 frame * observe that in EeVee, they are not: the plane adopts the offset of the camera background image
Author

Added subscriber: @clepsydrae

Added subscriber: @clepsydrae
Member

Added subscriber: @DanielBystedt

Added subscriber: @DanielBystedt
Member

I have sync between Eevee and cycles, so I don't experience the issue that you are describing.

I have attached a .blend with packed images for anyone who want's to test this thing.

System Information
Operating system: Windows-10-10.0.17763-SP0 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00

Blender Version
Broken: version: 2.82 (sub 6), branch: master, commit date: 2019-12-24 16:58, hash: 33eabb8220

img sequence test.jpg
imageSequenceTest.blend

I have sync between Eevee and cycles, so I don't experience the issue that you are describing. I have attached a .blend with packed images for anyone who want's to test this thing. **System Information** Operating system: Windows-10-10.0.17763-SP0 64 Bits Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00 **Blender Version** Broken: version: 2.82 (sub 6), branch: master, commit date: 2019-12-24 16:58, hash: `33eabb8220` ![img sequence test.jpg](https://archive.blender.org/developer/F8244555/img_sequence_test.jpg) [imageSequenceTest.blend](https://archive.blender.org/developer/F8244558/imageSequenceTest.blend)
Author

I tried that demo file but the packed images don't seem to come through... In the image editor I see only "5.png" and the image doesn't actually appear in the image editor when it's selected (although the icon/thumbnail seems to be correct?). Similarly the outliner shows only "5.png"... let me know if I'm doing something wrong...

screencap.png

I tried that demo file but the packed images don't seem to come through... In the image editor I see only "5.png" and the image doesn't actually appear in the image editor when it's selected (although the icon/thumbnail seems to be correct?). Similarly the outliner shows only "5.png"... let me know if I'm doing something wrong... ![screencap.png](https://archive.blender.org/developer/F8245142/screencap.png)
Germano Cavalcante changed title from EeVee texture with "Window" texture coordinates adopts the image sequence offset of the camera object, and Cycles does not to EeVee/Workbench: image sequence offset doesn't have the expected behavior (as seen in Cycles) 2019-12-31 13:21:58 +01:00

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Issue is related how images are cached and drawn. In EEVEE and Workbench an image can hold a single GPU texture and is refreshed when it is requested to do so GPU_texture_from_blender.
In the new drawing pipeline all textures are first updated. And then the draw calls are sorted to increase performance.

There are more related issues around this area and needs to be addressed by a good design and implementation so will mark this as known issue for now.

Issue is related how images are cached and drawn. In EEVEE and Workbench an image can hold a single GPU texture and is refreshed when it is requested to do so `GPU_texture_from_blender`. In the new drawing pipeline all textures are first updated. And then the draw calls are sorted to increase performance. There are more related issues around this area and needs to be addressed by a good design and implementation so will mark this as known issue for now.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

#70028 (EEVEE image sequence frame offset not working [in multiple image texture nodes having the same image datablock]) seems related.

#70028 (EEVEE image sequence frame offset not working [in multiple image texture nodes having the same image datablock]) seems related.
Author

Thanks Jeroen -- in the mean time, it is accurate to say that Cycles is "correct" and EeeVee/Workbench are not correct, as regards this issue right?

Thanks Jeroen -- in the mean time, it is accurate to say that Cycles is "correct" and EeeVee/Workbench are not correct, as regards this issue right?
Member

As far as I can tell, this is really the same as #70028 (EEVEE image sequence frame offset not working [in multiple image texture nodes having the same image datablock]), will merge these reports...

(feel free though to comment again if this is indeed something else...)

As far as I can tell, this is really the same as #70028 (EEVEE image sequence frame offset not working [in multiple image texture nodes having the same image datablock]), will merge these reports... (feel free though to comment again if this is indeed something else...)
Member

Closed as duplicate of #70028

Closed as duplicate of #70028
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#72666
No description provided.