Same texture in two different views not working correctly
Applying the same texture in two different views does not work. It is kind of expected because it is not supported by VTK (see discussion on vtk/vtk#18336 (closed))
Steps to reproduce :
- Create a plane. Apply.
- In the
Display
section, select and load a texture. - Open a new layout (or split the current layout) and select Render View.
- Display the previously created plane.
- Apply the previously loaded texture to the plane in this view.
- Select the first view again : the texture will (or not, depending of your hardware) display wrongly the texture.
Visible warnings :
( 38.292s) [paraview ] vtkOpenGLState.cxx:166 WARN| Error in cache state for GL_ACTIVE_TEXTURE
( 38.298s) [paraview ] vtkOpenGLState.cxx:274 WARN| at stack loc
0x7f27877e2888 : ??? [(???) ???:-1]
0x7f27877dd355 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-pv5.9.so.1) ???:-1]
0x7f278b642826 : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-pv5.9.so.1) ???:-1]
0x7f278b6468cc : vtkOpenGLState::SetEnumState(unsigned int, bool) [(libvtkRenderingOpenGL2-pv5.9.so.1) ???:-1]
0x7f278b647db1 : vtkOpenGLState::vtkglDisable(unsigned int) [(libvtkRenderingOpenGL2-pv5.9.so.1) ???:-1]
0x7f278b5f7b6d : vtkOpenGLProperty::Render(vtkActor*, vtkRenderer*) [(libvtkRenderingOpenGL2-pv5.9.so.1) ???:-1]
0x7f278516be09 : vtkPVLODActor::Render(vtkRenderer*, vtkMapper*) [(libvtkRemotingViews-pv5.9.so.1) ???:-1]
0x7f278ab23f95 : vtkActor::RenderTranslucentPolygonalGeometry(vtkViewport*) [(libvtkRenderingCore-pv5.9.so.1) ???:-1]
0x7f278ac4ccca : vtkProp::RenderFilteredTranslucentPolygonalGeometry(vtkViewport*, vtkInformation*) [(libvtkRenderingCore-pv5.9.so.1) ???:-1]
0x7f278b512a6b : vtkDefaultPass::RenderFilteredTranslucentPolygonalGeometry(vtkRenderState const*) [(libvtkRenderingOpenGL2-pv5.9.so.1) ???:-1]
0x7f278b6f7d0a : vtkTranslucentPass::Render(vtkRenderState const*) [(libvtkRenderingOpenGL2-pv5.9.so.1) ???:-1]
0x7f278b51c425 : vtkDualDepthPeelingPass::RenderTranslucentPass() [(libvtkRenderingOpenGL2-pv5.9.so.1) ???:-1]
0x7f278b51f7c6 : vtkDualDepthPeelingPass::PeelTranslucentGeometry() [(libvtkRenderingOpenGL2-pv5.9.so.1) ???:-1]
0x7f278b51e5da : vtkDualDepthPeelingPass::Peel() [(libvtkRenderingOpenGL2-pv5.9.so.1) ???:-1]
0x7f278b51a0fe : vtkDualDepthPeelingPass::Render(vtkRenderState const*) [(libvtkRenderingOpenGL2-pv5.9.so.1) ???:-1]
[...]
These warnings are not displayed when using the binary release of 5.9.1 but are when using my custom build.
Issue is reproducible if two separate planes are used. Also if we load a different texture for each view then we also have a correct behavior.
Edited by Timothee Chabat