View Full Version : Displacement Map Render - MR

07 July 2011, 04:34 PM
hey guys, I have a very weird problem here. I am working in Maya 2011 (same issue is in 2012).
Working on a model that needs to have Displacement map attached. I am using MIA_MATERIAL_X shader, currently setup as a default mat with just a Displacement plugged in.
i am using a default method of attaching a displacement node to the shader:
I got this setup to render pretty well and i am happy with results. However on the next maya restart this scene simply won't render no matter what i do. I checked all of my connections and nodes, and file locations, everything works and looks ok. Maya does not throw any errors or renders, it just renders the image without the displacement. I tried rebuilding the shader the same way, as well as re importing shader only to fresh scene and backwards, nothings seems to work, rebooting pc, and even going to maya 2012... i am clue less as in what could go wrong... If you guys have any ideas, please share them :)
few more screens of the settings i have:
For the Mental Ray approximation editor for the "Displacement" i have:
and i have also disabled the feature displacement for the Object's attributes:
If i keep this option on, then maya just crashes, or sits at "rendering"....
Thanks in advance. i will try any suggestion at the moment now...

07 July 2011, 05:17 PM
lower your approximation settings and see if it will go

07 July 2011, 05:30 PM
Thanks, i just tried a number of combinations, and pretty much i dont see any changes, except the render time.. so it calculates something extra, but not visually.
This right here is the mesh with UVs : , as you can see it is fairly simple.
This is a quick z-brush:
at the end, i can export this displace from zbrush and slightly tweak it in PS to get :
I play with number of settings for displace FILE under color balance, to figure out the proper values for the apha, however i end with very plane results 90% of the time, currently settings i have:
and the render i get looks like that :
now, i normally can get away with displacements when i work with landscape, but this time around it is a slightly different project direction... To get the fine details i am using normal maps, and those work just fine with this mia_material_x by means of misss_set_normal2... and advice on displacements?

07 July 2011, 05:34 PM
I think you should try to export your map as a 32bit image and then set the "Alpha Offset" as - 1/2 "Alpha Gain" (so if Alpha Gain is 1, Alpha Offset is -0,5). (you are setting middle gray not to do anything this way)
Check that "Alpha is luminance" is checked too...

07 July 2011, 05:46 PM
Yeah, i tried many different settings for alpha gain there, nothing really was helping,
now, for the 32-bit, i am exporting them from zbrush, as tiffs, but having hard time saving them int TGAs or just simply plugin those for the texture, i get warnings that this is an unsupported file, and that it must be 8 or 16 bit... could briefly explain the work flow?

07 July 2011, 05:55 PM
Well, it looks like it works.
I could not get the TIFF image to work, so i made an HDR and used that for file texture.
played a bit more with colorgain/offsett and aproximation.
here is what i have :
i am happy with this quick test, and now can move on...
the mystery of it suddenly turning of after maya restart is still there, but i am glad that it is fixed.
Thank you guys. :)0)

07 July 2011, 05:59 PM
uff, i did that REALLY long time ago and I have no zBrush nor Maya nor (softimage T_T).

Anyway, 32bit is not supported in tga (i mean 32bit per channel) so you should use tiff or exr or whatever you can export from zBrush that supports HDR values.
Did you check the alpha is luminance checkbox? if you donīt check that maya is going to use the alpha of the image to displace it...

07 July 2011, 06:01 PM
Yeah, i ticked it on, and i used HDR as an image format, worked really nice.
thanks for pointing out the 32bit thing, i dont remember reading about it anywhere... ;)

CGTalk Moderation
07 July 2011, 06:01 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.