|
Hello,
Was wondering if anyone has run into this issue with sampleShadingNetwork. I am trying to query the texture map values of the red channel for every deforming vert.
I am building the uv arrays and querying the texture in one call outside of the deformation iteration for loop. I am getting values but the are not always reflecting the actual values. Sometime jumping between the correct value and zero.
I am pretty to new to the API so most likely a user error.
Thanks for any help!
EDIT:
I reread the code and fixed a typo that solved my main issue. Now I have an update issue. The deformer updates when I step through the frames or change an attribute value on the deformer node. I suspect the attributeAffects call needs to be applied to the indvidual RGB child attributes of the “inColor” attribute. Not sure how to go about doing that though.
|
|
|