Quick Sign In:  

Forum: VirtualDJ Plugins

Topic: Video Plugin x64 howto

This topic is old and might contain outdated or incorrect information.

NicotuxHome userMember since 2014
Current video example is Mac & WIN32 + DX9
Would it be possible to get an example of a "functional" video visualisation/overlay/transition for Mac & WIN64 + DX11 ?
Just a dx11 64bit version of example Video Transition Plugin or Video FX plugin
It seems no 64bit version of third part video plugin exist (but TV and beta of Spout)
Maybe it would help
 

Posted Thu 02 Apr 20 @ 3:33 am
locoDogPRO InfinityModeratorMember since 2013
+1 to that.
I'd love to start tinkering with trying to convert video fx shaders into vdj video fx.
 

Posted Thu 02 Apr 20 @ 6:07 am
AdionPRO InfinityCTOMember since 2006
Will see if I can find some time to update some examples.
There's not that much changed though.

-Engine for GetTexture/GetDevice should be VdjVideoEngineDirectX11
-Return value for GetDevice is ID3D11Device*
-Return value for GetTexture is ID3D11ShaderResourceView*
 

Posted Thu 02 Apr 20 @ 7:38 am
Adion is right that not much has changed in VDJ sdk. That answer and the current examples assume you don't want to do much of anything. If you do want to do something special you would need to get down and dirty with DX9 or DX11 or OpenGL. DX11 is not compatible with DX9. DX9 is more forgiving than is DX11 so if learning it may be better to start with DX9. OpenGL is for MAC.

A good starting point for a video plugin would be to follow the example for a video fx. Just glanced at it and there might be some potential problems with it. That's not up to me to take care of though.

https://www.virtualdj.com/wiki/Plugins_SDKv8_Example3.html

But in OnDraw don't call DrawDeck. Call GetDevice and GetTexture (make change for DX9 or DX11). If you call DrawDeck that texture will be drawn for you. If you don't call DrawDeck it may be black or junk but you would have to learn about that too. If you can figure out how to draw the texture returned by GetTexture instead of letting VDJ do it, you would be on your way. Make sure you clean up and restore any changed settings before returning from the OnDraw call. For DX9, the device returned by VDJ GetDevice is used for drawing and most everything else. For DX11, the device returned by GetDevice is not used for drawing but can be used to get something that is used for drawing. So if using DX11, figure that out first but much easier to start with DX9. If new to all this, then DX9 is not that easy either but you may be able to find a better example for drawing a texture for DX9 in VDJ.

 

Posted Sun 05 Apr 20 @ 8:07 am
djcelPRO InfinityModeratorMember since 2004
 

Posted Sun 12 Apr 20 @ 10:59 pm


(Old topics and forums are automatically closed)