Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / MRenderUtil::sampleShadingNetwork Issues
  RSS 2.0 ATOM  

MRenderUtil::sampleShadingNetwork Issues
Rate this thread
 
41490
 
Permlink of this thread  
avatar
  • fphifer
  • Posted: 05 April 2010 09:55 AM
  • Total Posts: 1
  • Joined: 21 August 2008 05:14 AM

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.



Replies: 0