Wyphon
Wyphon copied to clipboard
Syncing VVVV Texture Read/Write
Sync is not possible yet.
This could help: http://vvvv.org/blog/idxdeviceservice-and-imainloop
It seems that we have events that tell us about the mainLoop state. We should try these events for locking the textures. Perhaps we also have to try other events from http://vvvv.org/pluginspecs/html/AllMembers_T_VVVV_PluginInterfaces_V2_IMainLoop.htm
I did a test without wyphon just to see if the events are called and in which order they are called.
public class XXXX : IPluginEvaluate, ..., IPartImportsSatisfiedNotification {
...
[Import()]
IHDEHost FHDEHost;
...
public void OnImportsSatisfied()
{
FHDEHost.MainLoop.OnPresent += MainLoop_Present;
FHDEHost.MainLoop.OnRender += MainLoop_OnRender;
}
public void MainLoop_OnRender(Object sender,EventArgs e) {
// first OnRender gets called
lockTexture() here ?
FOutput[0] = 1;
}
public void MainLoop_Present(Object sender,EventArgs e) {
// second Present gets called
releaseTexture() here?
FOutput[0] = 2;
}
//called when data for any output pin is requested
public void Evaluate(int SpreadMax)
{
FOutput.SliceCount = SpreadMax;
// after presentation, evaluate gets called
FOutput[0] = 3;
}
}
@meliody what is the best way to contact you in regards of vvvv in relation to a new project called Spout. Its a Syphon for windows which has bene developed atm. Some of my friends in the project meaning to get your feedback on some issues.. If you let me know your details, I'll pass it on [email protected] grig / vj union
@vdmokstati Is there any information anywhere about this 'Spout' project?
I would also be interested to see how they solve things, or if they have similar questions as we do :)