# Changing Camera Axes in Eve7

**URL:** <https://root-forum.cern.ch/t/changing-camera-axes-in-eve7/63996>\
**Category:** Newbie\
**Created:** [August 7, 2025, 8:45pm UTC](https://root-forum.cern.ch/t/changing-camera-axes-in-eve7/63996 "2025-08-07T20:45:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtheo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jtheo/32/39233_2.png) [@jtheo](https://root-forum.cern.ch/u/jtheo)\
**Post date:** [August 7, 2025, 8:45pm UTC](https://root-forum.cern.ch/t/changing-camera-axes-in-eve7/63996/1 "2025-08-07T20:45:51Z")

</div>

Hi all, I’m an undergrad researcher working on a project in Eve7. This is my first time using ROOT/Eve7 on a project, and everything’s been working smoothly so far, except I’m running into a problem with setting/changing the camera orientation. Is there a way to rotate the camera or make it so that the z axis points upwards rather than to the right? I tried to replicate the solution I saw in another thread about changing the camera axes in Eve, but it seems like it doesn’t work in Eve7. Any guidance is appreciated.

Thanks so much,  
Theo

_ROOT Version:_ 6.36.000  
_Platform:_ macOS Sequoia 15.5  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [August 8, 2025, 8:57am UTC](https://root-forum.cern.ch/t/changing-camera-axes-in-eve7/63996/2 "2025-08-08T08:57:38Z")

</div>

Try with [TView::RotateView()](https://root.cern/doc/master/TView3D_8cxx_source.html#l01555), e.g.

```auto
  TView *view = gPad->GetView();
  cout<<view->GetLongitude()<<" "<<view->GetLatitude()<<" "<<view->GetPsi()<<endl; // see current values; longitude = phi, latitude = theta
  view->RotateView(-30, 60);

```

If you want to rotate in psi as well (see printout from the above), you can do what is done by ROOT in the page I linked above: get the view and then manually do `SetView` (instead of `RotateView`) with psi different from zero, and also adjust the Pad as shown there too.

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [August 8, 2025, 12:30pm UTC](https://root-forum.cern.ch/t/changing-camera-axes-in-eve7/63996/3 "2025-08-08T12:30:43Z")

</div>

`gPad` and `TView` are not used with Eve7.  
I hope @alja or @matevz can help here.

---

<div class="post-metadata">

**Author:** ![alja](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alja/32/11782_2.png) [@alja](https://root-forum.cern.ch/u/alja)\
**Post date:** [August 8, 2025, 3:51pm UTC](https://root-forum.cern.ch/t/changing-camera-axes-in-eve7/63996/4 "2025-08-08T15:51:47Z")

</div>

@jtheo @linev @matevz

Hi Theo

For the moment, there are only two camera types that can be set in REveViewer: kCameraPerspXOZ, kCameraOrthoXOY [1].

To my understanding, you need a CameraPerspXOY type. I will add this type with the other missing camera types (kCameraPerspYOZ, kCameraPerspYOZ, kCameraOrthoXOZ, kCameraOrthoZOY,kCameraOrthoXnOY, kCameraOrthoXnOZ, kCameraOrthoZnOY, kCameraOrthoZnOX)

Thank you for the report!

Alja

[1] [root/graf3d/eve7/inc/ROOT/REveViewer.hxx at master · root-project/root · GitHub](https://github.com/root-project/root/blob/master/graf3d/eve7/inc/ROOT/REveViewer.hxx#L30)

---

<div class="post-metadata">

**Author:** ![jtheo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jtheo/32/39233_2.png) [@jtheo](https://root-forum.cern.ch/u/jtheo)\
**Post date:** [August 8, 2025, 5:02pm UTC](https://root-forum.cern.ch/t/changing-camera-axes-in-eve7/63996/5 "2025-08-08T17:02:06Z")

</div>

Thanks all so much for the quick replies. @Alja when do you think the other camera types would be available to use? No rush or anything, just curious.

Best,  
Theo

---

<div class="post-metadata">

**Author:** ![alja](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alja/32/11782_2.png) [@alja](https://root-forum.cern.ch/u/alja)\
**Post date:** [August 11, 2025, 8:34pm UTC](https://root-forum.cern.ch/t/changing-camera-axes-in-eve7/63996/6 "2025-08-11T20:34:57Z")

</div>

@jtheo

I will make a PR to the main branch within this week.  
Here is the commit that changes the camera direction so that the Z axis is the camera’s up axis.

> <https://github.com/root-project/root/commit/1af7d0be1c4ab131c279a273dd526f468300515b>

Do you need this addition in a specific release?

Alja

---

<div class="post-metadata">

**Author:** ![jtheo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jtheo/32/39233_2.png) [@jtheo](https://root-forum.cern.ch/u/jtheo)\
**Post date:** [August 13, 2025, 6:54pm UTC](https://root-forum.cern.ch/t/changing-camera-axes-in-eve7/63996/7 "2025-08-13T18:54:43Z")

</div>

@alja

Thanks for letting me know. If it could be made a part of the newest ROOT release, that would be great.

Thanks again,

Theo

---

<div class="post-metadata">

**Author:** ![alja](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alja/32/11782_2.png) [@alja](https://root-forum.cern.ch/u/alja)\
**Post date:** [August 15, 2025, 10:01pm UTC](https://root-forum.cern.ch/t/changing-camera-axes-in-eve7/63996/8 "2025-08-15T22:01:24Z")

</div>

Just for info. The pending PR is here [[reve] Additional Perspective and Orthographic camera types by alja · Pull Request #19661 · root-project/root · GitHub](https://github.com/root-project/root/pull/19661).
