Hi,
I have a question on the V-Ray SDK.
I extended the vray_texdirt example so that i can sample the curvatures of Objects. So far it works, but because it samples the curvature I need really too many rays to get a smooth result. I also have to set the max raylength in the subdivision settings to 1.0 to get rid of lines in my rendering. So it works but takes way too long and isn't accurate enough for my needs.
Now I just found this interface "VUtils::NormalDerivativesInterface" . Could this be used to get the curvature of Objects, since the derivates of the normals should give you the change between the normals, what seems to be the same as what I think curvature describes. In the rayParams of a VRayContext I can only get DDdx and DPdx, but cant find DNdx anywhere...
In the SDK there is just not enough information on how to handle it. Is there an example where it is used? And is there a way to get the normal derivates in UV-space, or what exactly is meant by x and y directions in the description? ( "Return the derivatives of the surface normal in the x and y directions for the given intersection point." ) Is it the x and y of the image plane? And if so, will there appear wrong results on edges?
Any help is very welcome!
Thanks, Fex
I have a question on the V-Ray SDK.
I extended the vray_texdirt example so that i can sample the curvatures of Objects. So far it works, but because it samples the curvature I need really too many rays to get a smooth result. I also have to set the max raylength in the subdivision settings to 1.0 to get rid of lines in my rendering. So it works but takes way too long and isn't accurate enough for my needs.
Now I just found this interface "VUtils::NormalDerivativesInterface" . Could this be used to get the curvature of Objects, since the derivates of the normals should give you the change between the normals, what seems to be the same as what I think curvature describes. In the rayParams of a VRayContext I can only get DDdx and DPdx, but cant find DNdx anywhere...
In the SDK there is just not enough information on how to handle it. Is there an example where it is used? And is there a way to get the normal derivates in UV-space, or what exactly is meant by x and y directions in the description? ( "Return the derivatives of the surface normal in the x and y directions for the given intersection point." ) Is it the x and y of the image plane? And if so, will there appear wrong results on edges?
Any help is very welcome!
Thanks, Fex
Comment