You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I modified src/examples/tutorial/ascent_intro/cpp/ascent_scene_example1.cpp to add the following camera properties. Note that I added viewport and roll.
If I change xpan to 0.5 I get the following image.
Notice that the object stayed in the same location and the bounding box moved to the right and it is clipping to the bounding box. This seems bizarre. The object and bounding box should move and the object shouldn't be clipped against the bounding box. I actually think the clipping is 2D in nature.
If I change ypan to 0.5 I get the following image.
Same thing. The bounding box moved up and it is clipping to the bounding box.
If I change viewport to 0, 1, 0, 1 I get the following image.
Notice that the image stays the same and the text on the bounding box is roughly twice as large. I believe the full image should be shrunk and moved to the upper right hand quadrant.
The camera parameters aren't described anywhere and since they are the VTKm parameters I looked at them for descriptions. Zoom is described as negative making the object smaller, positive making the object larger and zero doing nothing. Actually, 1 does nothing, less than 1 makes the object smaller and larger than 1 makes the object larger. 0 actually crashes VTKm.
The text was updated successfully, but these errors were encountered:
It looks to me like the zoom behavior in Ascent is different from VTKm. There must be a logic in Ascent that converts the Ascent behavior to VTKm behavior. I believe the VTKm documentation is actually correct. I also think that the VTKm zoom is cumulative, so doing a zoom of 1 twice (VTKm zoom behavior) results in zooming in more the second time.
I modified
src/examples/tutorial/ascent_intro/cpp/ascent_scene_example1.cpp
to add the following camera properties. Note that I addedviewport
androll
.This gives the following image.

If I change

xpan
to 0.5 I get the following image.Notice that the object stayed in the same location and the bounding box moved to the right and it is clipping to the bounding box. This seems bizarre. The object and bounding box should move and the object shouldn't be clipped against the bounding box. I actually think the clipping is 2D in nature.
If I change

ypan
to 0.5 I get the following image.Same thing. The bounding box moved up and it is clipping to the bounding box.
If I change

viewport
to 0, 1, 0, 1 I get the following image.Notice that the image stays the same and the text on the bounding box is roughly twice as large. I believe the full image should be shrunk and moved to the upper right hand quadrant.
The camera parameters aren't described anywhere and since they are the VTKm parameters I looked at them for descriptions. Zoom is described as negative making the object smaller, positive making the object larger and zero doing nothing. Actually, 1 does nothing, less than 1 makes the object smaller and larger than 1 makes the object larger. 0 actually crashes VTKm.
The text was updated successfully, but these errors were encountered: