# Clipping distance in REve visualisation

**URL:** <https://root-forum.cern.ch/t/clipping-distance-in-reve-visualisation/64860>\
**Category:** ROOT\
**Created:** [May 21, 2026, 12:10pm UTC](https://root-forum.cern.ch/t/clipping-distance-in-reve-visualisation/64860 "2026-05-21T12:10:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![EKEK](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/9e8a1a/32.png) [@EKEK](https://root-forum.cern.ch/u/EKEK)\
**Post date:** [May 21, 2026, 12:10pm UTC](https://root-forum.cern.ch/t/clipping-distance-in-reve-visualisation/64860/1 "2026-05-21T12:10:30Z")

</div>

* * *

Dear ROOT Community,

I’ve been writing an event display using REve by loading a .gdml file using TGeo. The issue is that the geometry is quite large (~100m long) and I therefore get what seems to be clipping effects where my geometry is invisible at a distance and I have to significantly zoom in in order to see it. This is pictured below where, on the left display window, the bottom left of my detector is clipped (I already had to zoom in to see it at all). The top left has my detector being fully invisible.

The workaround I found was to scale down everything by a factor 10 (which is in fact used here, otherwise I am unable to find my geometry even by zooming in). This is done by rebuilding my geometry in TGeo just scaled down.

This however is tedious and quickly gets confusing if we start looking at quantities. Is there an alternative to scaling things down, to increase the clipping distance or another alternative?

Best wishes,

EK

ROOT Version:\* 6.38.04  
_Platform:_ Arch Linux  
_Compiler:_ Not Provided

* * *

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/b/b/bb96f2e4926d231cce26b3bd649f8788aef339f0.png)

Above: zoomed in a little

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/3/d/3d9b65fa66403852bb93b2499579a6b2585c8ee9.png)  
Above: zoomed in a lot

---

<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:** [May 21, 2026, 12:50pm UTC](https://root-forum.cern.ch/t/clipping-distance-in-reve-visualisation/64860/2 "2026-05-21T12:50:41Z")

</div>

I hope @alja or @matevz can help you.

---

<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:** [May 21, 2026, 6:54pm UTC](https://root-forum.cern.ch/t/clipping-distance-in-reve-visualisation/64860/3 "2026-05-21T18:54:02Z")

</div>

Dear EK,

The near/far camera updates have been fixed in release v6.40. The change was in client-side code and in RenderCore’s built-in.

Does your environment allow you to move to version 6.40? If not, I will make the patch for 6.38.

Alja

---

<div class="post-metadata">

**Author:** ![EKEK](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/9e8a1a/32.png) [@EKEK](https://root-forum.cern.ch/u/EKEK)\
**Post date:** [May 21, 2026, 8:19pm UTC](https://root-forum.cern.ch/t/clipping-distance-in-reve-visualisation/64860/4 "2026-05-21T20:19:11Z")

</div>

Dear Alja,

I’m running off the package (pacman) binary in this instance so I will wait for ROOT to be patched there, it is normally pretty fast.

many thanks for solving the issue while I was having it! I will test everything after the update and confirm whether it indeed fixes the issue.

Cheers,

EK

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 24, 2026, 8:55am UTC](https://root-forum.cern.ch/t/clipping-distance-in-reve-visualisation/64860/5 "2026-05-24T08:55:22Z")

</div>

@alja I guess it would make more sense to patch the 6.36 (which will be supported for the next 3 years or so).

---

<div class="post-metadata">

**Author:** ![EKEK](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/9e8a1a/32.png) [@EKEK](https://root-forum.cern.ch/u/EKEK)\
**Post date:** [May 24, 2026, 2:15pm UTC](https://root-forum.cern.ch/t/clipping-distance-in-reve-visualisation/64860/6 "2026-05-24T14:15:46Z")

</div>

I can confirm that the Root 6.40.00 changes fix the issue.

Many thanks!

---

<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:** [May 27, 2026, 2:09pm UTC](https://root-forum.cern.ch/t/clipping-distance-in-reve-visualisation/64860/7 "2026-05-27T14:09:08Z")

</div>

Hi,

I have made a PR to backport the fixes to v6-36:

> <https://github.com/root-project/root/pull/22407>
>
> This PR backports two PRs to v6-36-00-patches:
> Bounding box calculations of REv…eBoxSet and REvePointSet:
> https://github.com/root-project/root/pull/21982
> 
> Improvements in camera control and frustum update:
> https://github.com/root-project/root/pull/20670/
> 
> Updates RenderCore version from 1.7 to 2.0.

Today I will make a new PR to backport fixes to v6-38.

There have been other fixes and developments since v38. Please contact me if you see any other issues.

Thank you for the report and the testing!

Alja

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [June 10, 2026, 2:09pm UTC](https://root-forum.cern.ch/t/clipping-distance-in-reve-visualisation/64860/8 "2026-06-10T14:09:57Z")

</div>

Closed on June 10, 2026, 2:09pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
