multiview pageflip working on X11 #44327
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#44327
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?
Just to say that I've been able to activate "pageflip" mode (time sequential) just by adding 1 line in wm_stereo.c :
Only tried with X11/Linux
Changed status to: 'Open'
Added subscriber: @CedricPAILLE
Added subscriber: @dfelinto
Can you try something else?
See if what you get from glGetBooleanv(GL_STEREO) before and and after you set your stereo mode to time sequential
(also I committed your patch, thanks)
For example, try to call the following function:
I'll try tomorrow but I guess it'll return true cause I've enabled stereo in ghost glx
Yes but I wonder if it will return True always, or only after the window is created with the quadbuffer/stereo context. And thanks
(updated the code snippet with the correct flag)
Okay,
For me, pageflipping doesn't require fullscreen mode, so :
next, I don't know why, I've a crash after "wm_stereo3d_set_exec" at "wm_window_fullscreen_toggle_exec" when switching to pageflip mode, so I've changed to code to this (You don't have to apply this one if you applied the patch above):
"window" is null here and generates a crash
to finish, yes, before calling "wm_stereo3d_set_exec", glGetBooleanv(GL_STEREO, ..) returns 0 and 1 after, so, it's working normally
Best regards, and thank you.
Added subscriber: @Sergey
This comment was removed by @CedricPAILLE
I've tested last commit, there's a problem remaining with quadbuffer, the GL_STEREO test is done before creating the new window, and I get an error:
"Quadbuffer not supported"
so, I've tuned the code to that :
and it's ok
Can you get on IRC today at some point? There are something else I would like you to try, but it's counterproductive to do it from here.
Or rather, what I still wanted to test is what you get if you add the
wm_stereo3d_quadbuffer_supported()
test right after thewm_window_close()
.I wonder if Blender is already using the new "opengl context". (add a print in the test to see what it returns)
Another option is to add
CTX_wm_window_set(C, win);
right after thewin = wm->windows.last;
and add the test after that.we can chat on irc monday morning if you wish I don't have access to my computer this weekend.
FYI, wm_stereo3d_quadbuffer_supported() returns true after wm_window_close(). I'm on IRC (cedricp) if you wanna chat.
Changed status from 'Open' to: 'Resolved'
@CedricPAILLE I committed the code based on the code snippets here and it's working fine in a linux + quadro + nvidia 3d vision.
I'll try on my Mac later, to make sure it doesnt crash everything when stereo is not supported.
So far this is enabled only in debug builds, more details in the commit log in
efe41ae7fd
Thanks for all the testing.