Setup Tracking Scene not working in 2.8 #56413

Closed
opened 2018-08-16 00:35:26 +02:00 by Dalai Felinto · 16 comments

Blender Version
Broken: blender2.8 HEAD (a495df6b3b)
Worked: 2.79a

Short description of error
We need to update the script to address the following:
* Update world for EEVEE settings
* Adjust the layer code to use collections
* Remove broken world API

Exact steps for others to reproduce the error
Open a file with motion tracker (e.g., gun_track.blend) and in the solve tab click on Setup Tracking Scene. It will throw some Python errors.

**Blender Version** Broken: blender2.8 HEAD (a495df6b3b07) Worked: 2.79a **Short description of error** We need to update the script to address the following: * Update world for EEVEE settings * Adjust the layer code to use collections * Remove broken world API **Exact steps for others to reproduce the error** Open a file with motion tracker (e.g., `gun_track.blend`) and in the solve tab click on `Setup Tracking Scene`. It will throw some Python errors.
Author
Owner

Added subscriber: @dfelinto

Added subscriber: @dfelinto
Author
Owner

Added subscribers: @sebastian_k, @Sergey

Added subscribers: @sebastian_k, @Sergey
Author
Owner

@sebastian_k maybe this is something you could help with?

@sebastian_k maybe this is something you could help with?

Added subscriber: @lowercase

Added subscriber: @lowercase

how about an option to make a simple setup using a shadow catcher plane and just one render layer..? that is often enough to have a working scene

how about an option to make a simple setup using a shadow catcher plane and just one render layer..? that is often enough to have a working scene

I will have a look. Maybe first just kick out all the old stuff so that at least the basic setup of constraints and background images work. Speaking of which, the whole camera background image stuff doesnt seem to work all that great yet. Footage is always drawn in front of objects, no matter the front/back setting in camera background images. Also the colors are completely off in solid mode.

I will have a look. Maybe first just kick out all the old stuff so that at least the basic setup of constraints and background images work. Speaking of which, the whole camera background image stuff doesnt seem to work all that great yet. Footage is always drawn in front of objects, no matter the front/back setting in camera background images. Also the colors are completely off in solid mode.
Author
Owner

Added subscribers: @fclem, @Jeroen-Bakker

Added subscribers: @fclem, @Jeroen-Bakker
Author
Owner

I will have a look

Thank you.

Footage is always drawn in front of objects, no matter the front/back setting in camera background images.

I believe this has to do with EEVEE drawing the background together with the scene (cc @fclem).

Also the colors are completely off in solid mode.

I know, Workbench is probably messing up some of the FBOs (cc @Jeroen-Bakker / @fclem).

That said these are separate issues than the reported here.

> I will have a look Thank you. > Footage is always drawn in front of objects, no matter the front/back setting in camera background images. I believe this has to do with EEVEE drawing the background together with the scene (cc @fclem). > Also the colors are completely off in solid mode. I know, Workbench is probably messing up some of the FBOs (cc @Jeroen-Bakker / @fclem). That said these are separate issues than the reported here.
Member

Added subscriber: @SeanKennedy

Added subscriber: @SeanKennedy

I have managed to make the Setup_Tracking_Scene operator work without errors by disabling the old BI and layer stuff, now I am trying to make the renderlayer setup work again.
However, it seems as if there are some python bindings missing still.
To make the setup work I am planning to have 2 Viewlayers, Background and Foreground (as was already implemented in the new script), with two collections, "background" and "foreground". In the Foreground viewlayer, the background collection will be set to "holdout", in the Background view_layer the foreground collection will be set to indirect only.
I can make the setup work with the outliner View_Layer menu, however I could not find a way to do that via python. Something like bpy.context.scene.view_layers["Background"].collections["foreground"].holdout = True
That or at least something similar does not seem to exist yet.
Or if it does, maybe someone can give me a hint?

I have managed to make the Setup_Tracking_Scene operator work without errors by disabling the old BI and layer stuff, now I am trying to make the renderlayer setup work again. However, it seems as if there are some python bindings missing still. To make the setup work I am planning to have 2 Viewlayers, Background and Foreground (as was already implemented in the new script), with two collections, "background" and "foreground". In the Foreground viewlayer, the background collection will be set to "holdout", in the Background view_layer the foreground collection will be set to indirect only. I can make the setup work with the outliner View_Layer menu, however I could not find a way to do that via python. Something like `bpy.context.scene.view_layers["Background"].collections["foreground"].holdout = True ` That or at least something similar does not seem to exist yet. Or if it does, maybe someone can give me a hint?

@dfelinto I am wondering if it even makes sense to have an EEVEE setup at this point. As far as I can see EEVEE does not have something like a shadow catcher, nor can collections ins view_layers be set to holdout, which is both kind of important for a working setup. So I would first make it use Cycles.

@dfelinto I am wondering if it even makes sense to have an EEVEE setup at this point. As far as I can see EEVEE does not have something like a shadow catcher, nor can collections ins view_layers be set to holdout, which is both kind of important for a working setup. So I would first make it use Cycles.

This issue was referenced by 17c245e294

This issue was referenced by 17c245e2945968e073731f1799c093b3d807f0a3
Author
Owner

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscriber: @madmage

Added subscriber: @madmage

I do not think it can be considered "resolved": the commit considered as the Fix, as far as I understand, works only with Cycles, and I (and I think a lot of people like me) do not understand how to switch the Motion Tracker to Cycles (switching it in the render tab does not work).

I do not think it can be considered "resolved": the commit considered as the Fix, as far as I understand, works only with Cycles, and I (and I think a lot of people like me) do not understand how to switch the Motion Tracker to Cycles (switching it in the render tab does not work).

...in particular, I do not think that an error message is a good solution for a problem. I would better disable that button (or hide it) in case Cycles is not used. What is still missing, I think, is a button that simply put the solver constraint on the camera (without anything else related to adding objects to the scene I mean).

...in particular, I do not think that an error message is a good solution for a problem. I would better disable that button (or hide it) in case Cycles is not used. What is still missing, I think, is a button that simply put the solver constraint on the camera (without anything else related to adding objects to the scene I mean).
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
6 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#56413
No description provided.