I am facing a problem on a new computer.
In my application I highlight the node selection using a dedicated actor where I put :
GetProperty().SetPointSize(10.0)
and
GetProperty().RenderPointsAsSpheresOn()
But on my new computer (which uses the internal graphic of an AMD Ryzen 5600G) the vertices doesn’t show at all.
If I delete the RenderPointsAsSpheresOn then it works and if I try with a mesa opengl32.dll it also works.
It seems to be an opengl related problem but do you have any idea on how to solve it?
I already checked that I well have latest graphic drivers.
My application is coded in python using pyside2 and a QVTKRenderWindowInteractor.
Do you get spheres elsewhere? I mean, try to run the code in another hardware. It is also possible that it is a graphics card driver bug. So, make sure you have the latest version installed.
Hi,
The behavior is correct on all other computers I have tested, I already checked that I use the latest graphic drivers :-/ I can imagine some opengl problems on old computers but mine is really recent.
I managed to make something that works by using a vtkGlyph3D and a vtkSphereSource but this is less efficient when selecting a large amount of nodes. Especially if I want spheres to keep a constant screen size I added a SetScaleFactor(self.camera.GetParallelScale()) in RenderEvent which become really slow if a lot of spheres are displayed.
In the example that I send before, the sphere has a double array added to
the cell data and set as the active scalar. The mapper is set to
ScalarModeToUseCellData. On the property of the actor both
RenderLinesAsTubesOn and RenderPointsAsSpheresOn are set. However, only the
tubes are shown, the spheres for the vertices are not.
Hi, is there an update on this issue? I have Thinkpad with Radeon 15E7 graphics (Ryzen 7730U), latest FW 24.7.1, opengl api 4.6 and I have the same problem. Just simple app showing a dot shows nothing when RenderPointsAsSpheres = True, no error produced.
On many other laptops and PC it is working without any problems so it’s probably radeon related.
Any ideas for solution? Using vtkSphereSource is possible but super slow for large number of points and other proposed solutions does not work.