| Summary: | Incorrect viewpoint presentation with theta=90 deg | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Michael Kelsey <kelsey> |
| Component: | visualization | Assignee: | perl |
| Status: | RESOLVED INVALID | ||
| Severity: | minor | CC: | garnier |
| Priority: | P4 | ||
| Version: | 9.4 | ||
| Hardware: | Apple | ||
| OS: | Mac OS X | ||
| Attachments: |
/vis/viewer/set/viewpointThetaPhi 89 -90
/vis/viewer/set/viewpointThetaPhi 89.99995 -90 /vis/viewer/set/viewpointThetaPhi 90 -90 /vis/viewer/set/viewpointThetaPhi 90.00005 -90 |
||
|
Description
Michael Kelsey
2011-01-12 06:23:39 CET
Created attachment 95 [details]
/vis/viewer/set/viewpointThetaPhi 89 -90
Created attachment 96 [details]
/vis/viewer/set/viewpointThetaPhi 89.99995 -90
Created attachment 97 [details]
/vis/viewer/set/viewpointThetaPhi 90 -90
Created attachment 98 [details]
/vis/viewer/set/viewpointThetaPhi 90.00005 -90
We know this bug and we will try to get rid of it as soon as possible. You could by pass this problem with Qt driver using the 'google earth’ like rotation More information about it could be found here : http://geant4.in2p3.fr/spip.php?article60&lang=en And movie of this feature : http://geant4.in2p3.fr/IMG/mov_Qt_Movie_Rotation_GoogleLike.mov Laurent In the GEANT4 Visualization Hypernews, John Allison explained (http://hypernews.slac.stanford.edu/HyperNews/geant4/get/visualization/602/1/1.html): ----------- A view is defined by the viewpoint and up-vector. If they are/become parallel, the view is indeterminate around that axis. OpenGL seems to flip around under those circumstances. You do, however, get a warning: WARNING: Viewpoint direction is very close to the up vector direction. Consider setting the up vector to obtain definable behaviour. By default, the up-vector is the y-axis, so you get the problem near /vis/viewer/set/viewpointThetaPhi 90 90 If you want to view the geometry from a viewpoint on the y-axis, you should change the up-vector, e.g: /vis/viewer/set/upVector 0 0 1 to get the z-axis vertical, then all should be well defined at theta,phi = 90,90. ----------- Accordingly, I am closing my own bug report as RESOLVED/INVALID, with thanks to both Laurent and John for their responses, explanations, and suggestions. |