Monday, March 20, 2006

GenRIB

  • 檢查目前的render pass, 如果是 declare pass, return 0.然後依照不同的render path作不同的事
    RIBContext->GetRenderingPass(&p, &decl);
    // RIBContext::RenderingPass p;
    // RtBoolean decl;

  • RIBContext->ExecuteHostCmd(cmd, errorString) 來執行maya的mel command,以取得maya內的資訊

  • 將想要的資訊產生為rib (c->AttributeBegin(); ...; c->AttributeEnd();)
  • 1 comment:

    Anonymous said...
    This comment has been removed by a blog administrator.