I have totally refactored the ui.qml file to tidy it up cconsiderably and to make it very much easier to create new ones. In the process I discovered the thickness error and corrected it.
I have also added the option to colour the reticule and to have the scope position off-screen.
The new ZIP file, which should replace all the earlier ones is here:
I’m sorry, but it’s still not clear in my head.
I find it difficult to tell the difference between the filters and transitions found by following the @Elusien link in message # 1 that do not need to be in the application folder and that we call with the filter “overlay html” and the filter “sniper_scope” which must be in the folder “filter” of the application and that is called directly by the filter menu.
In my example above, the “sniper scope” folder was not in the “filters” folder, so I had to call it by the “overlay html” filter.
Although the latest version of the filter works, when used with Key-frames a lot of error messages appear in the logfile. I modified the “meta.qml” file to reference the “filter” item and these error messages disappear. I have put the new qml.meta file in the following ZIP container: webvfx_sniper_scope.zip (17.1 KB)
Unfortunately a lot of this development has been done empirically, studying existing filters and each ui.qml and meta.qml file seems to have their own take on what to code, so it hasn’t been easy. Which is why I tried to refactor these files to be more easily used as a template for me in the future.
I will upload the final version of the sniper scope filter to google drive when it’s finished.
The latest version still has a mismatch between the meta file and the ui file. Key frames work but don’t show.
OK there are two different systems here that do similar things:
The “gl-transitions” webpage was designed to make use in Shotcut of a set of “GLSL shader” transitions that were in the public domain. The idea was to use the webpage to create a simple HTML file that could be used as an Overlay HTML filter. To get the “Sniper_Scope” facility into use quickly I essentially created the GLSL shader transition for it and used the framework that was already set-up. Howevere, this framework cannot make use of Key-frames, so…
A proper Shotcut filter, like rotate, size-and-position etc., with all the bells and whistles for setting the parameters, while seeing how they affect the scope-sight on the preview screen and of course Key-frames.
To use the filter proper, unzip the container and put the resulting folder or directory into your Shotcut filters folder (on my Windows 10 system it is in: C:\Program Files\Shotcut\share\shotcut\qml\filters
Then start Shotcut and the Sniper_Scope filter will be available for use.
A little more silliness … just made a short demo using the sniper scope filter. Working well, @elusien !!
NB No members of the Royal Family were hurt in the making of this film
(For non-UK forum members, the building is Buckingham Palace)…
Being discharged from the Evangelismos Hospital, Paphos at lunch-time. Care was excellent and staff very friendly. On anti-coagulants permanently now as this was my second PE.
I’m working on a new filter that will be best used as a transition between two slides or clips. It simulates a camera-shutter (like here:
Of course the filter will have a smooth action and have various options (e.g. close, open, open-close, close-open, different colours for the shutter etc.)