I want to have a button which will zoom the point (0,0,0) in the TGLViewer as much as possible.
This point is the collision point in my application and I need to see it very closely. I have tried several methods, but none of them gave me the result I want.
Here is the full view and the zoomed view (which is maximal mouse scroll zoom)
Now, if you really want to zoom deep into the vertex region, 3D view will turn out to be treacherous and also hard to control (are you aware the control and control-shift make all camera movements 10x, 100x more precise?).
The non-linear transforms of the projected views were developed just for this purpose. Try tutorials/eve/alice_vsd.C and then select “Eve” tab, select RhoPhi entry in object tree and then manipulate the “Distortion” value.
If you use perspective camera, you can also try using the dolly parameter to move the whole camera closer to the center. I think, if you only use FOV, the camera will calculate distance so as to cover the whole window with all the scene. Do try Setup(), please
You still didn’t tell us what you want to do … and the image didn’t get attached, either.
I have added links to posts with photos. Sorry because of that, on my computer posts looked fine.
I am now trying out Setup settings. It is not easy to find the right Bounding Box, but it might be ok. Why does it need all 8 points? Isn’t just 4 enough?
About finding the location of the box … it’s the same problem even if you call camera::configure … isn’t it?
What is your input that determines the region you should show? I somehow assumed you are trying too zoom into LHCb vertex region but I can’t remember why anymore
A couple of posts back I asked you if you are only using 3d and are sure 3d is the most useful representation …
I have successfully modified zoom button by using first Setup() function and then Configure().
Thank you!
Yes, I am using 3D view, and it is very hard to control when it’s zoomed.
I cannot run alice_vsd.C on windows, but i have searched for the words “Distortion” and “RhoPhi” in the code and I couldn’t find them. Where could I find the code for managing the non-linear transforms of the projected view? That might be even better solution.