JglTF
JglTF copied to clipboard
How to import this work in an Android Studio project ?
Hi,
I want to use this project : https://github.com/oguzhancevik/obj2gltf
in my Android Project.
But, this obj2gltf project uses JglTF.
I don't manage to import JglTF in Android Studio without generating tons of errors.
How should I do to import JglTF in Android Studio ?
Thanks.
There have been some approaches for making this project "more compatible" with Android. There are some issues related to Android, and these may lead to things like https://github.com/mikikg/AndroidJgltfViewer , but I don't know the lastest state of that.
More generally: I have to admit that I only did some very basic experiments with Android until now. I actually got it running on my device at some point, but that has been quite a while ago. The versioning and general infrastructure of Android are not so trivial, and seem to change quickly. For example: Is it possible to use Java 8 features (like lambdas) in the meantime? Which "Android API level" should be targeted? ...
But more specifically: You mentioned that importing the project generated "tons of errors". Can you give some further information, about the API level that you used, or which categories of errors you saw? (Not necessarily list all of them - I'm just wondering what changes might be necessary to avoid them).
I can also try to allocate some time for some Android experiments, but will have to set up the whole Android development toolchain first, so it's hard to give an exact timeline for that...
The errors are mainly due to the imports. I don't know how to include your classes in my project without modifying all the imports at the top of the files. If you have a procedure, let me know.
It is a lot of work to modify all the imports in all the files. And I think that even after that there are probably still some errors. So I stopped.
If you have a simple procedure to insert your code without modification as module or whatever in an Android project, let me know. Perhaps, there is a simple procedure but there are many ways to do that in Android Studio and I didn't find the good way.
Thanks.
Trying to converge several Android-related issues into one, I opened https://github.com/javagl/JglTF/issues/117 to keep track of this.