Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there,
I would like to use your VTK-QtQuick integration in a project, but I was having issues when building against VTK 8.2.0.
ISSUE 1
As mentioned by others, the rendering resulted in a 1x1 white pixel. I can confirm that this issue happens only with VTK 8.2.0, with version 8.0.1 or 8.1.2 the rendering works perfectly fine.
FYI: I am using Qt 5.10.0, at the moment can't test with your preferred version 5.12.1.
I figured the issue is caused by an inconsistent OpenGL state: The QtQuick side of things modify the GL context directly, which is then not synchronized correctly with the VTK OpenGL context.
I made some changes which circumvent this issue so I can get the app to render without any GL or VTK errors reported.
There is one line I'm totally puzzled about though:
this->State->Initialize(this);
If you figure out why is this necessary, or if you have a better suggestion please let me know :)
ISSUE 2
There was another rendering related issue which I fixed: The interactor often interrupted the rendering process which caused really strange outcome, the model "jumping around" or being re-scaled at random.
By disabling the interactor for the duration of the rendering I get smooth and problem free renderings.