Hello Everyone,
I would like to know what is the version of processing used in PdCoreP5, and if it is possible to update it ?
It seems that those functions doesn't give me the right result :
public int sketchWidth() { return this.screenWidth; } public int sketchHeight() { return this.screenHeight; }
When I run my code inside eclipse, I get some kind of weird 540*360 res but when I run it from processing IDE (2.08a) in android mode I get a more decent one.
Plus it seems that OPENGL is not a good choice with the shipped-in version of processing. So I thought that a little update on processing-core.jar could help. How could I do that ?
thanks
Well, to ask the obvious question first - are you familiar with how to build processing-core.jar? If so, you can create it yourself from Eclipse. We do need to work out how to create a build that keeps this library synced, which we know we haven't done yet. (This is part of why we don't yet consider this a supported library, though I'm keen to move it in that direction for the fall.)
Nope :/
but actually maybe I don't need to use an updated processing version. My only pb is this resolution functions that returns weird values.
Maybe a workaround to set size of my sketch would be enough, or maybe it's just me ... can anyone confirm those res issues ?
the resolution I get for the gtab is 560*320, with the functions included in PdP5Sample.
I tried to use DisplayMetrics, which was a little better since I got 594*320 and in now covers the full screen, but still in a rather poor resolution.
I exported and apk to try on other devices it seems that the resolution I get is divided by a factor 2 from the real one, on a tablet it's ok-ish but on a phone it gets ugly. ; When I run this sketch in processing IDE (still 2.08a) I get a glorious 1024*552
So I also tried to reference another processing-core.jar in "referenced Libraries". I created an android project in processing IDE exported it to an application and then referenced the *.jar that was created in "/android/libs" by replacing the one in "PdCoreP5/libs" and the one in "MyProject/Referenced Libraries/" (I also had to change "this.sketchWidth" by "this.displayWidth" - same with Height)
... it compiles ok ... but I get exactly the sames values .
So I guess it's not the processing-core that gives me trouble, right ?
I finally won !
I actually took the exported project from processing and imported it in Eclipse, and I re-hooked PdCoreP5 as I library. It did the trick !
It looks like you're new here. If you want to get involved, click one of these buttons!