AlexeyAB
fcbb57a63f
Added ability to disable lighting in the viz-module.
...
When I reconstructed the 3D scene I want to show it as viz::WMesh with an initial value of lighting. For this I disable lighting and shadows:
cv::viz::Viz3d viz_3d_window("3D");
viz_3d_window.setRenderingProperty("mesh", cv::viz::LIGHTING, 0);
Most of the examples show the 3D reconstruction using the point cloud, but using the mesh one part of it creates a shadow on other parts of it if lighting ON.
Using a 3D mesh with disabled lighting gives the most realistic picture of the reconstructed 3D scene.
9 years ago
Antonella Cascitelli
079ceea616
Added new functionalities to viz module
...
- load OBJ file
- set offscreen rendering
- set roll angle of the camera
- get Mat screenshot of the current scene
- remove all lights from the scene
- add a custom light in the scene
- modify the size of the WImage3D widget
- added ambient property for the widget
Changed Vec3d in cv::viz::Color
Renamed method getMatScreenshotin getScreenshot
Modified showWidget
Fixed on viz::Color and reverted fix on vtkProp3D
Removed cameraRoll method
Merged load mesh method (for ply and obj file)
Fixed doc
Fixed cv::viz::WImage3D::setSize for vtk5.8
Fixed enum for cv::viz::Mesh::load
9 years ago
Anatoly Baksheev
02ebc4368c
Viz initial backport, compilation fixes, moved viz/viz.hpp header according to 2.4 style
11 years ago
Anatoly Baksheev
8d327fa497
updated for compatibility with VTK6.0
11 years ago
Anatoly Baksheev
e3ff28dacc
refactored WImage3D
11 years ago
Anatoly Baksheev
d591bd875b
fixed crash in enabling shading for polydata widgets
11 years ago
Anatoly Baksheev
25b417e8b2
added test for trajectories and fixed bug with float type
11 years ago
Anatoly Baksheev
b7cb3fe8e0
switched more to doubles
11 years ago
Anatoly Baksheev
186853a50f
mass switch from Affine3f to Affine3d
11 years ago
Anatoly Baksheev
80ab6e889f
refactoring
11 years ago
Anatoly Baksheev
159de9cc47
fixed potential crash
11 years ago
Anatoly Baksheev
f6e9b81188
reduced exported interface names (to make IntelliSense hints less littered)
11 years ago
Ozan Tonkal
8de46e1f81
removed trailing spaces
11 years ago
Ozan Tonkal
56f9168ac1
support VTK 6.0.0: cmakelist.txt might need to be refactored
11 years ago
Ozan Tonkal
26005a19bd
add license headers
11 years ago
Ozan Tonkal
94ca5d65d0
remove VIZ prefix from rendering properties, fix setRenderingProperties and getRenderingProperties methods
11 years ago
ozantonkal
af8a918e04
fix minor bug, minor cleaning, cv_assert with messages
11 years ago
ozantonkal
6c0c217562
removed reference counter in widgets, fixed memory leak
11 years ago
ozantonkal
4b443059ec
reverted widget reference count in order to avoid memory leak
11 years ago
ozantonkal
8007e07ad2
load mesh function is finalized: color range is always 0-255 and RGB due to vtkPLYReader limitations
11 years ago
ozantonkal
e4b13f2ef0
update reader after setting file name
11 years ago
ozantonkal
ed0162ad0b
remove reference counting in widgets
11 years ago
ozantonkal
cf36b8f817
rendering properties in Widget and Viz3d
11 years ago
ozantonkal
b032b4dded
move frompolyfile to widget class as static method, remove addpolygon and its alikes
11 years ago
ozantonkal
e106dcc606
remove include vtk headers from outside of precomp.hpp
11 years ago
ozantonkal
f5816c883f
fix setting color of 3D objects
12 years ago
ozantonkal
b066d1982f
mesh widget implementation
12 years ago
Anatoly Baksheev
83cb28f169
temp_viz removed
12 years ago
ozantonkal
d3dee3a2fe
explicit casting among widgets, removed implicit casting
12 years ago
Anatoly Baksheev
e4c3416f58
experimental widget casting functionality
12 years ago
Anatoly Baksheev
509a93c7ce
minor naming
12 years ago
ozantonkal
200b254bad
rearrange widget constructors
12 years ago
ozantonkal
10d955f18b
widget2d setcolor implementation
12 years ago
ozantonkal
318b1c00a9
implement assignment operator and copy constructor for all widgets existing
12 years ago
ozantonkal
195d60f4f8
fix widget delete bug
12 years ago
ozantonkal
d324c03b6a
initial redesigning widgets
12 years ago
ozantonkal
6e5ae98582
initial cloud widget implementation, fix safedowncasts
12 years ago
ozantonkal
653eda45f8
text widget implementation
12 years ago
Anatoly Baksheev
9d684a39da
Fixed ref counting bug, minor formatting
12 years ago
ozantonkal
ecdd8513fd
coordinate system widget implementation, update pose fix
12 years ago
ozantonkal
158ed299c1
reference counting in widget
12 years ago
Anatoly Baksheev
efa7f09048
slight refactoring of widget system code
12 years ago