-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to use Vtk9.0.0 #56
Comments
Did't compile with vtk9.0.0. auto FboOffscreenWindow::SetFramebufferObject(QOpenGLFramebufferObject *fbo) -> void {
this->BackLeftBuffer = this->FrontLeftBuffer = this->BackBuffer = this->FrontBuffer = static_cast<unsigned int>(GL_COLOR_ATTACHMENT0);
auto size = fbo->size();
this->Size[0] = size.width();
this->Size[1] = size.height();
this->NumberOfFrameBuffers = 1;
this->FrameBufferObject = static_cast<unsigned int>(fbo->handle());
this->DepthRenderBufferObject = 0;
this->TextureObjects[0] = static_cast<unsigned int>(fbo->texture());
this->OffScreenRendering = 1;
this->OffScreenUseFrameBuffer = 1;
this->Modified();
} So, from this commit some real changes must be made to compile with the latest vtk. |
According to this issue on gitlab vtk it seems still possible to to this.But I don't know how. |
Any solution yet? I'm facing the same problem. |
Hey @danielbuhrig, I'm working on refactoring the project and set things up for VTK 9.0 but that will take some time. I'll keep this issue updated as development goes on |
Cool, thank you!
…On Thu, Sep 24, 2020 at 1:21 PM A. E. Szalo ***@***.***> wrote:
Hey @danielbuhrig <https://github.com/danielbuhrig>, I'm working on
refactoring the project and set things up for VTK 9.0 but that will take
some time. I'll keep this issue updated as development goes on
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#56 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4IVZU2G2FCEIUXDWE4IW3SHMTVNANCNFSM4N7FRO2A>
.
|
@qCring Did you make any progress here? I'm also at looking integrating using the auto FboOffscreenWindow::SetFramebufferObject(QOpenGLFramebufferObject* fbo) -> void
{
vtkTextureObject* tex = vtkTextureObject::New();
tex->AssignToExistingTexture(fbo->handle(), fbo->texture());
this->GetDisplayFramebuffer()->AddColorAttachment(0, tex);
this->Modified();
} After making this change, I'm having some problems with initializing the OpenGL state. In Let me know if you've seen this, maybe we can help each other out. EDIT: If I call
I'm just going to roll back to 8.2 for now. |
Hi Jhuels
The initialization you get is most likely due to Qt initializing the
context using the message loop.
I had similar issues with this before and polled the application - process
events until the window is valid. If not all glXXX calls will segfault.
We are still stuck with 8.2 for other reasons, but I will soon move to 9.0
/Jens
…On Tue, 10 Nov 2020, 22:12 jhuels, ***@***.***> wrote:
@qCring <https://github.com/qCring> Did you make any progress here? I'm
also at looking integrating using the QQuickFrameBuffer interface. From
your code, I believe the SetFrameBufferObject function needs to become
something like the following:
auto FboOffscreenWindow::SetFramebufferObject(QOpenGLFramebufferObject* fbo) -> void
{
vtkTextureObject* tex = vtkTextureObject::New();
tex->AssignToExistingTexture(fbo->handle(), fbo->texture());
this->GetDisplayFramebuffer()->AddColorAttachment(0, tex);
this->Modified();
}
After making this change, I'm having some problems with initializing the
OpenGL state.
In OpenGLInitState the application is getting an Access Violation in
vtkOpenGLState::Initialize() on the following function ::glBlendFuncSeparate(cs.BlendFunc[0],
cs.BlendFunc[1], cs.BlendFunc[2], cs.BlendFunc[3]);.
Let me know if you've seen this, maybe we can help each other out.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#56 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQJKYXPDVEY6NCAZ5S45I3SPGUCJANCNFSM4N7FRO2A>
.
|
Thanks for the hint Jens! I found out it was due to GLEW not being initialized before setting up the context state. This can be solved by calling |
@jhuels Did you means that you have success to migrate to VTK 9.0? |
No, I just used 8.2 cause it worked. I had the same issue on both versions, so presumably you could get 9.0 working as well. |
Is it possible to use Vtk9.0.0, since I know Vtk9.0.0 fixed many issues.
The text was updated successfully, but these errors were encountered: