# How to use the raycasting on 3d object to get 2D image?

**URL:** https://discourse.vtk.org/t/how-to-use-the-raycasting-on-3d-object-to-get-2d-image/2503
**Category:** Development
**Created:** [January 27, 2020, 9:57am UTC](https://discourse.vtk.org/t/how-to-use-the-raycasting-on-3d-object-to-get-2d-image/2503 "2020-01-27T09:57:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Fedia](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/f/48db29/32.png) [@Fedia](https://discourse.vtk.org/u/Fedia)
#### Post date: [January 27, 2020, 9:57am UTC](https://discourse.vtk.org/t/how-to-use-the-raycasting-on-3d-object-to-get-2d-image/2503/1 "2020-01-27T09:57:24Z")

</div>

Gd morning  
plz any one can help me to use the **raycasting** on **3d object** to get **2D image**? thnx

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dave_demarle/32/6_2.png) [@Dave\_DeMarle](https://discourse.vtk.org/u/Dave_DeMarle)
#### Post date: [January 27, 2020, 3:36pm UTC](https://discourse.vtk.org/t/how-to-use-the-raycasting-on-3d-object-to-get-2d-image/2503/2 "2020-01-27T15:36:05Z")

</div>

OSPRay’s “scivis” renderer comes to mind.

[https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/RayTracing/Testing/Cxx/TestOSPRayPass.cxx](https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/RayTracing/Testing/Cxx/TestOSPRayPass.cxx)
