# 2D 3D displacement maps with Vray

**URL:** <https://forums.chaos.com/t/2d-3d-displacement-maps-with-vray/9788>\
**Category:** Off-topic\
**Created:** [January 13, 2006, 3:31am UTC](https://forums.chaos.com/t/2d-3d-displacement-maps-with-vray/9788 "2006-01-13T03:31:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_H.Stewart](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/adam_h.stewart/32/52718_2.png) [@Adam\_H.Stewart](https://forums.chaos.com/u/Adam_H.Stewart)\
**Post date:** [January 13, 2006, 3:31am UTC](https://forums.chaos.com/t/2d-3d-displacement-maps-with-vray/9788/1 "2006-01-13T03:31:15Z")

</div>

[http://h1.ripway.com/Adam\_Stewart/Banding\_Test\_2D\_mapping.jpg](http://h1.ripway.com/Adam%5C_Stewart/Banding%5C_Test%5C_2D%5C_mapping.jpg)  
[http://h1.ripway.com/Adam\_Stewart/Banding\_Test\_3D\_mapping.jpg](http://h1.ripway.com/Adam%5C_Stewart/Banding%5C_Test%5C_3D%5C_mapping.jpg)  
[http://h1.ripway.com/Adam\_Stewart/Banding\_Test\_3D\_Map\_Optimiz.jpg](http://h1.ripway.com/Adam%5C_Stewart/Banding%5C_Test%5C_3D%5C_Map%5C_Optimiz.jpg)

The three images above where all created using the same Zbrush displacement map. As you can see there is crazy stepping in the image created using 3D displacement. I have hunted around the Zbrush website where it appears this has been a problem for some time. They traced the problem back to the 3dsmax filter and blur settings. The 3rd image was the best result I could get using these settings. As you can see it is better then the straight 3D displacement but the image is not a patch on the smoothness of the 2D displacment. The reason I want to use 3D displacement it the success I had with it in my last project. It brought the render times down by almost 40 minutes a frame and looked better then the 2D.

Thanks as always for any help you can give me.

---

<div class="post-metadata">

**Author:** ![RErender](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/rerender/32/42964_2.png) [@RErender](https://forums.chaos.com/u/RErender)\
**Post date:** [January 13, 2006, 3:43am UTC](https://forums.chaos.com/t/2d-3d-displacement-maps-with-vray/9788/2 "2006-01-13T03:43:50Z")

</div>

Are you using the VrayBmpFilter to load the displacement map?

---

<div class="post-metadata">

**Author:** ![priad](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/priad/32/17751_2.png) [@priad](https://forums.chaos.com/u/priad)\
**Post date:** [January 13, 2006, 3:57am UTC](https://forums.chaos.com/t/2d-3d-displacement-maps-with-vray/9788/3 "2006-01-13T03:57:34Z")

</div>

Pretty interesting test, thanks for sharing.

---

<div class="post-metadata">

**Author:** ![Morbid\_Angel](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morbid_angel/32/21272_2.png) [@Morbid\_Angel](https://forums.chaos.com/u/Morbid_Angel)\
**Post date:** [January 13, 2006, 6:38am UTC](https://forums.chaos.com/t/2d-3d-displacement-maps-with-vray/9788/4 "2006-01-13T06:38:36Z")

</div>

adam, this error effect is called banding and its quite common. you need to work with 3ds max bitmap blur filter. By default its set to 1.0 but you need to set it to 0.01 the banding will be removed.

---

<div class="post-metadata">

**Author:** ![tom\_schuelke](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tom\_schuelke](https://forums.chaos.com/u/tom_schuelke)\
**Post date:** [January 13, 2006, 10:41am UTC](https://forums.chaos.com/t/2d-3d-displacement-maps-with-vray/9788/5 "2006-01-13T10:41:23Z")

</div>

i think the vrBmpfilter, vlado wrote was adressed directly to the need of this issue.

using zbrush with 3d displacemant seems to work with this thing…

Tom

---

<div class="post-metadata">

**Author:** ![panthon](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/panthon/32/40984_2.png) [@panthon](https://forums.chaos.com/u/panthon)\
**Post date:** [January 13, 2006, 11:06am UTC](https://forums.chaos.com/t/2d-3d-displacement-maps-with-vray/9788/6 "2006-01-13T11:06:14Z")

</div>

The 0.01 blur thingy does the trick. I don´t see the need for vraybmpfilter as it´s lacking some of the features a common bitmap dialog has. I don´t know if there´s any speed difference using each one of these methods, though.

---

<div class="post-metadata">

**Author:** ![Adam\_H.Stewart](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/adam_h.stewart/32/52718_2.png) [@Adam\_H.Stewart](https://forums.chaos.com/u/Adam_H.Stewart)\
**Post date:** [January 13, 2006, 5:24pm UTC](https://forums.chaos.com/t/2d-3d-displacement-maps-with-vray/9788/7 "2006-01-13T17:24:23Z")

</div>

More tests - but no Cigar

[http://h1.ripway.com/Adam\_Stewart/Banding\_Test\_3D\_Blur\_.01.jpg](http://h1.ripway.com/Adam%5C_Stewart/Banding%5C_Test%5C_3D%5C_Blur%5C_.01.jpg)  
[http://h1.ripway.com/Adam\_Stewart/Banding\_Test\_3D\_VrayBmpFilt.jpg](http://h1.ripway.com/Adam%5C_Stewart/Banding%5C_Test%5C_3D%5C_VrayBmpFilt.jpg)

I’m not going crazy honest. I had to do another test to make sure even with the the Blur set to .01 and offset to 0 there is still noise that is not evident in the 2D displacement - look closely at the highlights and you will see it, it looks like the specular values of the material are being affected.

I am not sure what the VrayBmpFilter this is supposed to do, but I have tried it before and always gotten similar wacky results. Maybe it is as it says a Bump filter and not a Displacement filter. This test was done with the default settings but I have played around with them and they don’t seem to change the bizaar results.

The time saving even with these simple images is quite substantial - 2D - 52.9sec - 3D - 27.8sec. Maybe it is because the 2D displacement has another level of filtering that it takes longer and gives better results ?

Thanks as always for your help.

---

<div class="post-metadata">

**Author:** ![Adam\_H.Stewart](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/adam_h.stewart/32/52718_2.png) [@Adam\_H.Stewart](https://forums.chaos.com/u/Adam_H.Stewart)\
**Post date:** [January 13, 2006, 7:30pm UTC](https://forums.chaos.com/t/2d-3d-displacement-maps-with-vray/9788/8 "2006-01-13T19:30:58Z")

</div>

Could this be the Reason

Like the crazy cat woman in number 21 I am responding to myself. I found this in the Vray manual :

_**Note that with 3d mapping the displacement map’s range of values must be within the 0.0-1.0 range (black to white). Values outside of this range will be clipped**_

Could this be causing the banding - the 16bit displacement map image coming from Zbrush is being clipped by the 3D displacement only ?

I don’t really know enough about 16bit images to tell.

Thanks as always for your help.

---

<div class="post-metadata">

**Author:** ![DaForce](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/daforce/32/22846_2.png) [@DaForce](https://forums.chaos.com/u/DaForce)\
**Post date:** [January 14, 2006, 12:16am UTC](https://forums.chaos.com/t/2d-3d-displacement-maps-with-vray/9788/9 "2006-01-14T00:16:25Z")

</div>

why not just convert it to a 8bit image in PS and see if it makes a difference. ( i doubt it tho)
