mbattcock
I'm doing some deformation with the peak deformer - I have the following:

3D texture -> texture2array -> peak

with a bounding box using a multiattributetransfer. However i'm not sure how I can use the outRgbPP from the texture2array in conjunction with my shading network. For example I would like to be able to have more emission the higher the peak displacement. Is this possible?
I saw there was an array2texture2d but i'm not sure how to use it...

Also is there a way (SOuP or standard Maya) to remap values from 0 to 1 onto a colour ramp, like you would in Houdini?
Reply 0 0
plarson
I don't think the native Maya emitter's texture rate will work with 3d textures or the array2Texture2d without being baked first.

You can use the output from a texture2array to adjust the ratePP of a pointCloudParticleEmitter. Emitting from scattered points with PCPE can get a similar distribution of emission as the native Maya emitter in surface mode.

With a PCPE emitting from scattered points, its ratePP will need to be of equal length to the scattered points. However the texture2array driving the Peak weights would be based on the point count of the original mesh. So you could use vertex colors to store the texture2array output(like with a arrayToPointColor). Then later use a pointsOnMeshInfo to get the vertex colors from the mesh based on the scattered point's count to drive the ratePP.
Reply 0 0
mbattcock
Hey thanks for the reply but that's not quite what I'm trying to do. I'm not using particles at all, just deforming a mesh with the peak deformer and then I'd like to use the deformation weight to drive something in the shader, e.g the more displacement the brighter the shader. What you said about the pointsOnMeshInfo node could work though. Thanks
Reply 0 0
plarson
Oops, I misinterpreted your use of the term "emission" and assumed particles. If you are using texture2array, can't you use that same texture for shading directly? Are you adjusting those values in some other way after they are an array? If so, you might consider setting those values as vertex colors(arrayToPointColor) and then output them to shading. Depending on the rendering engine used, mentalrayVertexColors node for mental ray, userData nodes for Arnold.
Reply 0 0
Reply