ImageMirror doesn't work in BlenderPlayer with quadbuffered #43537
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#43537
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?
ImageMirror functionality uses active camera to render to texture instead of rendering the view of a camera at the mirror plane along the normal.
Use the blend file here, and test with the embedded player. Only change is to enable quad buffered
http://www.tutorialsforblender3d.com/BGE_Python/Video_Texture/ImageMirror/ImageMirror.html
Changed status to: 'Open'
Added subscriber: @AngusHollands-4
I also expect that quadbuffer will fall back to no-stereo in the case that no quadbuffer capable card is present, which is why I do not see this on my machine.
Added subscribers: @BenoitBolsee, @dfelinto
@BenoitBolsee any clues on that?
I don't understand the problem. ImageMirror does a render to texture using a internal camera that is oriented along the normal of the mirror and placed at the symmetric position than the target camera; it does not use the active camera as the description above tends to say.
I ran the demo in Blender and in the player, the reflection image is geometrically exact as can be seen by the alignment of the floor lines across the mirror.
Unfortunately in blender player, it is using the active camera, not the mirror plane camera added at runtime. Only fails with quad buffer on a machine which supports it afaict
Now I understand. If the problem is with quad buffer, than most probably there is a mixup between the buffers: the render happens on the right buffer while the texture is loaded from the left buffer or something like that. I think there's just a missing call to glDrawBuffer.
I can easily add that but testing will be more difficult: although I have a quadro FX 370 card, it seems that the Linux driver does not support it for quad buffer stereo. I'll prepare a patch anyway.
Here is a patch that I think should work. Can someone with a quadro card test it?
quadbuffer.patch
Added subscriber: @hg1
I have tested it. It is working with my FX3700M.
Sorry, in the middle of a crunch period I forgot to reply. It's working for our test machine, thanks Benoit!
Changed status from 'Open' to: 'Resolved'
This comment was removed by @AngusHollands-4
Changed status from 'Resolved' to: 'Open'
The patch seems good from my end, and HG1, can this be comitted?
Added subscriber: @Moguri
Seeing as this patch came from Benoit, who is the module owner of VideoTexture, and two people have confirmed that it fixes the issue, I think this patch can be committed.
This issue was referenced by
b329016b29
Changed status from 'Open' to: 'Resolved'
Closed by commit
b329016b29
.