>> You can achieve the same thing with JSX scripts. Import example from the main menu "Synthclipse -> JSX examples -> II. Synth API -> 3. Loading Fragx files'.
It does not look as if I had these. I installed 1.05.
It is not in the "File" (
File -> Import) menu, it is in the "Synthclipse" (
Synthclipse -> JSX examples -> II. Synth API -> 3. Loading Fragx files) menu
Maybe I described it not clear enough.
I have a large folder of my files that I used to include in fragmentarium projects.
1) Where should I put it so that it automatically became available as includes for all future projects? Or how to configure it?
To be available to all projects, you need to put them in
eclipse\plugins\org.synthclipse.include_1.0.0\include directory.
You also can configure include paths per project (
RMB on a project -> Properties -> C/C++ General -> Paths and Symbols -> Includes -> GNU C++)
2) I think these files should be processed somehow to alter uniforms metas etc.
Yes, Fragmentarium files aren't valid Synthclipse files. You need to import them (
Synthclipse -> Import -> Fragmentarium creation).
The quickest way to import all include files would be to create one Fragementarium file, put in it includes for all desired include files, e.g.:
#include "IncludeFile1.frag"
#include "IncludeFile2.frag"
#include "IncludeFile3.frag"
#include "IncludeFile4.frag"
and then import this just one file. Synthclipse automatically will import all files from "#include" directives.
You can record shaders made in JSX scripts, but you cannot start or stop recording from JSX files. Recording can be only done from the Recording View, by clicking manually the "START" button.
If that is what you want, you need to set also tileable flag for any "FragxRenderer" in a JSX script, that you want to be recorded correctly with tiles. The best place for that would be the
init() function, for example:
renderable.init = function() {
// see http://synthclipse.sourceforge.net/scripting/api/index.html?org/synthclipse/scripting/core/JSFragxRenderer.html
fragxRenderer = Synthclipse.loadFragx("fragx/Flaring.stoy");
// We can load saved preset:
fragxRenderer.loadPreset("Type 5");
fragxRenderer.tileable = true;
Synthclipse.createControls(fragxRenderer);
};