chili-epfl / libgdx-sample

Sample libgdx project to get familiar with libgdx integration with Chilitags, camera etc.
GNU Lesser General Public License v3.0
5 stars 1 forks source link

Android's camera output is green on the Nexus 5 #3

Open manuelbua opened 10 years ago

manuelbua commented 10 years ago

The workaround is to always attach a dummy texture as per the other example in the repository: i implemented the same attach/detach surface code and it works fine now. Too bad camera access is quite a PITA on Android :/

RaimundWege commented 10 years ago

@manuelbua could you please explain your solution in more detail?

ayberkozgur commented 10 years ago

We recently abandoned libgdx development. Feel free to continue the discussion here but please be aware that we will soon delete all libgdx-related repositories.

manuelbua commented 10 years ago

@RaimundWege not sure if i still have the code at hand, but i may look it up for you: i just looked up at the examples and implemented the same workaround there, you need to attach a dummy texture so that the whole camera thing gets kickstarted correctly, but can't really remember exactly what the one example was.

RaimundWege commented 10 years ago

@manuelbua like always i've found the code that you mean a few minutes after the post ;) (here: https://github.com/chili-epfl/chilitags/blob/150378373a79f10ade1ac3f6aaf428dcb9103473/platforms/jni/samples/android-estimate3d-gui/src/ch/epfl/chili/chilitags/samples/estimate3d_gui/CameraPreviewRenderer.java) I think i get rid of it now. thx! @ayberkozgur too bad. is there a good reason not to use chilitags in libgdx? I've planned to use them both for my master-thesis.

ayberkozgur commented 10 years ago

@RaimundWege We didn't abandon Chilitags :) However, expect the JNI bindings of Chilitags to be not maintained since we abandoned Java together with libgdx. If you're interested, check out https://github.com/chili-epfl/chilitrack, it will hopefully be a full-fledged markerless tracking solution soon.

We replaced libgdx as a development platform with Qt. There are multiple reasons behind this:

As for the downsides:

So I would recommend you to give Qt a go before settling on libgdx for your master's thesis.