# Rendertimes with VrayDistanceTex

**URL:** <https://forums.chaos.com/t/rendertimes-with-vraydistancetex/50334>\
**Category:** Issues\
**Created:** [July 1, 2014, 8:03am UTC](https://forums.chaos.com/t/rendertimes-with-vraydistancetex/50334 "2014-07-01T08:03:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben\_hamburg](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@ben\_hamburg](https://forums.chaos.com/u/ben_hamburg)\
**Post date:** [July 1, 2014, 8:03am UTC](https://forums.chaos.com/t/rendertimes-with-vraydistancetex/50334/1 "2014-07-01T08:03:21Z")

</div>

Hi there,

I have a problem with rendertimes on the following setup:

I have an object with a composite map in the diffuse channel. This Map has a VrayDistanceTex map as a mask, which has three animated objects as Distance objects.  
So far so good.  
But that object also has a Vraydisplacement modifier on top and the displacement map is a monochrome version of the Diffusemap.  
And as soon as I enable the displacement modifier, render times are going through the roof.

I guess it has something to do with the Vraydisplacement beeing taken into consideration for the calculations made by the VrayDistanceTex map or something like that, which is something I don´t really need actually.

Therefore my question would be: Can I somehow use a dummy object without vraydisplacement and use the VrayDistanceTex on that one, but use the output to drive the displacement of the main object?

---

<div class="post-metadata">

**Author:** ![ben\_hamburg](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@ben\_hamburg](https://forums.chaos.com/u/ben_hamburg)\
**Post date:** [July 1, 2014, 11:52am UTC](https://forums.chaos.com/t/rendertimes-with-vraydistancetex/50334/2 "2014-07-01T11:52:58Z")

</div>

Haven´t figured out a solution yet, but at least I was able to speed up the process somewhat by changing the geometry type to static in the Vraydisplacement modifier…

---

<div class="post-metadata">

**Author:** ![joconnell](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joconnell/32/36063_2.png) [@joconnell](https://forums.chaos.com/u/joconnell)\
**Post date:** [July 1, 2014, 12:59pm UTC](https://forums.chaos.com/t/rendertimes-with-vraydistancetex/50334/3 "2014-07-01T12:59:21Z")

</div>

I could be wrong but I think it might be the composite map? A lot of the autodesk engineers themselves had mentioned that it isn’t that quick. Would if be possible to try a different method to achieve the same thing like use a mix map or a vray comptex instead? If you were to just use the distance tex in the diffuse channel and displacementmod, while it gets you the wrong look, does it solve the speed issue thus pointing to the composite map?

---

<div class="post-metadata">

**Author:** ![ben\_hamburg](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@ben\_hamburg](https://forums.chaos.com/u/ben_hamburg)\
**Post date:** [July 1, 2014, 3:25pm UTC](https://forums.chaos.com/t/rendertimes-with-vraydistancetex/50334/4 "2014-07-01T15:25:56Z")

</div>

If I disable the Vraydisplacement modifier rendertimes are back to normal, that´s why I figured it had to be that part slowing it down and not the compositemap, but still a good idea to give that a try…

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [July 2, 2014, 10:34am UTC](https://forums.chaos.com/t/rendertimes-with-vraydistancetex/50334/5 "2014-07-02T10:34:42Z")

</div>

Another approach would be to make two versions of the displaced-objects. One for the rendering and another one non-renderable without displacement for controlling the DistanceTex.

---

<div class="post-metadata">

**Author:** ![ben\_hamburg](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@ben\_hamburg](https://forums.chaos.com/u/ben_hamburg)\
**Post date:** [July 28, 2014, 7:23am UTC](https://forums.chaos.com/t/rendertimes-with-vraydistancetex/50334/6 "2014-07-28T07:23:11Z")

</div>

> Another approach would be to make two versions of the displaced-objects. One for the rendering and another one non-renderable without displacement for controlling the DistanceTex.

That was my first idea…Doesn´t seem to work though…Since the Distance-Map is applied to the renderable object aswell, it still uses it´s geometry to calculate the distance values.  
Haven´t found a workaround yet and as it is I can´t use vraydisplacement and distance tex on the same object, since i can´t afford rendertimes of 3 hours per frame…☹

Any ideas on how to work around this issue or how to bake the texture information from the vraydistance tex?

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [July 29, 2014, 10:26am UTC](https://forums.chaos.com/t/rendertimes-with-vraydistancetex/50334/7 "2014-07-29T10:26:33Z")

</div>

You bake VrayDistanceTex map by first plugging it into VrayLightMtl, apply this material to the object in the scene and use standard baking technique to bake VrayCompleteMap of this object. It would be also a good idea to send us a sample scene with this setup for investigation - we might find a way to workaround the issue.

---

<div class="post-metadata">

**Author:** ![ben\_hamburg](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@ben\_hamburg](https://forums.chaos.com/u/ben_hamburg)\
**Post date:** [July 30, 2014, 2:17pm UTC](https://forums.chaos.com/t/rendertimes-with-vraydistancetex/50334/8 "2014-07-30T14:17:13Z")

</div>

Ah, ok. I actually never had the need to bake anything, so that solution didn´t even occur to me…I´ll give it a try as soon as possible and I´ll also try to upload a stripped scene for investigation.  
Right now I´m in the middle of the production so I had to resort to “oldschool” techniques using volume select and standard displacement modifier.

Since this is something I need quite often for medical animations, I´ll hope to find a good solution for this. If baking works, great, but of course it would be even better if you could find another workaround…

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [July 31, 2014, 11:05am UTC](https://forums.chaos.com/t/rendertimes-with-vraydistancetex/50334/9 "2014-07-31T11:05:40Z")

</div>

We will try to find another way to workaround it but we will need a scene in order to work on the same setup.
