jfavre
(Jean M. Favre)
August 30, 2024, 9:21am
1
I am not able to re-load a simple Python script with a Skybox background (ParaView 5.13). The following code always gives error, while it works fine loading the texture interactively
renderView1 = GetRenderView()
disk1 = Disk(registrationName='Disk1')
disk1.InnerRadius = 15.0
disk1.OuterRadius = 3000.0
disk1.CircumferentialResolution = 128
Show()
fname1 = "/local/apps/VTK/VTKBuild/ExternalData/Testing/Data/spiaggia_di_mondello_1k.hdr"
tex0 = CreateTexture(filename=fname1)
renderView1.BackgroundTexture = tex0
renderView1.UseColorPaletteForBackground = 0
renderView1.BackgroundColorMode = 'Skybox'
renderView1.ResetCamera()
vtkOpenGLTexture.cxx:195 ERR| vtkOpenGLTexture (0x5e467e8c2eb0): No scalar values found for texture input!
For me, the code works in 5.12 and not in 5.13.
mwestphal
(Mathieu Westphal (Kitware))
August 30, 2024, 11:57am
3
Hi @jfavre
I confirm the saving a python state file and then reloading it, either using pvpython or load state, causes the issue you are seeing.
I do not see anything wrong in the python code itself, it should work, so more investigation is needed as to why.
Could you open an issue ?
mwestphal
(Mathieu Westphal (Kitware))
August 30, 2024, 11:59am
4
Indeed, this look like a regression.
jaswantp
(Jaswant Panchumarti)
August 30, 2024, 12:34pm
6
This is a regression likely due to https://gitlab.kitware.com/paraview/paraview/-/commit/cca54429f9ee4323836568f6061d6a1605363f6b . That commit was done as part of adding “Import GLTF” to ParaView.
mwestphal
(Mathieu Westphal (Kitware))
September 2, 2024, 7:46am
7