» DirectX-FreeframeGL Bridge
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

DirectX-FreeframeGL Bridge

misc bridge directx nvidia interop opengl resolume shared texture
Credits: NVidia Interop Specificationhttps://www.opengl.org/registry/specs/NV/DX_interop.txt

about

A plugin that allows for using DirectX Textures in Resolume and probably other OpenGL Freeframe Hosts (which I did not test yet - anyone?). It runs completely on GPU. Multiple textures at the same time are possible.

I use the NVidia Interop Functions. So it only works with NVidia Cards that support these features.

Let me know if you have any issues or hints!

Setup

  • VVVV must be started with the /dx9ex command line option in order to support shared resources
  • Open the "ShareTextureInfo" help patch
  • OR Create a Renderer with something attached to the inlet and use a DX9Texture at the output. In the Inspektor, set the DX9Texture Format to A8R8G8B8 (currently only this Format is supported). Then connect the "ShareTextureInfo" to the Texture output. ShareTextureInfo has an inlet for defining a sharing name for the texture. Change that to whatever you want.
  • Copy RR_DXTexture.dll to your plugin directory
  • Start Resolume and select DX Texture (RR) from Sources. In the parameters you put the sharing name that you defined in vvvv.

Resolume 4.0 seems to have some issues. Please use more recent Version.

For those who want to connect other stuff than VVVV

The Texture Information (Resolution, Share Handle) is transmitted to the plugin via Shared Memory.
The shared memory's name can be set in the plugin's parameters. The Data structure is as follows:

struct DX9SharedTextureInfo {
    UINT16 width;
    UINT16 height;
    HANDLE shareHandle;
};

Have Fun! Elio

Links:

gegenlicht 26/04/2013 - 13:56

YOU ARE AWESOME!!!

metrowave 26/04/2013 - 14:01

Big achievement + Brilliant work.

Joanie_AntiVJ 26/04/2013 - 14:05

<3 <3 <3 <3

catweasel 26/04/2013 - 14:22

Very cool :)

vjc4 26/04/2013 - 14:25

Just fuking awesome!!! downloading rigth now!!

m4d 26/04/2013 - 14:31

wow, i'm not even a resolume user, but WOW..

vjc4 26/04/2013 - 14:42

This is a great achivmente, its has been wanted for years years and years on all the forums! great work!!

fucking apple syphone shit you can die alone now!

just 1 thing to add, if resolume crash when you select the layer, be sure to, copy the name of vvvv texture name, the example patch is "vvvvToResolume/MainRenderer2" , just put that on the resolume, and after that select the layer

LcyfrVrx 26/04/2013 - 15:00

well done bro!! thanks

tonfilm 26/04/2013 - 15:15

wow, that came out of nowhere... nice surprise!

ft 26/04/2013 - 16:03

Great :)

elio 26/04/2013 - 18:34

Hey vjc4, can you tell me which version of Resolume + Windows and exact steps to reproduce your crash?

elio 26/04/2013 - 18:55

Just changed to Version 1.1 which should be more stable and give more hints when things don't work.

circuitb 26/04/2013 - 19:53

well done Elio

shmutus 26/04/2013 - 22:40

How can we use it with other software?
Is it possible to use with Arkaos Grand VJ to Resolume?

Westbam 26/04/2013 - 23:21

I can not believe this :) Was looking for a solution like this for years... THANK YOU!!

lightizm 27/04/2013 - 06:42

super very nice!!!

colorsound 27/04/2013 - 15:07

thank you very cool

Takuma 27/04/2013 - 18:46

Sound awesome, but not working here! can somebody help me?
I've got Nvidia and followed the whole instruction,vvvv is running on dx9ex, put the DX texture in resolume>plugin>vfx, the plugin appieres on resolume. However nothing shows up on the output.
I see resolume crashing when I put wrong sharing name, so probobly something wrong on resolume side?

elio 27/04/2013 - 20:39

Which version of resolume and Windows?

vjc4 27/04/2013 - 21:01

@elio: microdee gave me the news about this, but i understand that you are the responsable of this, so 1 more time, THANK YOU!!!

this was my 1st wish when i started vvvvjing almost 7 years ago! http://vjforums.com/showthread.php?t=20711

The crash that i describer was with w7.64x and arena 4.0 , but i tested with 4.13 and it worked fine... i used for more than 6 hours yesterday and it was a pleasure :). I will test this new version again.

1 more question,,, how hard would be to do it backwards... Resolume -> VVVV ?
im doing it in a horrible way... output resolume on another monitor and using screenshot node to get the texture... is there any other better way at the moment ? 1 more time, excellent work, this will open vvvv world to a lot of new vjs!

This is the 1st vercion that you uploaded

vvvv resolume bridge

3 x 1680x1050 to resulume, 1680x1050 output
i5,n670,4gb ram, seven 64, vvvv 29.2 x32
48fps

elio 27/04/2013 - 23:26

The Way back from Resolume to DX-Shared Texture is a bit different but I think it could work. I'll have a closer look when time allows.

elio 27/04/2013 - 23:31

@Takuma: Are you sure that you're using the A8R8G8B8 Texture format? Also to you: what Version of Resolume and Windows do you use? Perhaps an update to Resolume 4.1.x will help you.

Takuma 28/04/2013 - 06:15

Hi elio, yes i've checked the texture format is A8R8G8B8. Even the help patch doesn't work.
I use resolume 4.1.2 running on bootcamp - windows7 MBP Retina Mid2012, vvvv version 45beta29.2_x64. Also tried upgrading to resolume 4.1.5 but didn't work.
I run vvvv shortcut with /dx9ex at the end of properties>shortcut>target. Hope it's not bootcamp prob.

vjc4 28/04/2013 - 06:48

mmmm running on bootcam ? you mean, windows inside lion, or did you boot windows from scratch ?
you have a intel hd4000 and a nvidia 650m ?
did you try with vvvv 29.2 x32 ?

Takuma 28/04/2013 - 07:13

Ahhhhhhh, it worked on 29.2 x32!!! Tnx vjc4!
In case, I'm running windows inside Mountain Lion, nvidia 650m, and it worked :)
Working working working. Great!

Meierhans 28/04/2013 - 09:39

It works very nice and fluid. THX!

+1 for the way back, I would love to abuse Resolume as clip player / aux effect.

bilderbuchi 28/04/2013 - 15:50

this is awesome, thanks!

kyy921 28/04/2013 - 22:57

could we use it to connect vvvv with unity3d, just like syphon have done?

wide 29/04/2013 - 11:56

Hi & thanks :)
Do you see any possibility to implement this on ATI cards?

microdee 29/04/2013 - 18:30

no panic here it works i was just dumb a little bit. do you think it can be done with dx11?
well hereby i abandon md.vis farewell! because it became obsolete next to this and IRIS!

lightizm 29/04/2013 - 19:22

working!!! thanks!!!
win7_x64
Nvidia gt330m(MBP_bootcamp)
vvvv29.2_x86
Resolume Arena 4.1.3

zuvassin 02/05/2013 - 10:28

Nice works ... It looks promising...

Doesn't manage to make it work... on 2 différent Machine :

1rst One :
Lenovo Ideapad I5 - NVidia GT610m
Win 8 64.
vvvv 45beta29.2 X64
Nivdia Drivers up to date ...
Resolume 4.1.5 ...

Vvvv Patch launch but resolume told me at Ffgl loading :
Nvidia wglDXInterop failed to initialize.

2nd One (older):
Acer Aspire X1700
Win Vista 32
vvvv 45beta29.2 X64
Nivdia Drivers up to date ...
Resolume 4.1.5 ...

Same Problem ...
vvvv is launch with the /dx9ex options then opening the Help patch...

Maybe theses information will help ... (Me to make it works !!!)

zuvassin 02/05/2013 - 11:15

I forgot to mention that the older machine has an Nvidia Geforce 7100 ... (Quite old but enough for testing)

zuvassin 02/05/2013 - 13:04

And I noticed something on the Lenove ... it is an Hybrid chipset (intelHD 4000 / Nvidia ) ... and Resolume is showing inteldHD as graphic card used ... (even if I select the nvidia card to be used)

zuvassin 02/05/2013 - 14:08

Third Machine :
HP workstation
XP 32 bits - Quadro FX 1700

Failed initialisation on resolume because
of LCMapstringEX ...

I think... I'll never manage to make this works...

It looks so promising ...

I'll check later with new Versions ...

rogalag 02/05/2013 - 18:08

The same error on my comp:Nvidia wglDXInterop failed to initialize
Nvidia drivers updated,
Acer Aaspire i7, Nvidia GT540M, optimus technology, win7x64, VVVV 45 beta29.2x86 demo patch with /dx9ex,Resolume 4.1.3...anyone knows what may be wrong?

zuvassin 02/05/2013 - 20:01

Got News ... The 4rst Machine I Test ... (Quad Core Q9300 - GTX260 - Win7 64 bits) .... Vvvv the last version in 32bits... and the same manipulation I did in the previous posts... It Works ...
I Think both My Laptop (With Nvidia Hybrid Chipset - Win8 64), My Work Desktop (Embed Geforce 7100 / nforce610 - Vista 32), and an old workstation (Quadro FX - XP 32) are not compatible ... Graphic Cards Too old, too specifique,... Too stupid ... To work with this ... really amazing plugins !!!

I'm really desapointed because the only Machine that work With, is the only one i'll never take with me @ Gig...
So not useable for me ...

Another point not written above on the utilisation :

In resolume, Drop the Source plugin in Resolume
Select it without launching
give Him the Shared Texture path as written on the "Name for sharing" pin of the ShareTexture info Node ...

If the Dev Need Testing ... I can Help...

Luper 03/05/2013 - 12:22

hehehe "Nvidia wglDXInterop failed to initialize" on opening resolume!

my gear:
asus n75s with win7x64, NVIDIA GeForce GT 555M (drivers update)
vvvv_45beta29.2_x86
resolume 4.1.3

I'm not expert in graphic card, so I have 2 question:
1) going with dxdiag, I see that the projector is managed by the GT555M card, but the main monitor is managed by the internal Intel(R)HD graphics 3000...
Perhaps this is the problem?

2) I'M about to buy a new graphic card for the Desktop comp (till now I'm trying only in the laptop). How can I check if the new card have the "NVidia Interop Functions"? It is enough to check for the CUDA Library?

antokhio 03/05/2013 - 19:20

it's technically any 11 card, but i would not go for tesla or quadro

dEp 05/05/2013 - 05:11

great!
i get red nodes in b28, but not with b29.2. however, the streaming does not work. the State says ok and i have set the share name in resolume. i've also tried the update buttons.
i have an nvidia 9500M GS. is there a way to find out if it supports NV_DX_interop?

vux 05/05/2013 - 14:08

Sounds nice!

I got the same issue with Interop, could come from Optimus. Would be quite nice to see in Resolume what Adapter they use (probably need their dev to add it, option to switch would be also nice on the way :)

To make it work with dx11:

  • It seems the interop layer is 9 only, but you can use Cuda instead (that will cost you 2 gpu copies, which is not much, and it's very easy to do, you don't even need to write a kernel ;)

To make it work from Resolume to 4v:

  • You could have another FFGL plugin connected to master/output that does operation in reverse (eg: grab GL surface and convert in shared dx texture). That's in theory pretty much as easy.

To make it work with ATI:

  • Well neither Cuda/Interop will work in that case, OpenCL 1.2 had DirectX (9 and 11) interoperability, but heard some cards don't support it properly (so would need testing).

On side note:
I'll add you project file for vs2010 (since did compile for debug), you also have a file missing on your git (GL extentions loader) and change filters a bit (don't need 8 megs of .sdf file ;)

microdee 08/05/2013 - 19:07

ok i discovered some nasty things at first it was working for a while then i changed the input texture (which had the same length and format) resolume didn't receive anything anymore. in the module i discovered that the character encoding of the AsStrings are set to utf-16 and for some reason the output of the shared memory is not the same as the input was (more preciesely sometimes it's nothing after i force update)
second that the sharedmemory node set to 100 bytes is that alright? i mean what is sent over is only 8 bytes
and 3rd for the devvvvs SharedMemory (Raw) node feature request :D

elio 09/05/2013 - 03:06

Last week has been so busy, I did not manage to answer. Sorry for that. Thanks for all the hints and debugging you did so far.

@microdee: the AsString + SharedMemory may produce bugs. Until now, it's a messy workaround.

@vux&others: Yes it's probably Intel's Optimus that's preventing all our mobile nvidia devices from working. Did someone already try to disable Optimus? (just as a proof).

>>>>>>>

A few hours ago I've been talking to ft in order to bring wyphon forum-alpha/something-like-syphon-on-windows-%28currently-called-wyphon%29 and my bridge togehther. Here are our plans:

Wyphon shall internally still work with directx textures.
But it will get some new helper functions. These allow for
a) accessing the shared DX textures as OpenGL textures
b) for sharing an OpenGl Texture as a DirectX Texture

This way we can communicate DX->DX, DX->GL, GL->DX, GL->GL. OpenGL applications shall also use an intermediate DX texture, that shouldn't be a performance problem.

The Wyphon functions shall be integrated in two FreeframeGL plugins. One for importing textures, the other for exporting textures.

And yes, GL->DX works, I just successfully did my proof of concept. Resolume made a Full HD stutter free output to VVVV!

We'll let you know as soon as we have coded something clean & stable.

microdee 09/05/2013 - 20:58

all hail elio!

hadesbry 10/05/2013 - 02:17

you're a genius... thanks a lot... working fine in my laptop:

msi GT780R with win7x64, NVIDIA GeForce GT 560M
vvvv_45beta29.2_x86
resolume 4.1.3

love your plugin...

I'm very interested about your discoveries: DX->DX, DX->GL, GL->DX, GL->GL ...
I didn't imagine that could be posible ....

Thanks... thanks a lot...

microdee 10/05/2013 - 14:30

today a new bug introduced: as soon as i open the source "DX Texture (RR)" Resolume crashes. regardless of vvvv is there or it isn't gaah. it was working like charm 2 days ago. i've changed nothing :(
visual studio debugger says: "Unhandled exception at 0x0859DBCC (nvoglv32.dll) in Arena.exe: 0xC0000005: Access violation reading location 0xD3DBF00A." what can be done with it?

antokhio 11/05/2013 - 13:55

thouse things are super bitchy to find, i suspect thats how memory adressing problem look like....
to find source you need to build from source in debug

sunep 13/05/2013 - 11:57

just to clarify, should RR_DXTexture.dll be in the vvvv plugins folder or in resolumes plugin folder?

microdee 13/05/2013 - 12:07

that is the resolume plugin

elio 14/05/2013 - 10:15

Hey microdee & other bugreporters.
Since our wyphon plans already show some vvvvery promising results, I do not plan to do bugfixes for the old Interface I released above.

But your reports help me develop the wyphon version.

elio 14/05/2013 - 10:28

Can someone help me with this:

I need to convert a texture's format (e.g. D3DFMT_A8R8G8B8) and usage (e.g. D3DUSAGE_RENDERTARGET) from VVVV enum to the real DX enum's value.

The VVVV enum2ord is just a 1..N value and does not reflect the original constants). For me it seems to be hidden in black closed source boxes ;('''

sunep 14/05/2013 - 10:30

will wyphon work with ATI cards?

elio 14/05/2013 - 10:46

Not now and not tomorrow. But we plan to add support when we find a way.

elio 14/05/2013 - 20:47

Found the way to get the enum's real value: just create a dynamic plugin and cast the "Format" or "Usage" Enum to integer. Easy easy...

shmutus 15/05/2013 - 20:01

Hi elio, unfortunetlly optimus cannot be disabled.
Nvidia chipset is connected phisiclly to the intel one.

microdee 16/05/2013 - 11:47

nvidia optimus and all the switchable graphics cards are created by the satan itself! fuck you too intel!

elio 20/05/2013 - 17:03

I just had a hard time debugging this optimus bug. No result yet.

Anyone who made it work on optimus cards using the software-settings from nvidia-control panel (set resolume on whitelist)?

mrboni 21/05/2013 - 11:16

Do you think the 'Global Variable NvOptimusEnablement' mentioned here might help? -

http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf

yochee 25/05/2013 - 12:19

hey guys, is anybody of you at lmp? Maybe we can gather tonight and work on the problem.. i have a Geforce GT540M and it doesnt work, same error message here :/

lappy with vvvv_45beta29.2_x86

elio 26/05/2013 - 01:22

NvOptimusEnablement ist just a weak switch (comes after the hardware switch on the notebook and the nvidia control panel whitelist) for forcing performance mode.
When I tried it, this switch did not switch me to performance mode. Perhaps it's because i have just a dll and cannot put the code into the extern "C" exported variable into the executable itself... maybe.

I asked NVidia on the devtalk forum if Optimus has a problem with the GL/DX interop features, but they do not seem to respond. Does someone have a better connection to nvidia?
if it does not work, the less-easy-to-use cuda way would be the only chance.

PS: The new Wyphon-based Freeframe-Plugins (texture import AND export!) will come soon. ft and me, we're on it.

elio 26/05/2013 - 01:34

@vux (late reply): the interop features also support dx10+11, see https://www.opengl.org/registry/specs/NV/DX_interop2.txt

casinowilhelm 29/05/2013 - 14:08

fantastic work (just found it after all this time!). Just putting my vote in for the other way round (resolume->vvvv) so I can use the excellent mapping setup in vvvv with easy clip selection from resolume...

thanks again!

leadedge2000 01/06/2013 - 09:19

Hey everyone,

I haven't use VVVV for a while but I thought I should post here to see who might be interested.

My ultimate goal is to get communication between Max/Msp and other applications in Windows, to give a Syphon functionality. As a base for development I am using openFrameworks.

I developed a memory sharing system between Max/Msp <-> openFrameworks and openFrameworks <-> FreeframeGL. It affects performance and is not ideal, but it does work in the absence of anything else.

When I saw Elio's work I was very impressed and keen to try it. I have succeeded in getting communication between openFrameworks and Resolume via Eilo's FFGL plugin and some modifications to the dxconnector code to provide for a sender.

I hope that if I can port this to a Max/Msp external or FreeFrame 1.0 plugin it will work. I have been working with Max 5 which does not support FFGL unless I can be enlightened by somebody using Max 6.

I have looked at Wyphon but can't wrap my head around it.

I wonder if Elio or anybody else might be working in a similar direction.

Thanks to all...

ft 02/06/2013 - 13:45

@leadedge2000:

What Elio is working on will be built upon Wyphon.

Elio made sure the shared textures (which are Direct3D textures) can be opened by an OpenGL application (on supported hardware), and put this into a handy FFGL plugin.

In the process he added some functionality to Wyphon's WyphonUtils, that should make it easier for anyone else to implement what he has done in their own application (if they don't want or are able to use the FFGL plugins he wrote).

Wyphon is basically the communication protocol for sending the necessary info about shared textures between applications.

I am sure he'll keep you posted on what's happening.

leadedge2000 03/06/2013 - 02:51

Thanks ft

yes I saw some new WyphonUtils DX9 and Interop functions referred to in the code Elio has provided. The idea of building Wyphon into an FFGL plugin is a good approach. I am keen to follow his work as it develops.

What I have at the moment is a solution based on the old code to get things back and forth from OpenFrameworks which is based on OpenGL, but there are some fundamental problems to solve before it will work within Max/Msp. If I can crack that then the new Wyphon based plugins should work. Elio's new work is the thing to wait for, but if anybody wants to look at what I have done I will see what I can do to post it somewhere. Not sure how to attach a file here.

leonida 06/06/2013 - 16:47

Hello,
I followed the instructions.
I copied the plugin folder Resolume is displayed in resources.
vvvv start, but I do not see the output in Resolume.
you could write a tutorial with examples.

sorry for my english, I'm an Italian student

NVIDIA Quadro FX 4800
VVVV: 45BETA29.2
win7 x64
Resolume 4.1.6

Luper 06/06/2013 - 23:17

hehehehe ok:
1) hai fatto partire VVVV con l'opzxione /dx9ex?
2) hai copiato la RR_DXTexture.dll nella cartella Resolume Arena 4.1.6\plugins\vfx ?
3) hai messo la giusta "sharing name" nella casella parameters della source di resolume?

metrowave 07/06/2013 - 03:06

@leonida: (or anyone having problem... it's really easy)

make a new text file in vvvv directory, then in it type the following two lines:

@echo off
vvvv.exe /dx9ex

Save it, then change the extension from .txt to .bat, now double click this batch file to start vvvv (this is a batch file to start vvvv with /dx9ex command line option). In vvvv root open the patch: ShareTextureInfo(OpenGl,Interop)help.v4p, and look at first inlet of "ShareTextureInfo" node which is "name for sharing" and copy the name or name it something yourself (the current default name in that help patch is "vvvvToResolume/MainRenderer1". Copy this name to the shared name parameter in Resolume resources and click update. That's it it should work.

My graphic card is also NVIDIA Quadro FX 4800, and I tried this with vvvv_45beta30_x86, Win 7 x64 and Resolume 4.1.6.

leonida 07/06/2013 - 18:18

Ciao Luper.
Finalmente un italiano , hhihhihihihi
Grazie per aver risposto.
Come devo fare per far partire vvvv con l'opzione dx9ex?
Ho fatto partire gli esempi che elio ha postato qui.
Ho copiato correttamente il plugin , infatti resolume lo riconosce e lo utilizza senza pero' leggere i dati provenienti da vvvv.
Per lo sharing name mi sono basato sull'esempio dove si visualizza lo screen di Elio e ho scritto la stessa cosa che appare sulla sua foto desktop.
Visto che utilizziamo due configurazioni molto simili, potresti aiutarmi a far funzionare il tutto.
Credo che sia una grande cosa visto che gli utenti di windows non possono usare syphon.

Grazie per tutto.

Leonida

leonida 07/06/2013 - 18:37

dear metrowave,
I saw that we have a very similar configuration.
I followed your instructions and I created the bat file., I put it on the bin vvvv, and I took the name from the root of sharing examples of Helium.
The plugin in Resolume works, but it does not transfer data from vvvv to resolume.
could you send me an example with a tutorial?
if you could send me some working example already tested?

ps: excuse my english, I'm an Italian student

win7 x64
nvidia quadro FX4800
dual xeon
vvvv_45beta29.2_x86/x64

arius.esteban 08/06/2013 - 08:14

Hello
I would try resolume with VVVV for interactive projections. But I have to buy a nvidia card. So before I would like to know if there perceptible latency between the video output VVVV and video output resolume ? Someone try to look that ?
Thanks

metrowave 08/06/2013 - 15:18

@arius.esteban: Hardly any latency... this is the best way between vvvv and other apps so far, thanks to elio.

@leonida: you are doing something wrong. follow the instructions step by step. It's really not that hard. After starting vvvv through the .bat file, only open the help patch: ShareTextureInfo(OpenGl,Interop)help.v4p , the answer is in this help patch, look at the shared name and use it in Resolume, then hit update..

leonida 09/06/2013 - 01:48

@metrowave :

I followed the instructions step by step, are very simple.
Start the bat file and after "ShareTextureInfo (OpenGL, Interop) help.v4p."
after using "ShareTextureInfo (OpenGL, Interop). V4P" See my name sharing that in the case of the example is: (vvvvToResolume / MainRenderer).
start Resolume 4.1.6, I select the plug-in "rr_dxTexture.dll," write the name of sharing and I click update, but nothing appears.
I have to copy vvvv_45beta30_x86 in C:?
how should I configure the preferences Resolume? ..

could you be kind enough to explain to me the proper configuration of both vvvv and Resolume ..

thanks

metrowave 09/06/2013 - 13:42

Check the shared name again. Are you taking the name from the help patch it is vvvvToResolume/MainRenderer1, and vvvvToResolume/MainRenderer2 . there is no space between the backslash. Or you can just put your own name, then click the top-right inlet of the node: ShareTextureInfo to update it before you put the name in Resolume and update there. I think maybe the shared name syntax is your problem... it has to be exactly the same in both Resolume and vvvv patch (just copy and past it).

leonida 10/06/2013 - 14:27

all fixed.
the problem was the sharing name.
Helium is the best.
I look forward to the new version as soon as compiled by Elio

ps: the exact name of sharing is sharing: (vvvvToResolume/MainRenderer1-2)

leonida 10/06/2013 - 15:52

oh my god is really amazing ..
@ELIO@ is super..., just enter the other patch and connect using the same name sharing and you're done.
And 'possible to use the same method to other programs such as ISADORA OR OTHER?

elio 03/07/2013 - 12:50

Wyphon will come

Currently ft and I, we're in an advanced state of developing Wyphon (Syphon for Windows) with OpenGL <-> DirectX support. For more details about the concept, please read on the dedicated wyphon site:

http://wyphon.wordpress.com/

We're planning to do a release in the next few month, perhaps earlier, perhaps later.

At the moment we're working on a concept for synchronizing read/write access to textures in order to make the sharing flicker-free - so that it can be used for professional productions.

Especially regarding vvvv-core, we'd appreciate some help, because we need to support locking of shared textures. Who of you guys could best help us?

CEA 06/07/2013 - 14:05

feel bad for this
my card is AMD 7650A n Intel HD4000

any way to settel this?

pazi 15/07/2013 - 10:23

wglDXOpenDeviceNV ext is not supported by your GPU

in my case..... ?( Radeon FirePro M8900 FireGl Mobility Pro Graphic on Dell Precision M6600

Jose Vaaliña 01/08/2013 - 17:37

"Nvidia wglDXInterop failed to initialize" +1
Asus Notebook: i7 / 8GB / Intel HD4000 + Geforce GT 740M

Can't wait for Wyphon!!! Any news elio?? I'd like to help with that but I'm afraid I don't have enough knowledge. Maybe I can help by testing the App on different computers...

Thanks for your work!

yochee 11/09/2013 - 14:15

No news from Elio for a loong time. Working hard or abandoned the project?

I don't know if this helps anybody: glCapsViewer is a OpenGL hardware capability database. It says my nvidia GT540m should support WGL_NV_DX_INTEROP when OpenGL 4.1/4.2/4.3 installed + WGL_NV_DX_interop2 when OpenGL 4.2/4.3 installed. But until now it didn't work.
http://www.delphigl.de/glcapsviewer/listreports.php?listreportsbyextension=WGL_NV_DX_interop

so i checked my open gl driver version with GPU Caps Viewer 1.16.0
http://www.geeks3d.com/20120412/gpu-caps-viewer-1-16-0-geforce-gtx-680-monitoring-opengl-opencl-cuda-utility/

updated all intel (Intel HD Graphics 3000 seems to only support opengl 3.1 (problem?!)) and nvidia drivers (opengl version now is 4.2)

ok... sooo

once again

  • downloaded a new version of vvvv (vvvv_45beta31_x86) (32bit because resolume runs in 32bit even though i have win7 64bit.)
  • in the nvidia preferences assingned vvvv.exe to run on nvidia graphics
  • created args.bat containing the following code:

@echo off
vvvv.exe /dx9ex

  • RR_DXTexture.dll is in my resolume plugin folder
  • the other two .v4p patch files are in my vvvv root folder (together with the args.bat)
  • I start args.bat -> start ShareTextureInfo (OpenGl, Interop) help.v4p -> start resolume -> then DX Texture (RR) Root resolume source plugin
  • result: Error message "NVidia wglDXInterop failed to initialize"

did i miss anything? It just won't work :(

microdee 11/09/2013 - 17:59

@yochee: optimus is a great enemy of vvvv

vdmokstati 04/10/2013 - 08:30

elio,

http://www.wyphon.com will work as redirect to your website.
I've set it for you;)

please keep me updated with any news...
just call it .. vj union global sponsorship ;)

psylion 11/10/2013 - 14:02

For those who already got success rendering content through Resolume.
Can you Record some video? I mean Resolume recording function.

I'm currently using the demo trial, but when I record VVVV produced graphics, I only get blank (black) output.

Is this due to the limitation of Demo Trial? (it's working for normal video process)
or is this due to the vvvv produce GPU shared gfx, and could not be recorded?

ernest 27/10/2013 - 16:07

@psylion: yes you can record the "dx bridge" clip. even multiscreen renderer

i did a 3 screen panorama show last weekend.

vvvv renderer: 2400x600
resolume arena output: 3840x720 (=3x 1280x720)

output of resolume was around 35fps - 40fps. with some fx applied
pretty cool.

i noticed that "dx bridge" provides faster fps than reading clips from SSD hd. i guess this depends on the pc configuration. very nice anyway.

no crashes during the whole show. ~ around 6 hours.
AND: vvvv does not "freeze" when changing values. unlike running vvvv in "standalone". (if i remember right..)

kiki void 01/11/2013 - 06:50

why “wglDXOpenDeviceNV ext is not supported by your gpu”when I start resolume4 .
in my Args node Commandline already show vvvv.exe/dx9ex .
(GPU Nvidia geforce GT 650M CPU i7)

catweasel 01/11/2013 - 11:59

Its all gone a bit quiet on this project, git hasn't been updated in months... Anyone know Elio, see how he's doing?

RobertQue 30/11/2013 - 06:49

For users of Geforce 650 GT and similar

I am succeeded to use it on Windows 8.1 don't know about win 7 but here it works well.
The most important is to focus on Nvidia driver settings. In nvidias' #d settings there are are profiles for each program (to use internal intel 4000 either Nvidia processor). As my first thought was that both programs should use strictly nvidia was wrong. I made that mistake on windows7 as well. got both error messages that the video card is not supported as well as interloop error mentioned above. I have tried most of the settings and the

Key is to delete profiles from Nvidia settings for the both programs!

It works as it should. simple as that. Start vvvv in shared mode :

creating .bat file with
@ECHO OFF
start vvvv.exe /allowmultiple /dx9ex

and not forgetting to put sharing name for the texture in plugin settings.

If it won't work on windows 7, install 8, that's worth it.

leadedge2000 08/12/2013 - 02:39

RobertQue,

some of us with the same setup, Windows 8 and GeForce GT 650M, have the same problem and are trying to reproduce what you did with no luck.

What do you mean by "delete profiles from Nvidia settings for the both programs"

Could you give us more detail.

Jose Vaaliña 14/12/2013 - 22:49

@RobertQue,

tested on nvidia 740M / Win 8.1.
Same as leadedge2000...
vvvv/resolume aren't on the nvidia program list by default.
can you post a screenshot of your settings??

vjc4 12/02/2014 - 14:43

hey guys did you see this ??

http://www.derivative.ca/Forum/viewtopic.php?f=36&t=4928

it seems to output resolume to touchdesigner in the same way, so i guess it would be possible to get resolume data into vvvv...

metrowave 13/02/2014 - 23:42

Doesn't look like Wyphon is being updated latley:
https://github.com/mrft/Wyphon

kiki void 03/03/2014 - 02:08

@metrowave
It's so exciting!!!
I was success make"State" inlet of "switch" node which is show "OK" in my "ShareTextureInfo (OpenGL, Interop).v4p" when I follow your method even only once.

    

But resolume 4.1.6 still show me "NVidia wglDXInterop failed to initialize"
(my GPU is GTX 780m,vvvv is 45beta31.2_x86 ,win7 x64).

 I has been setting NVIDIA control panel just GPU both vvvv and Resolume also Global.How can I kill Optimus!?
kijhome 09/03/2014 - 02:16

I've tried to do as a method above..
But I keep getting an error message..like this..

It seems to be clear as nvidia setting..

On one hand..no way how to work link method b2ween v4 and resolume ㅜㅜ

Patch Error
matka 30/03/2014 - 14:55

hi, did somebody manage to get over that
""Nvidia wglDXInterop failed to initialize"" bullshit?
geforce GTX780M
resolume 4.1.6
win7

matka 30/03/2014 - 19:47

...well, I've spent all afternon with that and still no solution, seems obvious its some conflict nvidia vs intel graphics, It worked when I dissabled intel HD Graphics 4600, but my laptop monitor runs on intel so it seems nvidia needs that on, don't ask me why. I'm giving up for today, if anybody has a solution, please share

zhuminous 09/04/2014 - 20:43

Joining the optimus problem bandwagon..
"Nvidia wglDXInterop failed to initialize"

Resolume 4.1.6
Windows 8 Pro x64
Geforce GT755M

benkuper 11/04/2014 - 11:13

Hi everybody,
i'm working on the Wyphon plugin for Unity <>FFGL /Resolume, and i'm blocked with the FFGL ImportWyphon Plugin that is handling shared textures with DX9Ex device, i need to compile a full DX11 version in order to be able to share Unity's textures to Resolume.

@elio : if you're still here, is it possible to talk with you about that ? my skype is ben_kuper and mail : bkuperberg@gmail.com

Thank you

EDIT : i got Wyphon fully working between Unity and Resolume in both direction !
I have recompiled elio's FFGL plugin to be DX11 only, so there are less contraints on texture formats.

I will post videos & sources as soon as i cleaned up the project.

benkuper 12/04/2014 - 13:20

Hello there !
Just a quick word to say i’ve almost finished the Unity Wyphon Plugin, working both in and out !
A short video that demonstrates the Unity Resolume texture sharing via Wyphon :https://www.youtube.com/watch?v=aFLeTWJK0ho

Source code will come soon.

Many thanks to ft for his work and discussion time, and elio for the FreeFrameGL Wyphon Bridge

Cheers !

Luper 13/04/2014 - 19:37

Hey benkuper I got it well, there's gonna be FreeframeGL Bridge for DX11?

hoooooooooooope so! :)

rman 04/05/2014 - 14:34

Wyphon Like: http://spout.zeal.co/

parabola 04/05/2014 - 19:25

Hey guys,,, have anyone tried spout?

http://spout.zeal.co/

petar_john 08/05/2014 - 11:57

Hi guys,
for those that have AMD cards this plugin works now, you just need to update the latest drivers.

matka 26/05/2014 - 10:52

Ok, so I've tried Spout
http://spout.zeal.co/forums/topic/integrated-intel-gpu/

is it time for me to look for another computer or is there possiblity to make this work?

geforce GTX780M
Intel(R) HD Graphics 4600
Resolume 4.1.8
win7

MartijnW 26/05/2014 - 23:43

http://resolume.com/blog/11110/spout-sharing-video-between-applications-on-windows

check this something goes wrong in 4.1.8

matka 27/05/2014 - 00:37

not sure about that, Spout reciever is crashing (outside of Resolume), will try tomorrow

matka 02/06/2014 - 13:51

ok, so I've made it work, for the moment just external monitors, have to avoid intel graphics at all cost, until nvidia comes with proper drivers, cause its not fun to have these kind of issues on "last generation" gpus

casinowilhelm 01/09/2014 - 23:45

anyone managed to get vvvv and unity to share a spout? Is it possible right now? Tried benkuper's methods but no joy so far, best I've maanged is a white texture in the vvvv receiver. (but with the correct info in the receiver patch, so something is kind of working).

I will try on a different pc tomorrow...

catweasel 02/09/2014 - 13:31

Nvidia are apparently updating their drivers to fix the spout issue with optimus, sometime around mid sept, so lets hope they have, and all will be good from there!
I've also been in touch with the dev of TCPSyphon, and he is planning a spout receiver for syphon via TCP, which would be great, a x platform texture sharing!

matka 21/09/2014 - 09:48

Is DX11 support anywhere near?

buongiorgio 24/09/2014 - 18:19

I hope vux and spout dev will create a spoutin and spoutout nodes in near future for DX11 http://spout.zeal.co/forums/topic/spout-for-directx11/

Noir 24/09/2014 - 21:22

+1 giorgio

Element 25/09/2014 - 10:24
catweasel said
Nvidia are apparently updating their drivers to fix the spout issue with optimus, sometime around mid sept, so lets hope they have, and all will be good from there!

Just downloaded and installed it, doesn't work for me... (GTX 860M). But at least I dont get the "Nvidia wglDXInterop failed to initialize" Error.

Spout now seems to work with Optimus GPUs: http://spout.zeal.co/forums/topic/nvidia-optimus-bug-fix/

Another question: I am currently only using the Resolume 4.1.11 demo version, does anyone know if the demo version is capable of texture sharing? It is possible to select the DX Texture (RR) source and to enter the sharing name but the output stays black...

rogalag 25/09/2014 - 11:20
vvvv_to_reso

Hi all!
DirectX-to-FFGL-Bridge with new Nvidia driver 344.11 ( global settings-High performance nvidia) is working well on Nvidia Optimus Acer Aspire i7, win7 with GT540M and Arena 4.1.3 demo. SPOUT still has some problems:
SpoutReceiver2 shows video from vvvv, sended by vvvv SpoutSender or FFGL-Bridge, but sometimes requires win7 rebooting. SpotuCam not working between vvvv and Resolume, usually crasches Reso. Spout Demo Sender 32bit works with SpoutReceiver or SpoutReceiver2 in Reso. You can mix DirectX-to-FFGL-Bridge with it as well.

Element 26/09/2014 - 11:24

Update:

The Nvidia 344.11 driver actually does its job! Its important to apply the nvidia settings global.

cyper 13/01/2015 - 00:03

i did a update to win 8.1 and vola i dont have this optimus problem for my notebook anymore
is working yeahhhhhhhhh

martincoyne 20/01/2015 - 22:23

This is awesome. Muchas, muchas gracias :-)

Yukoi 23/01/2015 - 09:36

It's awesome!! Thank you very much, elio!!

hotkeys 25/01/2015 - 22:45
come on, move your mouse

Oh, it's stupid question time.

How did he created this 2 (vvvToResolume/MainRender) nodes? >.<

He just pressed on the gray dot ... a line appeared... then he clicked again... and boom! A node!

What kind of magis is it? And how can I do the same?

Radiance 28/06/2016 - 03:39

hey this was all working perfectly for me untill I recently upgraded, has anyone come across this as well?

I switched from windows 8.1 to windows 10 and from resolume 4 to resolume 5 now and it doesnt seem to work anymore. Cant seem to get the help node output into resolume either.

The DX Texture (RR) is showing up in the FFGL sources, its just not getting any input

my system

Win10_x64
Nvidia GTX 870M (driver updated)
Vvvv_45beta34.1_x86
Resolume Arena 5.0.0

thanks in advance
Rose

joreg 28/06/2016 - 03:42

hei radiance, this may be rather obsolete now. have you tried spout-0?

anonymous user login

Shoutbox

~22h ago

manuel: cant use a collada exported from sketchup... any hint ? In the past i was able to do it

~1d ago

julian: hi, how can I put anti aliasing on deferred shadow? any suggestions? deferred-shadow-dx11 thanks a lot!

~1d ago

evvvvil: Push all logic through compute shaders until framedelays sheer existence is being crushed by the gpu's rhetorical question solving.

~1d ago

nerezumijem: Driver to install? I do not recognize the enntec usb promk2

~2d ago

joreg: vvvv bughunt with chance to win a #lattepanda running for 10 more days: find-a-bug-win-a-panda-(latte)

~2d ago

vasilis: Does Speech Node ( vux plugins speech ) work with windows XP?

~4d ago

io: @Yoctopory: M$ has a face recognition API

~5d ago

Yoctopory: Anyone know how I can detect a smile? Kinect is not an option (too big). I tried with the "FaceTracker"-Node, but it's too buggy