Log in

View Full Version : vfx special effects plugin


vcmohan
11th April 2021, 12:19
vfx a special effects plugin is now available for vapoursynth. This is equivalent to effectsPlus plugin for avisynth+. These functions are modified and improved upon while porting. All the functions in the plugin are thread safe. Request bug report and suggestions for improvement. description is at vfx (http://www.avisynth.nl/users/vcmohan/vfx/vfx.html) and download at vfx (http://www.avisynth.nl/users/vcmohan/vfx/vfx.7z)

ChaosKing
11th April 2021, 13:23
Nice effects!

Is "flashes" supposed to look like that this? (from your test script)

https://i.imgur.com/a95733w.png

Are_
11th April 2021, 23:36
Thank you for the plugins vcmohan, can you add these changes to make it compatible with Linux?
diff --git a/vfx.cpp b/vfx.cpp
index b79aa2c..f94506b 100644
--- a/vfx.cpp
+++ b/vfx.cpp
@@ -22,7 +22,9 @@ This program is free software: you can redistribute it and/or modify
-----------------------------------------------------------------------------*/
#include <stdlib.h>

+#ifdef _WIN32
#include <Windows.h>
+#endif
#include <fstream>
/*
#include <algorithm>
@@ -38,8 +40,8 @@ This program is free software: you can redistribute it and/or modify
*/
#define _USE_MATH_DEFINES
#include "math.h"
-#include "vapoursynth.h"
-#include "vshelper.h"
+#include "VapourSynth.h"
+#include "VSHelper.h"
//#include <iostream>
#include <chrono>
#include <ctime>

vcmohan
12th April 2021, 14:40
Thank you for the plugins vcmohan, can you add these changes to make it compatible with Linux?
[/CODE]

I can, but I do not understand the code fully. If I delete all the unwanted lines and commented out lines will it still be valid? It appears some line numbers are specified. Is this for Github? First line I see git. I am thinking that I may get some bug reports and suggestions for modifications, and I will clean up the code.
Thanks for suggestion.

vcmohan
12th April 2021, 14:42
Nice effects!

Is "flashes" supposed to look like that this? (from your test script)

https://i.imgur.com/a95733w.png

I just used some pattern. I will probably change them to look more like the flowers in sparkler or snowflakes in snow function.

Are_
12th April 2021, 22:48
I can, but I do not understand the code fully. If I delete all the unwanted lines and commented out lines will it still be valid? It appears some line numbers are specified. Is this for Github? First line I see git. I am thinking that I may get some bug reports and suggestions for modifications, and I will clean up the code.
Thanks for suggestion.

It's a diff, a line starting with -- means that line is deleted from the original file, a line starting with ++ means it is added (I use git to create them because this way I don't have to keep around many versions of the folders).
This patch says the windows.h include should be around an #ifdef _WIN32 so it does not get included on non-windows platforms, and to use the original capitalization on vapoursynth includes because those include break case sensitive systems. All of these changes ar on vfx.cpp

vcmohan
13th April 2021, 06:12
It's a diff, a line starting with -- means that line is deleted from the original file, a line starting with ++ means it is added (I use git to create them because this way I don't have to keep around many versions of the folders).
This patch says the windows.h include should be around an #ifdef _WIN32 so it does not get included on non-windows platforms, and to use the original capitalization on vapoursynth includes because those include break case sensitive systems. All of these changes ar on vfx.cpp

Thanks. I made changes as suggested. Till now I did not notice that VapourSynth.h, VSHelper.h had capital letters. Windows makes one forget and get lazy I think. I also removed some includes which were used during development, but no longer required in final version.
Thanks again.

Are_
13th April 2021, 10:19
@vcmohan thanks to you :)

vcmohan
1st November 2021, 13:51
A new function RearViewMirror has been added. It creates a convex mirror image of input clip, and is placed at specified coordinates of output clip. In place of mirror Fish Eye image may be created (both essentially same excepting angle of view and convexity / refractive index). All input formats (excepting half float) are supported. Request comments, suggestions and report bugs.