Opacity map performance tweak in VRay

I recently did some test to confirm that disabling the map filtering op an Opacity map in a VRay material improves performance. This is a well know trick that can save you some time if your scene contain a lot of these kind of maps. All following tests are done with the universal settings described in the help files, VRaySun & Sky.
The first test is done without any tweak, simple metal louvres with small circular holes :
Rendertime is 2m53s
Then when tweaking these vaules in the Opacity map parameters :
And then after a rerender :
note how the rendertime has dropped : 2m13s… almost 30% faster ! The only bad side is that the overlapping shadows are less transparent… but in many cases it won’t be a problem.
Then I had the idea to test the workaround we did used in the good old days, when the VRay materials hadn’t an opacity slot ;) The trick was simple, the “opacity” bitmap in the refraction slot and an IOR of 1.0 to avoid refraction.
The result is intresting : 2m38s and no real difference. Faster than the simple opacity slot but slower than the unfiltered one. But there are disadvantages : You can’t use refraction slot anymore, you have to mask every other texture to avoid, for example, reflection in the holes, and the object will appear without his holes in some render pass like VRayWireColor (whereas the opactiy slot won’t have this problem)
I’ll conduct other test shortly to see if there are special cases where the refraction technique would be faster than the opacity one, but I doubt it will happen.
6 Responses to Opacity map performance tweak in VRay
Leave a Reply Cancel reply
About me & this blog
Graduated Architect living in Brussels, I'm specialized in the field of architectural visualization.
This blog covers mainly non-professional CG work, architectural rendering, WIPs, photography, CG materials & methods, tutorials, render theories etc.
To see my professional work please visit pixelab, and don't forget to buy me a coffee if you find something useful here ! ;)Archives
- July 2011 (1)
- May 2011 (1)
- April 2011 (2)
- January 2011 (1)
- November 2010 (1)
- May 2010 (1)
- February 2010 (2)
- January 2010 (1)
- December 2009 (1)
- September 2009 (4)
- August 2009 (1)
- June 2009 (1)
- April 2009 (1)
- March 2009 (1)
- January 2009 (1)
- September 2008 (4)
- June 2008 (1)
- March 2008 (3)
- January 2008 (1)
- November 2007 (2)
- October 2007 (1)
- September 2007 (3)
- August 2007 (2)
- July 2007 (5)
- June 2007 (2)




grâce à qui?
good thanks for sharing this…
I’m not sure I understand everything on that blog…
Ce n’est pas ma spécialité mais bon.
Par contre, j’ai besoin de recenser quelques blogs/sites intéressants et surtout qui font figure de référence dans l’architecture contemporaine: peux-tu m’aider?
/off topic / Figures de référence, je ne sais pas… Je vais t’envoyer la liste des sites de mon feed qui s’apparentent à cela !
Thanks for the time it took you to put this little tutorial together. I found your link from the v-ray forum. This didn’t solve my xfrog alph issue. Have you successfully used xfrog in v-ray?
Thanks,
Bobby W Parker
http://www.whitebirchstudios.com
Interestingly, I even nedumala about it …