Re: [osg-users] Android Development Plans

2012-03-01 Thread Marcin Hajder
Hi, I made several fixes to make StatsHandler work with android and GLES2, file in attachment. Please let me know if this works for you (maybe someone already did that?). regards, Marcin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45901#45901

Re: [osg-users] Android Development Plans

2011-08-27 Thread Jorge Izquierdo Ciges
That's the idea. 2011/8/27 Luca Vezzadini > Looking at the code I seem to understand that statistics use only the fixed > pipeline. At least this is what I see in osgViewer\StatsHandler.cpp in > setUpScene(). If that is true, then the first step is to change that > behavior so to use shaders ins

Re: [osg-users] Android Development Plans

2011-08-26 Thread Luca Vezzadini
Looking at the code I seem to understand that statistics use only the fixed pipeline. At least this is what I see in osgViewer\StatsHandler.cpp in setUpScene(). If that is true, then the first step is to change that behavior so to use shaders instead. About the precision declaration, that is jus

Re: [osg-users] Android Development Plans

2011-08-26 Thread Jorge Izquierdo Ciges
There's no upgrade to that. I usually get the statistics from the functions and get the values by myself withouth the auto stats screen. I don't know if it's possible to show them in pc withouth fixed pipeline if you can then it shoul be just a matter of fixing the automated shaders by adding a def

Re: [osg-users] Android Development Plans

2011-08-26 Thread Luca Vezzadini
Jorge Izquierdo Ciges wrote: > Another issue is missing statistics, probably HUD shader is needed. > > No shaders - no hud. Hi, I see that the stats HUD does not work in GLES2 and I see this post a few months old. Did anything change in that area since then? If not, I will try to find a fix/wo

Re: [osg-users] Android Development Plans

2011-04-13 Thread Jorge Izquierdo Ciges
Nope glstatic flag is not needed. There's a patch pending revision to do a proper loading of gles 2 in Android because normal unix/linux loading is not enough. About errors. . . I/com.android.osgViewerGLES2( 6136): glVersion=0, isGlslSupported=YES, glslLanguageVersion=0 That's normal, the langua

Re: [osg-users] Android Development Plans

2011-04-13 Thread Marcin Hajder
Hi, I spent some time on refactoring osgViewerGLES1 example in order to work with GLES 2.0 under Android OS, for those of you interested in running example few comments/conclusions: I build OSG using cmake flags : -DOSG_BUILD_PLATFORM_ANDROID=ON -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRA

Re: [osg-users] Android Development Plans

2011-03-08 Thread Robert Osfield
Hi Rafa, Jorge and all ;-) On Mon, Mar 7, 2011 at 11:53 AM, Rafa Gaitan wrote: > Finally Jorge and me have finished a first approach to build OSG under > Android using the android NDK. > > Attached you will find all required code and cmake modifications (They > are based on a previous submissions

Re: [osg-users] Android Development Plans

2011-03-07 Thread Robert Osfield
Hi Rafa, Great news of progress on the the Andoid front. I haven't reviewed your changes yet as I've been busy with client work, but I will get on to a full review in the next few days. W.r.t replacing .c++ with .cpp's, I'm more than happy to do this, as it's long been a pointless inconsitincy i

Re: [osg-users] Android Development Plans

2011-03-01 Thread Thomas Hogarth
Hi Jorge Downloaded the example apk 'OSG Viewer GLES1 example'. The triangle example runs fine and my single touch input is working to rotate the view. I also get a file saved.osgt on my sdcard containing the following #Ascii Scene #Version 71 #Generator OpenSceneGraph 2.9.11 I can't however get

Re: [osg-users] Android Development Plans

2011-03-01 Thread Rafa Gaitan
Hi Jean-Sébastien, 2011/3/1 Jean-Sébastien Guay : > Hello Jorge, > > > Will you be testing the OSG GLES2 path as well? I guess it should compile > well once the initial bits are in place for GLES1... Yes of course :) but we first want to submit the changes so anyone can test other GLES paths! :).

Re: [osg-users] Android Development Plans

2011-03-01 Thread Jean-Sébastien Guay
Hello Jorge, As for today we are publishing a note on the gvsig3d page and some videos of HTC Nexus One and Archos 70 IT runing my examples. Also we are publishing an apk for the people to test. It will be great to know issues on different kinds of devices. This is really good news! I will try

Re: [osg-users] Android Development Plans

2011-03-01 Thread Jorge Izquierdo Ciges
Update: We are sending the Cmake/android to osg-submissions in two steps. As it is right now the Osg Cmake Script the code changes in the script made it hard to mantain so we decided to propose new OSG Cmake script which could be more cleaner and better in handling platform issues. If that is acce

Re: [osg-users] Android Development Plans

2011-02-21 Thread Thomas Hogarth
Hi Jorge >>The current Status is... aparently fully functional. Great news, well done to you and your team, I hadn't progressed far at all. I decided to make the jump to linux and then got rather side tracked :). I'd be more then happy to do some testing etc for you guys once you've finished you

Re: [osg-users] Android Development Plans

2011-02-19 Thread Jorge Izquierdo Ciges
> > What i've not compiled is plugins (This weekend work was to make them >> compilable with searches for a 3rd party directory of android ports of >> some of them) >> > > I assume you mean plugins that require 3rd party dependencies... Did you > build the .osg reader plugin? Or the new serializer

Re: [osg-users] Android Development Plans

2011-02-18 Thread Jean-Sébastien Guay
Hi Jorge, Wow, great progress! I hope after a bit more testing you'll be able to package the changes required in a way that can be merged into the baseline OSG without interfering with other platforms, and I'll be able to start using OSG on my Nexus One! :-) The libraries were compiled with

Re: [osg-users] Android Development Plans

2011-02-18 Thread Jorge Izquierdo Ciges
What a marvellous coincidence xD Yesterday we made some good progress and uploaded to the mail list but the screen pictures we took were too much and the mail list rejected it (4mb ... too much happines to see the weight of the pictures) The current Status is... aparently fully functional. (you k

Re: [osg-users] Android Development Plans

2011-02-18 Thread Jason Daly
On 02/03/2011 04:53 AM, Jorge Izquierdo Ciges wrote: I've been working with ndk r-5 and compiles without many changes. The main trouble i've seen so far it's that following ndk-build script, the library osg goes up to 36 mb (libosg.a). The worst thing it's that it seems that you cannot use a fl

Re: [osg-users] Android Development Plans

2011-02-03 Thread Jorge Izquierdo Ciges
I've been working with ndk r-5 and compiles without many changes. The main trouble i've seen so far it's that following ndk-build script, the library osg goes up to 36 mb (libosg.a). The worst thing it's that it seems that you cannot use a flag to strip unneded coded. Right now i'm playing a littl

Re: [osg-users] Android Development Plans

2011-01-28 Thread Thomas Hogarth
Hi Jason Mines a little archos 43 tablet. Checked the site, no plans for a 2.3 release yet by the look of thing which is a shame. Well looks like there might have to be some forking in any port for now. Perhaps two types of viewer. One with native egl and one that requires a java template for sett

Re: [osg-users] Android Development Plans

2011-01-28 Thread Jason Daly
On 01/28/2011 10:01 AM, Jean-Sébastien Guay wrote: Yeah, really nice. Anyone try to compile OSG with this NDK? I guess since they say it supports RTTI and has STLPort for the STL, it should work fine... Actually, there are four different C++ libraries available in NDK 5, and the only one that

Re: [osg-users] Android Development Plans

2011-01-28 Thread Jean-Sébastien Guay
Hi all, Yeah, I just downloaded and looked through it. There's an example without a single Java class in it. It just goes straight to EGL and GLES2 in the .c file. Very cool! Yeah, really nice. Anyone try to compile OSG with this NDK? I guess since they say it supports RTTI and has STLPort fo

Re: [osg-users] Android Development Plans

2011-01-28 Thread Thomas Hogarth
Hi Jason Never mind found it in the native-activity example. I also found this thread http://groups.google.com/group/android-ndk/browse_thread/thread/3c6dd147547ce056/b9d27d086990d1b1 It says you n

Re: [osg-users] Android Development Plans

2011-01-28 Thread Thomas Hogarth
Hi Jason >>Yeah, I just downloaded and looked through it. There's an example >>without a single Java class in it. It just goes straight to EGL and >>GLES2 in the .c file. Very cool! I've looked through my samples and I can't find this. I've got the hello-gl2 sample but no other gl related ones

Re: [osg-users] Android Development Plans

2011-01-28 Thread Thomas Hogarth
Hi Chuck Must have missed that info when I downloaded it, looks like I need to do a bit more reading :) Thanks for the heads up Tom ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-open

Re: [osg-users] Android Development Plans

2011-01-27 Thread Jason Daly
On 01/27/2011 11:47 AM, Chuck Shaw wrote: Hi, Just as an FYI, it seems the new NDK r5 really targets graphical applications. Specifically games, and allows you to build the entire app without any java. Yeah, I just downloaded and looked through it. There's an example without a single Java

Re: [osg-users] Android Development Plans

2011-01-27 Thread Chuck Shaw
Hi, Just as an FYI, it seems the new NDK r5 really targets graphical applications. Specifically games, and allows you to build the entire app without any java. From the Android Developers blog: > > In addition to fully native applications, the latest NDK lets you play sound > from native

Re: [osg-users] Android Development Plans

2011-01-19 Thread Thomas Hogarth
Hi Guys So I've made a little progress, mainly in learning about the ndk. Think I've just got OpenCV building and think their method is defo the way to go. Rafa, thanks or the example code, would love to get hold of your osg version. i can offer some ftp space if you need it? Jason, like the s

Re: [osg-users] Android Development Plans

2011-01-18 Thread Jean-Sébastien Guay
Hi Jason, Has anybody tried a build with the NDK r5 yet? It's supposed to have an optional STL that supports RTTI, exceptions, etc. It'd be nice to not require a 3rd-party NDK to compile OSG. I haven't tried it yet. It was in my plans but Android development is not part of my normal job, just

Re: [osg-users] Android Development Plans

2011-01-18 Thread Jason Daly
On 01/17/2011 09:27 AM, Jean-Sébastien Guay wrote: I compiled OSG with the NDK, it was pretty easy. You'll need the modified NDK that has support for RTTI, exceptions and a more complete standard library, which you can find here: http://smartctl.net/android/ndk-r4.php Just curious, Has anybod

Re: [osg-users] Android Development Plans

2011-01-18 Thread Rafa Gaitan
Hi, I'm working with Jorge trying to get a native osg on Android. The main problem that we found was the migration of OpenThreads, it's not really complicated but there are some missing api in pthreads (pthread_cancel as mentioned before) and some changes (sleep returns void :O). We made the chan

Re: [osg-users] Android Development Plans

2011-01-18 Thread Jorge Izquierdo Ciges
That are some great news. I was planning to do some test to know if it was used, but if it's not used then for the moment it's one thing that i don't have to worry right now. 2011/1/18 Robert Osfield > Hi Jorge, > > I know little about the issues of Android platform, so read with > interest in t

Re: [osg-users] Android Development Plans

2011-01-18 Thread Robert Osfield
Hi Jorge, I know little about the issues of Android platform, so read with interest in the various developments that yourself and others are working on, it does mean I can't yet contribute too pro-actively though. I'll will try and chip in where I can. On Mon, Jan 17, 2011 at 10:37 PM, Jorge Izq

Re: [osg-users] Android Development Plans

2011-01-17 Thread Jorge Izquierdo Ciges
OpenCV is Android port is more cleaner than the use of toolchain that we are using right now. Working with the Cmake toolchain there were some files that Cmake won't ever find, even if they were. With this other approach, this should not happen because you use Cmake to generate the Android Makefile

Re: [osg-users] Android Development Plans

2011-01-17 Thread Thomas Hogarth
Looks like this is a useful read http://opencv.willowgarage.com/wiki/Android ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph

Re: [osg-users] Android Development Plans

2011-01-17 Thread Jean-Sébastien Guay
Hello Thomas, I'll keep you up dated Thanks. One thing I just remembered, I don't know if you'll be using the Eclipse-based toolchain that Android provides, but I found sometimes when I changed the jni lib (and recompiled it from the command line) the Eclipse plugin wouldn't pick up on it b

Re: [osg-users] Android Development Plans

2011-01-17 Thread Thomas Hogarth
Big thanks for this J-S This will give me a massive head start, I'll get downloading your code and trying to compile. I successfully got the gl2jni example working on my device (your right, that sure is a long way round and yes very basic :) ) I'm keen to get this working as I too am loving the g

[osg-users] Android Development Plans

2011-01-17 Thread Jorge Izquierdo Ciges
Thomas, right now in the group i'm working we have compiled OSG in android with hacks here and there. At this moment we have a viewer but we are not capable of drawing geometry. We hope to make it more functional in some weeks if android don't bug us a lot. _

[osg-users] Android Development Plans

2011-01-17 Thread Thomas Hogarth
Hi All I've recently got my hands on a little android tablet capable of OpenGL ES 2.0, finally. The Archos 43, seems like it's comparable to an IPod touch 4th gen and pretty cheap (well compared to a Galaxy). http://www.archos.com/products/ta/archos_43it/index.html?country=us&lang=en Well I'm cu