GithubHelp home page GithubHelp logo

cuinjune / ofelia Goto Github PK

View Code? Open in Web Editor NEW
356.0 32.0 21.0 279.5 MB

A real-time cross-platform creative coding tool for multimedia development

License: GNU General Public License v3.0

Makefile 0.38% C++ 74.98% C 22.86% Objective-C++ 0.25% Shell 0.04% Lua 0.64% GLSL 0.18% Objective-C 0.05% Java 0.01% Tcl 0.02% SWIG 0.59%
ofelia openframeworks puredata creative-coding cross-platform standalone multimedia-applications graphics opengl lua

ofelia's Introduction

Ofelia

alt text alt text alt text

Description

Ofelia is a Pd external which allows you to use openFrameworks and Lua within a real-time visual programming environment for creating audiovisual artwork or multimedia applications such as games.

openFrameworks is an open source C++ toolkit for creative coding.
Lua is a powerful, efficient, lightweight, easy-to-learn scripting language.
Pure Data(Pd) is a real-time visual programming language for multimedia.

Thanks to Lua scripting feature, you can do text coding directly on a Pd patch or through a text editor which makes it easier to solve problems that are complicated to express in visual programming languages like Pd. And unlike compiled languages like C/C++, you can see the result immediately as you change code which enables faster workflow. Moreover, you can use openFrameworks functions and classes within a Lua script.

Using Ofelia, you can flexibly choose between patching and coding style based on your preference.

The external is available to be used under macOS, Windows, Linux and Raspberry Pi.

Installation

  • Make sure you have Pure Data installed on your desktop.
  • Start Pd and go to Help -> Find externals, then search for ofelia
  • Select the latest version of Ofelia to download and install.
  • Try opening patches inside downloaded ofelia/examples directory.
  • (Windows) If the library fails to load, open vc_redist executable file inside ofelia directory to install Microsoft Visual C++ Redistributable packages. And if video examples don't work properly, try installing the K-Lite Codec Pack.
  • (Linux / Raspberry Pi) If the library fails to load, open the Terminal and run the following command to install dependencies.
    cd ofelia/scripts/distro_name
    sudo ./install_dependencies.sh
  • You can also download the externals from https://github.com/cuinjune/Ofelia/releases

ofxOfelia

alt text

Description

ofxOfelia is Ofelia packaged as an openFrameworks addon which enables you to create a standalone (macOS, Windows, Linux, Raspberry Pi, iOS and Android) or web application that can run Pd patches made with Ofelia and Pd vanilla objects.

You can share the application with a wide range of audiences including mobile device, internet and non-Pd users.

Build Requirements

In order to use ofxOfelia, you first need to download and install openFrameworks. Please follow the setup guides to download and install openFrameworks 0.11.0 which is the most recent stable release.

The following tools are used to build ofxOfelia project.

Setup guide

  • Make sure you have openFrameworks setup on your desktop.
  • Download ofxOfelia_targetOS.zip and rename the extracted folder to ofxOfelia.
    Place the folder within the directory OF/addons. ("OF" indicates the base directory of openFrameworks)
  • (Linux 64bit) Open the Terminal and run the following to update openFrameworks.
    cd OF/addons/ofxOfelia/scripts/Linux64
    sudo ./updateOF.sh

Building the external

  • (macOS) Open OF/addons/ofxOfelia/macOSExternal/ofelia.xcodeproj with Xcode and build the project.
  • (Windows) Open OF/addons/ofxOfelia/WindowsExternal/ofelia.sln with Visual Studio and build the solution.
  • (Linux / Raspberry Pi) Open the Terminal and run the following command to build the project.
    cd OF/addons/ofxOfelia/LinuxExternal
    make
  • Copy the generated binaries from OF/addons/ofxOfelia/(targetOS)/bin into the Pd externals directory.

Running the standalone example

  • (macOS) Open OF/addons/ofxOfelia/macOSExample/macOSExample.xcodeproj with Xcode and run the project.
  • (Windows) Open OF/addons/ofxOfelia/WindowsExample/WindowsExample.sln with Visual Studio and run the solution.
  • (Linux / Raspberry Pi) Open the Terminal and run the following command to run the project.
    cd OF/addons/ofxOfelia/LinuxExample
    make && make RunRelease
  • (iOS) Open OF/addons/ofxOfelia/iOSExample/iOSExample.xcodeproj with Xcode and run the project.
  • (Android) Open Android Studio, select Open an existing Android Studio project and open OF/addons/ofxOfelia/AndroidExample and run the project.

Creating your own standalone project

  • Copy an example project from OF/addons/ofxOfelia and paste it into OF/apps/myApps directory.
  • Rename the project and folder to your liking.
  • Replace Pd patches and data in yourProject/bin/data/pd with your files.
  • Build the project and find the executable file in yourProject/bin directory.

Running the Emscripten example in a web browser

  • Download the latest nightly build of openFrameworks.
  • Download ofxOfelia_Emscripten.zip and rename the extracted folder to ofxOfelia.
    Place the folder within the directory OF/addons. ("OF" indicates the base directory of openFrameworks)
  • (macOS / Linux) Open the Terminal and run the following to update openFrameworks.
    cd OF/addons/ofxOfelia/scripts/Emscripten
    sudo ./updateOF.sh
  • Install Emscripten following the setup guide.
  • Run the following command to run the project in your browser.
    cd OF/addons/ofxOfelia/EmscriptenExample
    emmake make
    emrun bin/EmscriptenExample.html

Developing ofxOfelia

You can help develop ofxOfelia on GitHub: https://github.com/cuinjune/ofxOfelia
Create an account, clone or fork the repo, then request a push/merge.
Feel free to contact the author if you have any questions or suggestions.


Projects that used Ofelia

Acknowledgements

Author

Copyright (c) 2018 Zack Lee: [email protected]
GNU General Public License v3.0
For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "LICENSE.txt," in this distribution.

ofelia's People

Contributors

cuinjune avatar dayvson avatar dependabot[bot] avatar jason1996429 avatar jonathhhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ofelia's Issues

Ofelia on windows

Hello, and thanks for this awesome project !

I manage to install ofelia through deken on mac os, but it doesn't show up on windows (win 10, and pd 0.49.1). It's actually a bit weird because I see the windows versions in the list of proposed external when I do a search on mac.

I tried to install it manually on windows eg copying files in "mypath/pd/externals" adding the path to startup but I couldn't manage to get the lib to work on windows.

I would be willing to test stuff out if necessary don't hesitate to ping me .

emscripten compile error

hi cuinjune,
with the newest emscripten 1.39.1 i get this compile error with the ofelia emscripten example on ubuntu 18.04:

/home/jonathan/Schreibtisch/of_v20191108_linux64gcc6_release/addons/ofxOfelia/libs/ofxLua/src/bindings/glmBindings.cpp:2733:10: fatal error: 
      'glm/gtc/functions.hpp' file not found
#include <glm/gtc/functions.hpp>

while it is possible to compile the open frameworks examples.
the strange thing is the ofelia example was working before. but also downgrading emscripten to sdk-1.38.20-64bit did not work.

edit: actually i get the same error with the linux example, so it is not emscripten specific.

Ofelia Array won't reinitialize

I'm start learning ofelia and and I came across the following behavior, initializing an array with ofArray in ofelia pd object I can't reduce the size of the array. See image below:

resetArray_patch1

And if I open another patch with diferent ofelia object name with the same variable name, the biggest array size persist:

resetArray_patch2

I don't know if its a expected behavior.. Or is there another way to do that I didn't get..

These are the patches: resetArraysIssuePatches.zip

Thanks!

Pd 0.51 - OSx 10.13.6 High Sierra - Ofelia v3.1.0

OpenCv support?

The list of global functions includes:

ofxCvFloatImage ofxOpenCv/ofxCvFloatImage
ofxCvImage ofxOpenCv/ofxCvImage
ofxCvContourFinder ofxOpenCv/ofxCvContourFinder
ofxCvGrayscaleImage ofxOpenCv/ofxCvGrayscaleImage
ofxCvShortImage ofxOpenCv/ofxCvShortImage
ofxCvBlob ofxOpenCv/ofxCvBlob
ofxCvColorImage ofxOpenCv/ofxCvColorImage
ofxCvHaarFinder ofxOpenCv/ofxCvHaarFinder

But: "attempt to call a nil value (global 'ofxCvColorImage')"

Is this add-on-able? (What if I wanted it for a classroom full of students on both Mac and Windows...?)

video file and live feeds?

hello,

i am exploring ofelia,

i am missing features , for my use.
i couldn't find ways to load video and camera feeds,
and glsl shaders.

is it possible?

Thanks , it works great here, on windows box.

installed via deken.

ofMesh:addVertex() not working with ofVec3f

Hi! I am trying create ofMesh object and fill it with vertices.

I am writing in onSetup section:

mesh = ofMesh();
mesh:setMode(OF_PRIMITIVE_LINES);

In ofUpdate section:

mesh:clear()
mesh:addVertex(ofVec3f(0,0,0));

And I got this error:

- ofelia: [string "package.preload['__.x2687c30.c'] = nil packag..."]:4: Error in Mesh_addVertex (arg 2), expected 'ofDefaultNormalType *|ofDefaultVertexType *|glm::vec3 *' got 'ofPoint *|ofVec3f *'

also if I try writing:

mesh:addColor(ofColor(255));

error:

- ofelia: [string "package.preload['__.x2687610.c'] = nil packag..."]:4: Error in Mesh_addColor (arg 2), expected 'ofDefaultColorType *|ofColor_< float > *|ofFloatColor *' got 'ofColor_< unsigned char > *|ofColor *'

It say what I give wrong type of argument, but I do as in the openFrameworks documentation.

about generating log messages in Pd console

There's a way to customize log messages in pd console with [ofelia] object?

The intention is produce log error messages in pd console, in red color, like described in the session "Log messages and error" in pd-Lua intro by agraef

Thanks!

Emscripten metro / pitch

Hi Cuinjune,
I experienced that on Windows the pitch is twice as high and the metro is twice as fast compared to Linux, if I run an Emscripten patch in the Browser.

Compilation error. Fails on linux64 due to missing file: glm/gtc/functions.hpp

Hi everyone,

When trying to build ofxOfelia, I get "/home/xxx/OF/addons/ofxOfelia/libs/ofxLua/src/bindings/glmBindings.cpp:2733:10: fatal error: glm/gtc/functions.hpp: Datei oder Verzeichnis nicht gefunden
#include <glm/gtc/functions.hpp>"

"Datei oder Verzeichnis nicht gefunden" means: file or directory not found.

I installed the libglm-dev package which I believe should be the appropriate one for Debian. But the aforementioned file is not included unfortunately. I looked around GLM's documentation and changelogs to see if there was at some point said file included, but I could not find one, except a functions.hpp which is in the gtx sub-folder, but not the gtc one..
Same with my "/home/xxx/OF/libs/glm/include/glm/" folder. My Open Frameworks version is 0.11.0.

At first I just wanted to copy that functions.hpp file to the gtc folder, but since I am not sure that it would work and in fear of messing something up, I thought I'd better ask here, if somebody has an idea how to tackle this.

bridge gem/ofelia

Hello,
Thanks for your awesome library!
Is it possible to have a getter for textureId inside ofelia to share it with gem ? (for example i want to use the syphonserver that i have written for Gem)

ofFbo() and standalone app

Hi Cuinjune,
it seems ofFbo() does not work in an Ofelia standalone app (tried linux and windows), while it works with PD and Openframeworks (with my setup).
Kind regards, Jonathan

ofelia on Debian/buster

can we expect a binary release for Debian/buster?

the problem being, that the ofelia releases link to some outdated libraries (libglew2.0, libboost-filesystem1.65.1, libboost-system1.65.1), which are no longer available in Debian/buster.

afaict, this also affects users of Ubuntu/disco (19.04) and onwards.

(my filesystem is full of devtools, but i'm somewhat reluctant to install the full OF sdk for playing around)

Return output from Lua function called from ofApp.cpp

Hi Cuinjune,
I can call an Ofelia Lua function from ofApp.cpp like that:

lua_getglobal(ofxOfeliaLua::L, "function_4");  
lua_call(ofxOfeliaLua::L, 0, 0);

It just does not return anything to the outlet of the Ofelia object.
Is there a way to change that?
Kind regards, Jonathan

Need Ofelia Windows package without deken

Behind the Great Firewall of China, deken is painfully slow and not reliable. And the Ofelia package for Windows is large, will take literally at least an hour (if the connection doesn't drop in the middle).

I would like to download from github on my Linux machine (which has a vpn). But I see only ofxOfelia releases here.

How do I download Ofelia for Windows on a non-Windows machine?

ofEasyCam and ofCamera is empty

Hi! I only start learning ofelia and openframeworks and I faced such problem: ofEasyCam and ofCamera classes are empty. It is available as tables with no content. Or I doing something wrong? A reasonable question arises: the camera is a very important part of working with 3D content. How can I control the position of the viewer and its properties (such as aperture etc..) in Ophelia? Thank you!

maybe small tweak needed in installer (windows 10)

image

Not sure if the dialog-renderer just truncated the string (it was nonresizable), or that it's a hint of an internal path-length limitation.

I looked into the externals folder, and there was a ofelia-v3.1.0-(Windows-amd64-64)-externals.zip.zip (note the double zip-extension).

solution: I opened the zip and moved the ofelia-folder into the externals folder. Luckily this was hinted in the console:

image

ofelia on arch linux - rolling edge is edgy

following the install instructions, and after running
ofelia/scripts/arch_linux/install_dependencies.sh
when i try to initiate [ofelia] i get the following error
/home/user/pd/externals/ofelia/ofelia.pd_linux: libGLEW.so.2.0: cannot open shared object file: No such file or directory

mm... i see
i had to install the specific 2.0 version of glew, they coexist.
yay glew2.0
fixed that one

$ ldconfig -p | grep libGLEW
	libGLEW.so.2.1 (libc6,x86-64) => /usr/lib/libGLEW.so.2.1
	libGLEW.so.2.0 (libc6,x86-64) => /usr/lib/libGLEW.so.2.0
	libGLEW.so (libc6,x86-64) => /usr/lib/libGLEW.so

i'm running mesa driver on an x230 laptop

emscripten compile error

Hey, cuinjune,
first of all, thanks fro this awesome project!!!

Trying to compile the EmscriptenExample on mac Catalina I get the error:

invalid argument '-std=c++14' not allowed with 'C'

any suggestions, anyone?

Thx

Fails to load in Purr Data

I'm running Purr Data version 2.9.0 20190507-rev.22573662 on Ubuntu 19.04 and the library fails to load. Specifically the [ofelia] object doesn't load. All of the other objects/abstractions do load. In Pd Vanilla the [ofelia] object does load.

some thoughts on building (ofelia) ofx android app

I wouldn't suggest doing this on windows (right now).
I've spent two days on this, without resulting in a nice .apk file :/
This is not due to ofelia, but openframeworks:

  • openframeworks support for android studio is very outdated (old NDK/JDK/gradle versions)
  • openframeworks support for android studio on windows is non-existent

For what it's worth here's what I tried/solve:

openframeworks error 'unrecognized escape sequence'

for some reason windows directorypaths in combination with android studio breaks openframework regexes

  • libs/openFrameworksCompiled/project/android/common-functions.gradle at line 179
                excludeConfig.each { ex ->
                    def _ex = ex.replaceAll(/\*/,".+")
++                    //if(folder ==~ /.*$addon\/$_ex/ ) {
++                    //    excluded = true
++                    //}
                }

Lua error

C:\Users\Leon\Desktop\projects\ofx\of_v0.11.0_android_release\addons\ofxOfelia\libs\ofxLua\libs\lua\liolib.c:441:13: error: no member named 'decimal_point' in 'struct lconv'

Solution: add this to (your_open_frameworks_dir)/ofxOfelia/libs/ofxLua/libs/lua/luaconf.h

#if defined(__ANDROID__)
#define lua_getlocaledecpoint() ('.')
#define LUA_USE_C89
#endif

uchar.h missing

To solve this, I had to upgrade gradle

  • AndroidExample/build.gradle

--- buildToolsVersion = "25.0.3"
+++ buildToolsVersion '28.0.2'

--- classpath 'com.android.tools.build:gradle-experimental:0.9.3'
+++ classpath 'com.android.tools.build:gradle:3.1.2'

I gave up

After two days of poking around, trying different Gradle / NDK combinations I decided to leave it at this :)
I'll keep an eye on this thread, and hopefully somebody else (with more android studio experience) can get a working example going.

Questions about compiling for android. issues with ofSoundStreamSetup

Hi,
I'm very beginner with Android Studio, but I'm trying to use ofxPd addon with Android target in mind.
After some path modifications inside some libpd files (I had to modify paths inside some #include lines), I succeeded in building and running the pdExample of ofxPd (OF 11.0) with Android Studio 4.1.2 on Linux platform.
The app launches, I can hear sound and see graphical animation, but it freeses when I press the 'Recent' button, and relaunches when I go back to the app.
It seems related to ofSoundStreamSetup : If I comment this line in ofApp.cpp, I don't get any "app exit" notification from Android OS.
What did I miss ? How did you manage to create an android app with ofxOfelia ?
Thanks

FYI, I could compile ofxOfelia for android, and generate an apk, but at this point the app crashes when launched on my phone.
I'm also working on ofxPof addon and trying to build pofDroid app (https://github.com/Ant1r/ofxPof/tree/master/PofDroid) that uses opensl_stream for audio, but it doesnot work, unless I switch for ofSoundStreamSetup, and in this case I get same problem as with pdExample.

How to debug stack overflows in patch?

Hi there,

I'm having trouble running a specific iOS-based project, I'm using the iOSExample demo project as a template with my own Pd patch running inside.

My patch runs fine in Pd on OS X, but once it starts running on my iPhone/iPad the app will crash after a few seconds of animation. The console gets spammed with [notice ] error: stack overflow as this happens.

I've used the iOSExample as a template for a handful of other patches, and this is the only one that is giving me problems so I have a feeling I've done something wrong in Pd. Since it runs fine in Pd itself I'm not sure how to debug this.

The project file is over 200MB so I've attached just the patches. If you place these in the /bin/data/pd folder of the iOSExample project it should work. Can you tell me if you see something in my patch that would cause this stack overflow error?

node_patch.zip

Thanks,
-Chris

ld: unknown option: -rpath=./libs

Hello,

after running make in macOSExternal I get the following error:

ld: unknown option: -rpath=./libs
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [bin/ofelia.pd_darwin] Error 1
make: *** [Release] Error 2

maybe i am just old school running make rather than the *.xcodeproj but it just seems much easier for me.

just wanted to send you a note a bout it.

cheers

Can not build on ubuntu 18.04 on NVidia Jetson Nano

Following setup guides, but getting errors like this:

/home/ali/Documents/Development/openFrameworks/addons/ofxOfelia/libs/ofxLua/src/bindings/linuxarm/ofBindings.cpp: In function ‘int _wrap_CylinderPrimitive_getTopCapIndices(lua_State*)’:
/home/ali/Documents/Development/openFrameworks/addons/ofxOfelia/libs/ofxLua/src/bindings/linuxarm/ofBindings.cpp:16155:66: error: no match for ‘operator=’ (operand types are ‘SwigValueWrapper<std::vector<short unsigned int> >’ and ‘std::vector<unsigned int>’)
   result = ((ofCylinderPrimitive const *)arg1)->getTopCapIndices(); {

and

/home/ali/Documents/Development/openFrameworks/addons/ofxOfelia/libs/ofxLua/src/bindings/linuxarm/ofBindings.cpp: In function ‘int _wrap_CylinderPrimitive_getCylinderIndices(lua_State*)’:
/home/ali/Documents/Development/openFrameworks/addons/ofxOfelia/libs/ofxLua/src/bindings/linuxarm/ofBindings.cpp:16174:68: error: no match for ‘operator=’ (operand types are ‘SwigValueWrapper<std::vector<short unsigned int> >’ and ‘std::vector<unsigned int>’)
   result = ((ofCylinderPrimitive const *)arg1)->getCylinderIndices(); {

make finally errors out with :

/home/ali/Documents/Development/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:298: recipe for target '/home/ali/Documents/Development/openFrameworks/addons/ofxOfelia/LinuxExternal/obj/linuxarmv7l/Release/addons/ofxLua/src/bindings/linuxarm/ofBindings.o' failed
make[1]: *** [/home/ali/Documents/Development/openFrameworks/addons/ofxOfelia/LinuxExternal/obj/linuxarmv7l/Release/addons/ofxLua/src/bindings/linuxarm/ofBindings.o] Error 1
make[1]: Leaving directory '/home/ali/Documents/Development/openFrameworks/addons/ofxOfelia/LinuxExternal'
/home/ali/Documents/Development/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed
make: *** [Release] Error 2

ascii video example error

when i try to run the ascii video example with the newest version (2.3.1) i get this error message:
: ofPixels: format doesn't support channels
: returning color not supported yet for UNKOWN format

ofelia/scripts/ubuntu/install_dependencies.sh fail on Ubuntu 20.04

Hi there!

I'm trying to run ofelia 3.1.0 installed from decken on puredata 0.50.2 and Ubuntu 20.04. At some point of ofelia/scripts/ubuntu/install_dependencies.sh I get:

Installing libopencv-dev
E: Unable to correct problems, you have held broken packages.
error installing libopencv-dev
Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libopencv-dev : Depends: libopencv-calib3d-dev (= 4.2.0+dfsg-5) but it is not going to be installed Depends: libopencv-contrib-dev (= 4.2.0+dfsg-5) but it is not going to be installed Depends: libopencv-features2d-dev (= 4.2.0+dfsg-5) but it is not going to be installed Depends: libopencv-highgui-dev (= 4.2.0+dfsg-5) but it is not going to be installed Depends: libopencv-objdetect-dev (= 4.2.0+dfsg-5) but it is not going to be installed Depends: libopencv-stitching-dev (= 4.2.0+dfsg-5) but it is not going to be installed Depends: libopencv-superres-dev (= 4.2.0+dfsg-5) but it is not going to be installed Depends: libopencv-videoio-dev (= 4.2.0+dfsg-5) but it is not going to be installed Depends: libopencv-videostab-dev (= 4.2.0+dfsg-5) but it is not going to be installed
this seems an error with your distribution repositories but you can also
report an issue in the openFrameworks github: http://github.com/openframeworks/openFrameworks/issues

I did try to manually apt install these dependencies and their dependencies, by issuing

sudo apt install libopencv-calib3d-dev libopencv-contrib-dev libopencv-features2d-dev libopencv-highgui-dev libopencv-objdetect-dev libopencv-stitching-dev libopencv-superres-dev libopencv-videoio-dev libopencv-videostab-dev libavresample-dev libswscale-dev

but I got

The following packages have unmet dependencies:
libavresample-dev : Depends: libavutil-dev (= 7:4.2.4-1ubuntu0.1) but 7:4.3-2~18.04.york0 is to be installed
Depends: libavresample4 (= 7:4.2.4-1ubuntu0.1) but 7:4.3-2~18.04.york0 is to be installed
libswscale-dev : Depends: libavutil-dev (= 7:4.2.4-1ubuntu0.1) but 7:4.3-2~18.04.york0 is to be installed
Depends: libswscale5 (= 7:4.2.4-1ubuntu0.1) but 7:4.3-2~18.04.york0 is to be installed
E: Unable to correct problems, you have held broken packages.

so I figured I should ask for help instead of downgrading many package versions on my system (without any a priori guarantee of success).

Thanks!

Marcelo

Loading 3d models (.obj files)

Hi there,

I have been experimenting with this library for a little while and it's amazing!

I was trying to figure out how to load 3d models from .obj files today, but it doesn't seem like this feature is available yet?

If I wanted to create my own external based off of ofxAssimpModelLoader how would I go about doing this?

Thanks!

ofSystem Utils broken on OSX

ofSystemTextBoxDialog() and ofSystemAlertDialog() functions crashes after hiting Ok or Cancel under OSX.
ofSystemLoadDialog() and ofSystemSaveDialog() functions freezes after opening the dialog and hiting cancel button.

Works well under Windows10

pd-O.50.2
OSX 10.15.4

Pd crashes on patch opening

The following patch, which utilizes ofImage, causes Pure Data to crash upon opening. There seems to be an issue when [loadbang] is sent to the message box containing the image name to be loaded. I'm running macOS 10.14.5, Pd-0.49-1, and ofelia 2.3.1.

I've attached the patch that causes the crash and one with a workaround. I've noticed that simply adding a [delay 1] object before the message box will fix the crash.

ofCrash.zip

Sidenote:
This is an isolated version of a larger patch. In the larger patch, a number box would increase by 1 when receiving a particular MIDI command. This number box was connected to a variety of [select] objects increasing sequentially (like: [select 1] [select 2] [select 3] etc...). These [select] objects were connected to a variety of message boxes to load various images and were used to change which image ofelia displayed. Thus I was able to toggle through images by pressing a MIDI note. On patch load, a [loadbang] objects was set up to send a "1" and trigger the first image, which is how this problem started and I since isolated it.

ld: unknown option: -rpath=./libs

Hello,

after running make in macOSExternal I get the following error:

ld: unknown option: -rpath=./libs
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [bin/ofelia.pd_darwin] Error 1
make: *** [Release] Error 2

maybe i am just old school running make rather than the *.xcodeproj but it just seems much easier for me.

just wanted to send you a note a bout it.

cheers

setPaused with message ofVideoPlayer returns error

Hi Zack,

Just messing around with your 3.0. Great work!!!

Seems I am unable to send a [setPaused{ message to [ofVideoPlayer]

If I send [setPaused true{ I get:

ofelia: [string "ofRequire = require..."]:26: Error in ofVideoPlayer::setPaused (arg 2), expected 'bool' got 'string'

If I send [setPaused 1{ I get:

ofelia: [string "ofRequire = require..."]:26: Error in ofVideoPlayer::setPaused (arg 2), expected 'bool' got 'number'

Maybe there is a way to send a "bool" in a message to ofVideoPlayer that I do not know of?

Thanks!

Running on crouton ubuntu 16.04

Hi,
I am having trouble getting ofelia to work on my chromebook with pure data 0.49. (ubuntu xenial)

Installed with deken, and ran the ubuntu/install_dependencies.sh

doing ldd ofelia.pd_linux
outputs

./ofelia.pd_linux: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by ./ofelia.pd_linux)
./ofelia.pd_linux: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by ./ofelia.pd_linux)
./ofelia.pd_linux: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by ./ofelia.pd_linux)

I understand that these are some big system libraries that are not updated enough in my version of ubuntu... is there anything I can do about this? other than try and upgrade by ubuntu? Is it possible to try and compile it myself? If so, where are the source files to be made?

Thanks!

Ubuntu 18.04 no longer supported b/c of libglew2.1?

It seems I have the opposite problem as in issue #38.

I'm on Ubuntu 18.04, which supplies libglew2.0.

Ofelia 4.0 expects libglew2.1.

While I don't plan on remaining on Ubuntu 18 forever, upgrading the entire distribution is a rather invasive operation with a risk of downtime in case of failure (and I've never had a completely static-free OS upgrade). In the middle of the semester, I can't afford any downtime. I could do it in January after the semester ends.

So I'm curious what solutions are available short of upgrading Ubuntu. It seems building it myself might be feasible (which I think I can handle).

I realize this is a bit of a catch-22 -- if you rely on the older library, then rapid-upgraders are upset; after updating your dependency, then users who are not in a position to immediately upgrade the OS are upset. I realize I'm behind the curve, so I'm not asking you to change the dependency -- looking for workarounds.

Thanks.

Xcode examples fail to build ('emscripten.h' not found)

Hi there,

When trying to build the example projects (so far I've tried the MacOSExternal, and MacOSExample projects using OF v0.11.0) I get a build error saying that emscripten.h is not found (included from ofxOfeliaPdBindings.h). I have emsdk 1.38.9 installed locally, but after trying to add the headers in the Header Search Paths of either project it threw a bunch more errors:

Screen Shot 2020-02-11 at 3 40 34 PM

Could you tell me the proper version/method for including emscripten in the latest Xcode example projects? Currently I'm still trying to experiment with adding new Lua bindings to ofelia and for this I need to be able to compile ofelia.xcodeproj.

Thank you!

help-intro replaces pd's original help-intro

After loading the library, when I go to "pd->Help->List of objects", it opens the ofelia's help-intro.pd instead of the original pure data help-intro.pd

Screenshot_pd_ofelia_error
Screenshot_pd_ofelia_error2

Maybe if we just rename it and move to the help folder, the problem will be gone?

ofToString return a list of audio driver

ofToString function is returning a list of audio drivers, when openframeworks documentation say that it should "Convert a value to a string."

On OSX and Windows10, here is the results of conversion from 1 to 10:

Unkown API
Alsa
Pulse
OSS
Jack
OSX Core Audio
MS WASAPI
MS ASIO
MS DirectShow
Unkown API

unable to setFrame in ofVideoPlayer

Hi Zack,

Using your fingers.mov example file I am unable to setFrame by sending a [setFrame $1{ message to ofVideoPlayer.

All numbers sent greater than 76 return a -infinity

print: getCurrentFrame -2.14748e+09

If I send a [setFrame 75{ I get:

print: getCurrentFrame 1

If I send a [setFrame 75{ I get:

print: getCurrentFrame 1

kind of weird. not sure whats going on. is there something im missing here maybe?

Thanks!

Passing an array of floats to a shader using setUniform1fv

If I use the function setUniform1fv to pass an array of floats to a shader I get this error:
Error in ofShader::setUniform1fv (arg 3), expected 'float const *' got 'table'

This probably happens because in the Lua script I define the float array as a table:
a = {}
a[1] = 2.0
a[2] = 4.0

Is there a way to pass the right variable type?

Build failed in arch linux.

home/s***/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp:45679:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (arg1) (arg1)->timeoutSeconds = arg2; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
^~~~~~
/home/s***/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp: In function ‘int _wrap_HttpResponse_status_set(lua_State*)’:
/home/s***/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp:45842:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (arg1) (arg1)->status = arg2; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
^~
/home/s***/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp:45842:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (arg1) (arg1)->status = arg2; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
^~~~~~
/home/s***/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp: At global scope:
/home/s***/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp:15364:12: warning: ‘int _wrap_3dPrimitive_draw(lua_State*)’ defined but not used [-Wunused-function]
static int _wrap_3dPrimitive_draw(lua_State* L) { int SWIG_arg = 0; of3dPrimitive arg1 = (of3dPrimitive ) 0 ;
^~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [/home/s
*/of-workspace/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:354: /home/s***/of-workspace/addons/obj/linux64/Release/ofxLua/src/bindings/desktop/ofBindings.o] Error 1
make[1]: Leaving directory '/home/shank/of-workspace/addons/ofxOfelia/Linux64External'
make: *** [/home/s***/of-workspace/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2

ofelia.pd_linux load_object: Symbol "ofelia_setup" not found

This is for ofelia tagged v3.1.0-45-g5e746c6 using openframeworks 0.10.1-198-gd4c7ec101

i've followed the instructions to compile the pure data external version of ofelia. However, i get this when trying to load ofelia in pure data:

ofelia.pd_linux load_object: Symbol "ofelia_setup" not found

I see the pure data setup function in ofxOfeliaSetup.cpp, so i'm not sure what went wrong

Crash in OSX

I am writing some useful abstractions that makes ofelia easy to use with pd.

During this process, I found some instabilites under OSX, and no pb under Windows / Linux.

Here is an example that I tried to keep as minimal as possible, it crashed pd with two of my OSX computers 100% of the time after a few minutes and second time screen is created.

The more stack of "set:method", the quicker the crash occurs.

Crash-OSX.pd.zip

Tested with pd-0.50-2 / pd 0.50
Tested under OSX Mojave / OSX Catalina
Under windows10, it doesn't crash at all
Ofelia v3.1.0 from deken

ofArray issue and suggestion

it would be nice if array:get has a second argument for the length of the array.
i also realized that pd likes to crash if i send lists with a length > 800 into array:set.

ofelia install on Raspbian Stretch

Hey :)
Is there any documentation about installation on Raspbian?
I'm running into some issues that look similar to what was described in this thread.
Here's where I'm at so far : I've installed the package via PD, and used the install_dependencies script present in the Debian distro folder.
Ofelia is missing in all examples installed. I can't find ofelia.pd_linux to check if other specific elements are missing.
Alternatively, any tip on a working Rpi 3B+ configuration other than Raspbian Stretch (can't downgrade to Jessie) wiil be helpful.

Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.