viper_0711

I'm trying to make use of peak node to preview render displacement in viewport. (sth like displaceD plugin). i suppose peak node is like displacing verteices along its normal.
basically i plug a texture of displacement map to texture2Array and then feed into inWeightPP of peak node.
it deforms and the UV correspondence are correct. the logic seems to work.

however, the result are quite different from what I rendered (arnold) by using the same map. which looks correct. it seems to be the scale and offset issue in the peak node or texture parameters..  the Displacement maps are 32 bit floating (not vector displacement) from Zbrush , i suppose floating point should be scale 1 and offset 0 , and thats what i make sure it is.

tried 16 bit (integer) maps, as well as tiff versions, too but no luck and the scale and offsets are even trickier i guess

any advise would be great.


viper_0711
can't find the solution yet but some more discovery:
Its related to how maya output floating point values in file texture node.
there is a "high dynamic range to fixed point" in attribute editor. and the 3 choosable modes affect how it outputs to connected nodes to affect the deformation. unfortunately all modes "helps" to normalize or altered the original float values, so there seems to be no way to do it correctly with EXR. 
I also found that maya 2015 will have texture deformer that does the job, but no way here is sticking with 2014...

see anyone can grab the floats out of file texture nodes...

Reply 0 0
plarson
Have you considered using Maya's height field to preview displacements? I saw it used quite effectively for a large displacement in this tutorial.
Reply 0 0
pshipkov
@plars
The height field node works only in "2d" space. If that's what viper is doing then it should be fine.

@viper
Any chance you can pass me one of your texture files ? Or if confidential, etc - something that resembles the problem.
I think the arrayToTexture+peak > textureDeformer in Maya 2015 because we can interactively control and alter the pp vectors instead in many different ways. The texture deformer is bound to the texture and cannot be influenced with bounding objects, point nodes, or other things. Figured I should mention that.
Too bad Maya devs didn't do proper implementation of that tool.
Reply 0 0
Reply