-
Jona
Now projectm is part of ofxOfeliaExtended. Here an example patch with a batch file for Windows (for starting one PD instance for audio and one for video): https://github.com/Jonathhhan/ofxOfeliaExtended/tree/main/ofeliaExtendedLib/examples/ofxOfeliaExtendedExamples/ofxProjectMSeperatedExample
-
Jona
@alexandros just found out that most of the Linux libs are static (.a), for those you do not need any extra files. But at least ofxStableDiffusion uses a shared lib: https://github.com/Jonathhhan/ofxOfeliaExtended/tree/main/libs/ofxStableDiffusion/libs/stable-diffusion/lib/Linux64
Also had no luck with compiling for Linux yet... -
Jona
@alexandros the content in the .zip folder is everything needed for the Windows external. ofeliaExtendedLib contains everything that is needed for the external (examples etc.), except the compiled libs. Actually, I could rename ofeliaExtendedLib to ofelia again, which maybe makes it more clear...
-
Jona
@svanya I made a projectM addon for Open Frameworks recently: https://github.com/Jonathhhan/ofxProjectM Maybe I can add it to ofxOfeliaExtended, eventually.
-
Jona
@raynovich you can try the (inofficialy) updated version: https://github.com/Jonathhhan/ofxOfelia/tree/update-april-2024
-
Jona
For the stable diffusion example you need a model like https://huggingface.co/stabilityai/sd-turbo/blob/main/sd_turbo.safetensors (preset is for sd turbo, but other models are also working. See here for more info: https://github.com/leejet/stable-diffusion.cpp).
And put it into the model folder of the example. -
Jona
@alexandros yes, I definitely need to update the documentation. It should still be valid for ofxOfelia. In Visual Studio I had to add ofelia_setup as a linker flag. Probably you need to copy some shared libs to the folder where ofelia.pd_linux is. Here you can see which libs (dll`s) are needed for Windows: ofeliaExtended-Win64-20250127.zip https://github.com/Jonathhhan/ofxOfeliaExtended/releases/tag/ofeliaExtended-Win64-20250127
I guess, the same are needed for Linux, too (would be nice, to automate that stuff). -
Jona
@alexandros I tried to compile with Ubuntu and there are some issues. But you need to keep the addons name ofxOfeliaExtended (ofxImGui is included then) - that might be your issue. I will give it another try. I use the OF master branch, so possibly the lua bindings need to be regenerated, if you use an older OF version (https://github.com/Jonathhhan/ofxOfeliaExtended/tree/main/scripts/common and https://github.com/Jonathhhan/ofxOfeliaExtended/tree/main/libs/ofxLua/scripts).
Btw: I also updated the regular addon / external ofxOfelia some time ago and it is still working... https://github.com/Jonathhhan/ofxOfelia/tree/update-april-2024
Regarding ofxImGui: I included the develop-branch: https://github.com/jvcleave/ofxImGui/tree/develop -
Jona
Here is a new Windows release: https://github.com/Jonathhhan/ofxOfeliaExtended/releases/tag/ofeliaExtended-Win64-20250127 It should be possible to compile for Linux and OSX, too. But did not test it yet (Linux was working with the last version).
For compiling the Windows external:
First build a VS Solution with the project generator.
Build as release.
This need to be set in the project settings:
Build as .dll.
Compile as standard.
Linker option: /export:ofelia_setup -
Jona
@alexandros I will have a look soon. I build the external for Linux and Windows, but it was some time ago.
-
Jona
I made some progress, multithreading works now. It would be nice, to enable multiviewport support. And somehow it only works (at least with Windows) with an old libpd version (the one from the last Ofelia version). Would be great to update this, because this version crashes if audio is enabled while a Ofelia window exists.
-
Jona
@sergi.f said:
libglfw.so.3
Just a guess into the wild: Maybe you need to put
libglfw.so.3
into your GEM lib folder (where your PD externals are located). -
Jona
If I look around, I get the impression that Ofelia is gone, and GEM is used for graphics with PD again.
My question is: Is this, because development stopped (or paused), or because it seems to complicated?
I know, I am biased, because meanwhile I got used to Open Frameworks, so it is quite easy to handle Ofelia for me (and I also started to update and expand Ofelia). And I think, it has much more possibilities compared to GEM. -
Jona
ofxSvg needs a small edit, because ofXml::find does not work with SWIG: https://github.com/Jonathhhan/openFrameworks/tree/ofxSvg-SWIG
-
Jona
I guess, I found a nice way to add ofxAddons to Ofelia (besides updating it with the current libs).
Thats the current state:- Implemented internal Addons are:
ofxAssimpModelLoader
ofxOpenCv
ofxSvg
ofxVectorGraphics- Implemented external Addons are:
ofxImGui
ofxVolumetrics
ofxStableDiffusion
srtparserhttps://github.com/Jonathhhan/ofxOfeliaExtended
Only tested the Windows build for now, but to build it for Linux should be much easier (no idea regarding OSX).
I can upload the Windows build somewhere.And I opened an issue here, if someone wants to join:
https://github.com/cuinjune/Ofelia/issues/91 -
Jona
Here the compiled Win64 external: https://github.com/Jonathhhan/ofxOfelia/releases
-
Jona
I just updated Ofelia. It uses the current version of ofxPd, ofxMidi and ofxLua. There are no custom changes in ofxPd anymore, because Pure Data`s master branch officialy supports Emscripten now. I would be happy, if someone likes to test it (only tested it with Emscripten for now, but without any issues): https://github.com/Jonathhhan/ofxOfelia/tree/update-april-2024