Rendering/Camera near/far clipping parameters

Hello again,

Another question regarding the animation I’m making. These two have to do with rendering and/or camera parameters. (Probably more to come.)

First, I’d like to know if/how I can control the camera’s near/far clipping planes and actually have them take effect. I make this call just before the Render() in my Python animation cue tick() function:

GetActiveCamera().SetClippingRange(0.1, 7000.0)

But this seems to be ignored (and so I presume must be altered within the Render() call itself). And this can happen at both ends. So I sometimes get pictures like this:


This is an extreme example, but several frames end up like this, and then it returns to “normal”. And, no, I’m not below the terrain – here’s just two frames later where the clipping is okay – note that the sphere at the top was also clipped in the above frame:

My fear is that there’s nothing I can do about this, short of altering the VTK rendering code. But if there is a way to have the near/far clipping values take effect, I am ready to give it a try.

Thanks in advance,
Bill

If I may respond to my own note, I thought I should point out that this issue also exists when using ParaView interactively. So in the GIF image below, I just rotate my view, and the sphere in the center gets clipped depending on the distance of an object in the background. There are objects other than the terrain and ball in the scene, and I found that an extra light that I had added was exacerbating the problem, but regardless, as the Python shell indicates, even if I specify the clipping planes I want to use, as soon as a render occurs, they are set back to what ParaView (or VTK) want them to be. My desire is for there to be a way for me to set the clipping planes such that Render() won’t alter them – can it be done? (or more specifically, can it be done without editing the VTK source code?)

Thanks,
Bill

I have a similar issue, wondering if there’s a solution:

I’ve tried clicking all these buttons:

And toggling Camera Parallel Projection + clicking all those buttons.

I’ve also tried changing all these values:

And looked through the entire Settings panel for anything relevant. And I can’t find anything that seems to get rid of the clipping issue.

Here’s a link to a download (should be available for ~a week) of my dataset, state-file included:

https://transfer.coreform.com/xGySg9WAEJ/dataset.tar.gz

Client Information:
Version: 5.12.0
VTK Version: 9.3.20231030
Qt Version: 5.15.2
vtkIdType size: 64bits
Embedded Python: On
Python Library Path: C:\Program Files\ParaView 5.12.0\bin\lib
Python Library Version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Python Numpy Support: On
Python Numpy Path: C:\Program Files\ParaView 5.12.0\bin\Lib\site-packages\numpy
Python Numpy Version: 1.25.2
Python Matplotlib Support: On
Python Matplotlib Path: C:\Program Files\ParaView 5.12.0\bin\Lib\site-packages\matplotlib
Python Matplotlib Version: 3.7.2
Python Testing: Off
MPI Enabled: Off
ParaView Build ID: superbuild 2891f7bc1038636e1e1abd941be85832dfd65d01 (!1178)
Disable Registry: Off
Test Directory: 
Data Directory: 
SMP Backend: TBB
SMP Max Number of Threads: 16
OpenGL Vendor: NVIDIA Corporation
OpenGL Version: 3.2.0 NVIDIA 556.12
OpenGL Renderer: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2
Accelerated filters overrides available: No

Connection Information:
Remote Connection: Yes
Separate Render Server: No
Reverse Connection: No
Number of Processes: 8
Disable Remote Rendering: Off
IceT: On
Tile Display: Off
vtkIdType size: 64bits
SMP Backend: TBB
SMP Max Number of Threads: 128
Embedded Python: On
Python Library Path: /home/gvernon2/cf/master/conda_deps_lin64/paraview_headless/lib/python3.10
Python Library Version: 3.10.13 (main, Feb 29 2024, 17:45:57) [GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
Python Numpy Support: On
Python Numpy Path: /home/gvernon2/cf/master/conda_deps_lin64/paraview_headless/lib/python3.10/site-packages/numpy
Python Numpy Version: 1.25.2
Python Matplotlib Support: On
Python Matplotlib Path: /home/gvernon2/cf/master/conda_deps_lin64/paraview_headless/lib/python3.10/site-packages/matplotlib
Python Matplotlib Version: 3.7.2
OpenGL Vendor: Mesa
OpenGL Version: 4.5 (Compatibility Profile) Mesa 24.0.5-1ubuntu1
OpenGL Renderer: llvmpipe (LLVM 17.0.6, 256 bits)
Headless support: EGL 
Accelerated filters overrides available: No