Videotexture does not use sky color for off-screen rendering #43822
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#43822
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Tested on OS X 10.9 as well as Windows 7
Blender Version
Broken: 2.73 Current Master
Worked: Never?
Short description of error
The videotexture render-to-texture function defaults to (0,0,1) for the sky color, regardless of what it is set in the world settings. It should use the World Sky color.
Exact steps for others to reproduce the error
See sample file attached. vidTextureBug.blend
Changed status to: 'Open'
Added subscriber: @MikePan
Ah sorry, meant to put this under 'Game Engine', but somehow missed it.
Added subscriber: @hg1
Actually that is no bug. This is more a wanted feature.
You can set the background color with Python (mirror.source.background = [64, 50, 37, 255])
To calcualte the same color, switch the colorwheel to Hex and 40 32 25 and calculate to decimal values.
I see. Although I would expect the default behaviour to take the color from the sky. Python can used to override when needed. The current behaviour seems unintuitive.
Added subscriber: @JorgeBernalMartinez
The patch seems easy (#43822.patch) but it has another issue related:
As we use getBackColorRed/Green/Blue as we use getAmbientColorRed/Green/Blue, we always get the ambient color. HG1, is this issue fixed with yours differential patches ( I refer to D148 an on)?
I suggest to add this feature after my mist patches are in the trunk (after Blender 2.74 release), because one of my patches D158 will remove the getBackColorRed() methods.
After the mist patches we can add a getBackColo() which returns m_backgroundcolor and initialize the background color for the video texture module.
Ok.
Analysing the code I saw that if we force the mirror background color to the world background color we could have issues when the mirror is located into a structure (i.e. a room) as we will apply an outside color to one object that is inside of a structure which can't see or receive colors from outside.
Then, I propose you the following solution:
is it a valid/acceptable proposal?
Mike, is it ok for you the solution?
I appreciate the work you've put into this.
But I am afraid I don't understand the issue you described. If the mirror is in an enclosed room, wouldn't it render and reflect the room instead of the sky color? While it's relatively trivial to setup a script to use the world color, wouldn't a sensible default be the skycolor in the first place? The Api can be used to override the color if desired.
This issue was referenced by
dc95ca92ca
Changed status from 'Open' to: 'Resolved'
Closed by commit
dc95ca92ca
.