View Full Version : SDK: How to get dPdx and dPdy

05 May 2009, 01:08 PM
I'm using XYZGen in my maps and it returns me the point in the map space and dervivatives of this point in XYZ. However I'd like to get dPdx and dPdy so I could supersample this point in space. With just XYZ derivatives I can't really properly do it for 3D texture. The ShadeContext does have dPdx and dPdy nicely, however with the transformations XYZGen does, these usually aren't correct any more.

So is there any way to obtain dPdx and dPdy other than rewriting the XYZGen from the ground up myself?

- Jerry

CGTalk Moderation
05 May 2009, 01:08 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.