Hi,
Based on your provided geomMeshLoader sample , I am using a Maya MPxNode that is calling a geomMeshLoader in which there is a GeomStaticMesh-called plugin. However I can't get it to be distributed rendered:
However, when I perform a distributed rendering, the slave indicates that "geomMeshLoader" cannot be found (indeed I don't have a specific .so file for that).
As my geomMeshLoader is only about loading geometry in GeomStaticMesh and doing some memory/factory cleanup, what should I do to get my geometry being distributed ?
1. Compile my own .so ?
2. Call GeomStaticMesh plugin directly from my MPxNode ?
3. Other ?
Thanks.
Based on your provided geomMeshLoader sample , I am using a Maya MPxNode that is calling a geomMeshLoader in which there is a GeomStaticMesh-called plugin. However I can't get it to be distributed rendered:
HTML Code:
static struct GeomDesc: VR::VRayPluginDesc
{
GeomDesc(void):VR::VRayPluginDesc(&geommeshloader_params) {}
PluginID getPluginID(void) { return PluginID(LARGE_CONST(0x2010090301)); }
Plugin *newPlugin(PluginHost *host) { return new GeomMeshLoader(this); }
void deletePlugin(Plugin *obj) { delete (GeomMeshLoader*) obj; }
bool supportsInterface(InterfaceID id) { return (id==EXT_STATIC_GEOM_SOURCE) || (id==EXT_VRAY_PLUGIN); }
tchar *getName(void) { return "geomMeshLoader"; }
const tchar *getCopyright(void) { return "Copyright (C) 2015, Chaos Software Ltd"; }
} geomDesc;
void myMpxNode::createVRayPlugin(VR::VRayGeomInfo *geomInfo)
{
if (!geomInfo) return;
plugman=geomInfo->getPluginManager();
if (!plugman) return;
bool existing=false;
// Check to see if our class is already registered in the plugin manager
// and register it if necessary
PluginDesc *geomPluginDesc=plugman->getPluginDesc("geomMeshLoader");
if (!geomPluginDesc)
{
plugman->registerPlugin(&geomDesc);
pluginRegistered=true;
}
GeomMeshLoader *geom=static_cast<GeomMeshLoader*>(geomInfo->newPlugin("geomMeshLoader", existing));
geom->parentEmitterNode=this;
if (!existing)
{
// The plugin did not exist before - we can do additional set up here, if necessary
}
}
As my geomMeshLoader is only about loading geometry in GeomStaticMesh and doing some memory/factory cleanup, what should I do to get my geometry being distributed ?
1. Compile my own .so ?
2. Call GeomStaticMesh plugin directly from my MPxNode ?
3. Other ?
Thanks.
Comment