# How to render a box that marks the camera's view

**URL:** https://discourse.vtk.org/t/how-to-render-a-box-that-marks-the-cameras-view/14257
**Category:** Support
**Created:** [July 19, 2024, 2:57am UTC](https://discourse.vtk.org/t/how-to-render-a-box-that-marks-the-cameras-view/14257 "2024-07-19T02:57:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dbtruong](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/f08c70/32.png) [@dbtruong](https://discourse.vtk.org/u/dbtruong)
#### Post date: [July 19, 2024, 2:57am UTC](https://discourse.vtk.org/t/how-to-render-a-box-that-marks-the-cameras-view/14257/1 "2024-07-19T02:57:22Z")

</div>

Hello all,  
I want to render a box to visualize the camera’s perspective like the image below:  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/1/196e6295b38cee4a918dd8eaa8c96342acca2575.png)  
Is there any way to do that?  
Thanks.

---

<div class="post-metadata">

### Author: ![rexthor](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rexthor/32/6481_2.png) [@rexthor](https://discourse.vtk.org/u/rexthor)
#### Post date: [July 19, 2024, 1:24pm UTC](https://discourse.vtk.org/t/how-to-render-a-box-that-marks-the-cameras-view/14257/2 "2024-07-19T13:24:18Z")

</div>

Some possibilities: [vtkCameraOrientationWidget](https://vtk.org/doc/nightly/html/classvtkCameraOrientationWidget.html#details), [vtkOrientationMarkerWidget](https://vtk.org/doc/nightly/html/classvtkOrientationMarkerWidget.html#details).

There is a nice demo of the second one [here](https://examples.vtk.org/site/Java/Widgets/OrientationMarkerWidget/).

---

<div class="post-metadata">

### Author: ![Jens\_Munk\_Hansen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jens_munk_hansen/32/1215_2.png) [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)
#### Post date: [July 19, 2024, 10:08pm UTC](https://discourse.vtk.org/t/how-to-render-a-box-that-marks-the-cameras-view/14257/3 "2024-07-19T22:08:32Z")

</div>

I can recommend the `vtkFrustumSource`. See [https://examples.vtk.org/site/Cxx/GeometricObjects/Frustum/](https://examples.vtk.org/site/Cxx/GeometricObjects/Frustum/)
