Discussion:
[vtkusers] Point Smoothing
meakcey
2018-10-31 14:20:48 UTC
Permalink
Hi
I am working on a point cloud renderer with Qt which OpenGLWidget has been
promoted as custom class and all VTK related codes are included. That seems
working stable.

When I rendered point cloud, they seems as square and so I tried to apply
GetRenderWindow()->PointSmoothingOn();
in the beginning of the load events.

Points seems as circle till I resize or move the window.
How can I keep them always circle?





--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
meakcey
2018-11-02 00:22:18 UTC
Permalink
Somehow any of PointSmoothing related functions did not work.
Finally that has resolved by adding glEnable(GL_POINT_SMOOTH) before
renderVTK();

Much better like below

...
actor->SetMapper(mapper)
renderer->AddActor(actor);

glEnable( GL_POINT_SMOOTH );
glEnable( GL_BLEND );
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
glPointSize( 2.0 );

renderVTK();



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers

Loading...