# VRay Distance doesn't consider objects loaded from vrscenes

**URL:** <https://forums.chaos.com/t/vray-distance-doesnt-consider-objects-loaded-from-vrscenes/116978>\
**Category:** Issues\
**Created:** [November 7, 2023, 6:46pm UTC](https://forums.chaos.com/t/vray-distance-doesnt-consider-objects-loaded-from-vrscenes/116978 "2023-11-07T18:46:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TubeSmokeGuy](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@TubeSmokeGuy](https://forums.chaos.com/u/TubeSmokeGuy)\
**Post date:** [November 7, 2023, 6:46pm UTC](https://forums.chaos.com/t/vray-distance-doesnt-consider-objects-loaded-from-vrscenes/116978/1 "2023-11-07T18:46:57Z")

</div>

Hi!

It seems that VRay Distance doesn’t consider objects loaded from VRayScenes.

When I load the object cached from a VRayScene, vray doesn’t render the DistanceTex, when I feed in the live cooked unchached object, the DistanceTex renders well.

Can you confirm this? Is there a workarround?  
I don’t like to leave the heavy uncached object in the scene just for generating the DistanceTex. So it would be cool if DistanceTex could work with objects comming from a VRayScene, too.

Thank you and greetings!

---

<div class="post-metadata">

**Author:** ![bdancer](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/bdancer/32/52257_2.png) [@bdancer](https://forums.chaos.com/u/bdancer)\
**Post date:** [November 8, 2023, 7:44am UTC](https://forums.chaos.com/t/vray-distance-doesnt-consider-objects-loaded-from-vrscenes/116978/2 "2023-11-08T07:44:24Z")

</div>

VRay Distance works only with mesh object. There is no way to make it work with the VRayScene.

---

<div class="post-metadata">

**Author:** ![Gosho.Genchev](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@Gosho.Genchev](https://forums.chaos.com/u/Gosho.Genchev)\
**Post date:** [November 8, 2023, 10:40am UTC](https://forums.chaos.com/t/vray-distance-doesnt-consider-objects-loaded-from-vrscenes/116978/3 "2023-11-08T10:40:04Z")

</div>

As a supplement to what Andrei has written - maybe an option to work around this limitation would be to load your VRScene a second time in a separate Geometry node and use the “Unpack to Polygons” to extract the specific object you need to work with the distance texture. At this point it will be treated as a regular mesh.  
In terms of times to first pixel, ideally you’d cache it out as an Alembic file, too.

Best regards!

---

<div class="post-metadata">

**Author:** ![TubeSmokeGuy](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@TubeSmokeGuy](https://forums.chaos.com/u/TubeSmokeGuy)\
**Post date:** [November 8, 2023, 11:52am UTC](https://forums.chaos.com/t/vray-distance-doesnt-consider-objects-loaded-from-vrscenes/116978/4 "2023-11-08T11:52:45Z")

</div>

Thanks, I’ll try :)!
