- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So i have my ProceduralCallbacks setup and running, and i'm able to export the splines with everything just fine. But i'm getting a number of errors out of xgen, even though i'm certain i'm settings the settings properly.
I've got all my settings setup referencing this page: https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Maya/fil...
however, i get theses errors:
// Error: XGen: No Camera FOV attribute found in rib. //
// Error: XGen: No Camera Ratio attribute found in rib. //
I get those for each flush iteration, so it's really killing my performance on large hair descriptions. i was getting the error with the camera attribute as well, but i finally figured out to use "true,1.0,0.0,0.0", which appears to resolve that one. but the other errors persist, even though i'm certain i've got the settings set the same as the page above dictates.
My code is returning as follows
const char * MyProcedural::get(EStringAttribute in_attr) const { std::string result = ""; switch (in_attr) { ... case XGenRenderAPI::ProceduralCallbacks::RenderCam: result = "true,1.0,0.0,0.0"; break; case XGenRenderAPI::ProceduralCallbacks::RenderCamFOV: result = "90.0,90.0"; break; case XGenRenderAPI::ProceduralCallbacks::RenderCamRatio: result = "1.0"; break; case XGenRenderAPI::ProceduralCallbacks::RenderCamXform: result = "1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1"; break; ... } return result.c_str(); }
but the errors persist. Funny thing is, if optimizations are enabled, i don't get these errors. however, it also doesn't produce any difference in the sub-frame samples, so i don't get my motion blur.
Any help with this would be greatly appreciated, really need to get this going and this is kind of the last thing holding me up. thanks!
Solved! Go to Solution.