# Ray tracing in Unity3D

**URL:** <https://forums.imgtec.com/t/ray-tracing-in-unity3d/2249>\
**Category:** PowerVR Insider\
**Tags:** ray-tracing\
**Created:** [February 11, 2015, 4:40pm UTC](https://forums.imgtec.com/t/ray-tracing-in-unity3d/2249 "2015-02-11T16:40:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamjoy-2](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@iamjoy-2](https://forums.imgtec.com/u/iamjoy-2)\
**Post date:** [February 11, 2015, 4:40pm UTC](https://forums.imgtec.com/t/ray-tracing-in-unity3d/2249/1 "2015-02-11T16:40:48Z")

</div>

Hello!  
  
I am not sure how I can use PowerVR in Unity5. Can I create my raytraced renderer based on PowerVR? I need to show a scene from many different perspectives on one screen, but I don’t want to use several cameras but just generate rays from different original points. Can I just set rays and call functions of PowerVR to do ray tracing on GPU and read the return colour of points that the rays hit?  
  
Thank you!!

---

<div class="post-metadata">

**Author:** ![JamesRumble](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@JamesRumble](https://forums.imgtec.com/u/JamesRumble)\
**Post date:** [February 13, 2015, 9:45am UTC](https://forums.imgtec.com/t/ray-tracing-in-unity3d/2249/2 "2015-02-13T09:45:34Z")

</div>

Hi Iamjoy,  
  
  
  
A software implementation of our PowerVR Ray Tracing technology will be added to a 5.x release of the Unity editor providing near real-time lightmap previews  
  
We can’t comment on Unity’s roadmap so it would be best to contact them for more information on when this will be released. ([http://forum.unity3d.com/](http://forum.unity3d.com/))  
  
  
  
Future ray tracing hardware will expose a new API that will improve the interaction between ray tracing and raster graphics tasks in a way that is similar to what you are describing. However, the software implementation of our PowerVR Ray Tracing technology integrated into the Unity editor will not be programmable.  
  
  
  
Regards,  
  
James

---

<div class="post-metadata">

**Author:** ![iamjoy-2](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@iamjoy-2](https://forums.imgtec.com/u/iamjoy-2)\
**Post date:** [February 13, 2015, 7:26pm UTC](https://forums.imgtec.com/t/ray-tracing-in-unity3d/2249/3 "2015-02-13T19:26:15Z")

</div>

Thank you, James!  
  
  
  
When can we have the future ray tracing hardware that you mentioned? Can it be used in smartphones?  
  
  
  
What version of GPU is required to use PowerVR in Unity3D?  
  
  
  
Thank you!

> Hi Iamjoy,  
>   
> A software implementation of our PowerVR Ray Tracing technology will be added to a 5.x release of the Unity editor providing near real-time lightmap previews  
> We can't comment on Unity's roadmap so it would be best to contact them for more information on when this will be released. (http://forum.unity3d.com/)  
>   
> Future ray tracing hardware will expose a new API that will improve the interaction between ray tracing and raster graphics tasks in a way that is similar to what you are describing. However, the software implementation of our PowerVR Ray Tracing technology integrated into the Unity editor will not be programmable.  
>   
> Regards,  
> James

---

<div class="post-metadata">

**Author:** ![JamesRumble](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@JamesRumble](https://forums.imgtec.com/u/JamesRumble)\
**Post date:** [February 16, 2015, 3:43pm UTC](https://forums.imgtec.com/t/ray-tracing-in-unity3d/2249/4 "2015-02-16T15:43:25Z")

</div>

Our ray tracing IP is available for licensing but we haven’t yet announced any devices that will be using the technology.  
  
  
  
You might find the following blog post interesting - [https://www.imgtec.com/blog/powervr-developers/powervr-gr6500-ray-tracing](https://www.imgtec.com/blog/powervr-developers/powervr-gr6500-ray-tracing). It’s the announcement for the first member of the Wizard GPU family, the PowerVR GR6500.  
  
  
  
Unity ships with a software implementation of our ray tracing technology meaning the majority of Unity’s user’s will be able to utilize the feature. It would be best to contact Unity if you have any questions about the minimum specifications required for this feature. ([http://forum.unity3d.com/](http://forum.unity3d.com/)).  
  
  
  
Regards,  
  
James

---

<div class="post-metadata">

**Author:** ![iamjoy-2](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@iamjoy-2](https://forums.imgtec.com/u/iamjoy-2)\
**Post date:** [February 17, 2015, 5:28pm UTC](https://forums.imgtec.com/t/ray-tracing-in-unity3d/2249/5 "2015-02-17T17:28:14Z")

</div>

Thank you so much, James!

> Our ray tracing IP is available for licensing but we haven't yet announced any devices that will be using the technology.  
>   
> You might find the following blog post interesting - https://www.imgtec.com/blog/powervr-developers/powervr-gr6500-ray-tracing. It's the announcement for the first member of the Wizard GPU family, the PowerVR GR6500.  
>   
> Unity ships with a software implementation of our ray tracing technology meaning the majority of Unity's user's will be able to utilize the feature. It would be best to contact Unity if you have any questions about the minimum specifications required for this feature. (http://forum.unity3d.com/).  
>   
> Regards,  
> James

---

<div class="post-metadata">

**Author:** ![jasminepeterson](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/jasminepeterson/32/229_2.png) [@jasminepeterson](https://forums.imgtec.com/u/jasminepeterson)\
**Post date:** [February 24, 2016, 9:57am UTC](https://forums.imgtec.com/t/ray-tracing-in-unity3d/2249/6 "2016-02-24T09:57:26Z")

</div>

I am making a video-game in unity, and decided to use ray-tracing. I have the code, But as you will see in a second. It isn’t exactly rendering frame by frame. Here is my ray tracing code, this is the main script attached to the main camera.
