How to display 3D models in android? - java

I want to display some 3D models (.obj files) in an android app using android studio.
The user enters some data and the models have to be placed relative to each other according to the user input.
So all I need is to display some 3D models placed relative to each other according to the data entered before, and the user will be able to see the models from any direction when swiping the screen.
I don't know how to achieve this. I tried to use OpenGL-ES, but without avail as I can't find enough tutorials and the documentation is hard to be understood.
Any help or suggestion is welcome.
Thanks in advance.

Found this 3D Viewer on GitHub (supports OBJ, GLTF)
Also, I believe it is possible to find some converters OBJ ~> GLTF (by Khronos). You can write Android App with embedded Web View in which you can show GLTF.
If someone will work on Android app using some HTML / JS framework like Phonegap or VueJS + Quasar, then GLTF could be good way to go (if OBJ ~> GLTF is not a problem).

You can use for this job SceneForm. In a nutshell SceneForm is used as a middleware between ARCore and Filament to create awesome Augmented Reality Apps, but you can also use SceneForm just to visualize GLTF-Models

Related

Computer Vision in Android Studio

How can I introduce a pre-trained model for classification in an android app and see like in a real-time video view how it is detecting stuff?
I'm using Android Studio with Java and I want to use a pre-trained model (just for informative purposes - it is not important to the question - one of these more precisely https://github.com/thatbrguy/Pedestrian-Detection/blob/master/object_detection/g3doc/detection_model_zoo.md)
Are there any APIs to make this possible? Or is it another way?
Thanks a lot for your time! Any help is greatly appreciated:)
You should check out this guide to embed TensorFlow models in Android: https://www.tensorflow.org/lite/inference_with_metadata/codegen -- this will generate wrapper code to enable integration on Android.
Note, there are a number of ways to export TF models, and you'll need to follow the export instructions carefully to ensure the TF model is what is required for TFLite inference.

How would you implement a stock chart into an Android app?

I have been looking for a way to implement dynamic stock charts into my Android app but I don't where to start. I know I'll need a library, in fact, I found two LightWeight Charts and Vaadin but I don't know if they would work. I am very new to android programming and have never actually implemented a library into any project ever. I just need some guidance.
I suggest to search "stock charts" in google image to find what kind of chart you need before you choose.
Decompose this graph into data curve, background and scale. Maybe you have to implement them separately.
Find some Android library recommend web site that has the "similar lib" function which help you to find a lot of this kind libs. As I know one: https://android-arsenal.com/
My AD: https://github.com/maxyou/SimpleWaveform. It only draw a list of data to a rectangle, and you can draw any background and scale by yourself. Surely, you need to compare a lot of libs and then choose the most suitable one.

Creating 3D image model from 2D image using AR in Android

I'm new to Augment Reality and not having a compatible device to run examples provided for ARCore. I am having a few questions and want them to clear before going further as I'm getting clear about those through any mean. The app I'm working over is gonna perform the following task.
Detect a logo from a product
Create a 3D model of it using AR
display the generated 3D model at the exact same surface
Here is a sample image captured from a box. I want to display the text and logo in the 3D model.
My Questions
is it possible to display both logo and text as a 3D model or AR
supports images only?
Should I use ARCore or OpenCV or any other to do the task? which one is efficient regarding time and memory to implement?
Maybe it would be a discussion-based question but I am literally unable to find a solution for it.
Thanks everyone!
If you do not have ARCore supported device, you can try Vuforia + Unity instead. Vuforia also supports image recognition and overlay with AR. Check out this tutorial for your use case.
If you still want to use ARCore, you should check out Augmented Images feature. The challenge here if your logo has a good score to be able to work nicely for tracking and overlaying AR.
You can check image quality/score with this tool.

Upload an image and getting url

I've been working on my capstone project which I need to find a way to upload an Image to a webserver in my app (I'm also learning new concepts webservers,php etc..) and get an url of the image back which can be used globally.I mean it should be public(I'm going to use it for reverse google search). I was trying to achieve this by using ftp on free webervers but I failed.
I believe I understood easy android development concepts bu I'm still a rookie and of course there cant be "copy paste this and you're good to go" method but I could really use a suggestion or a tip If you don't mind.
Check out google firebase cloud storage
It'll do exactly what you're after, plus the tutorials are great

Modifying the LIBGDX Application frame in desktop

I'm currently using libgdx and I am looking for a way to modify the frame/window. I'm looking through google for maybe tutorials and examples but I'm not really sure what to search for. What would be the correct term to look and if anyone does have any examples/tutorials then I'd appreciate them posting them.
This is for desktop.
On the desktop Libgdx uses LWJGL to access OpenGL and desktop APIs. You should be able to use LWJGL APIs from your desktop backend if you need to.
You will have to be much more specific about what you want to "modify" about the "frame/window" if you want a more precise answer.

Categories

Resources