« Is there a maximum resolution for images rendered with mental ray for Maya ? | Main | The Maya 2012 network license and sub-feature components: mental ray and fluid simulation »

22/03/2011

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a01156fc44c77970b0147e3636055970b

Listed below are links to weblogs that reference How to sample a 3D texture :

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Thanks for sharing! I really need to learn this Python stuff some day :)

Nice stuff. FYI, you have a typo in the sampleshadingnetwork01.py script (the blog post is ok). Line 58 should be:

omr.MRenderUtil.sampleShadingNetwork(shadingNode, numSamples, useShadowMap, reuseMaps, cameraMatrix, pointArray, uCoords, vCoords, normals, refPoints, tangentUs, tangentVs, filterSizes, resultColors, resultTransparencies )

instead of:
om.MRenderUtil.sampleShadingNetwork(shadingNodeName, numSamples, useShadowMap, reuseMaps, cameraMatrix, pointArray, uCoords, vCoords, normals, refPoints, tangentUs, tangentVs, filterSizes, resultColors, resultTransparencies )


om to omr, shadingNodeName to shadingNode

That's embarrassing. I'll update the script. Thanks for pointing that out :)
Owen

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

RSS Feed

  • Subscribe

Google Search

Share

  • Bookmark and Share