Needs latest yafray, you can get it from cvs, but I have also binaries for os x here: http://www.coala.uniovi.es/~jandro/noname/downloads/yafray-0.0.6-3.pkg.zip To use it, go to yafray panels (global settings) and uncheck the "xml" button. That would tell the export code to avoid xml export and use the yafray plugin instead. You'll see the render being draw while running and you can even stop it with ESC key. Since I'm sure problems will appear, expect updates soon. Remember: does not work on win32
19 lines
538 B
C++
Executable File
19 lines
538 B
C++
Executable File
#include "export_File.h"
|
|
#include "export_Plugin.h"
|
|
|
|
static yafrayFileRender_t byfile;
|
|
static yafrayPluginRender_t byplugin;
|
|
|
|
yafrayRender_t *YAFBLEND=&byplugin;
|
|
|
|
extern "C"
|
|
{
|
|
void YAF_switchPlugin() {YAFBLEND=&byplugin;}
|
|
void YAF_switchFile() {YAFBLEND=&byfile;}
|
|
int YAF_exportScene() { return (int)YAFBLEND->exportScene(); }
|
|
//void YAF_displayImage() { YAFBLEND->displayImage(); }
|
|
void YAF_addDupliMtx(Object* obj) { YAFBLEND->addDupliMtx(obj); }
|
|
int YAF_objectKnownData(Object* obj) { return (int)YAFBLEND->objectKnownData(obj); }
|
|
|
|
}
|