-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3D render #13
Comments
Hi @rgm-22 I'm glad this project helped you. I haven't been able to work on the 3d rendering yet but I have an augmented reality project that renders 3D objects perfectly on vuforia markers here : https://github.com/RivoLink/Vuforia-Android Regards. |
Thank you very much for your answer, @RivoLink ! I have already checked out that project: pretty cool ;) The thing is that I want to access the camera using OpenCV, which is not the case, isn't it? Thank you again 👍 |
Hi @rgm-22 Yes, Vuforia-Adroid does not use OpenCV. I will try to rework on this application and I will let you know if I manage to set up the 3D rendering. Regards. |
Hi @RivoLink! Thank you very much for your answer. That would be great! :) Sorry, I don't have any idea about 3D rendering and perhaps if you succeed placing a simple cube on an aruco origin, it would be very helpful to learn. Thank you again! |
Is 3D rendering available now? (Step 1) Select a specific ID from ids of type MatOfInt (Step 2) Add code to detect SELECT_MARKER_ID inside the for(int i = 0; i < ids.toArray().length; i++) statement in onCameraFrame method in MainActivity.java. (Step 3) In transform method in Renderer3D.java, and make this part a separate method. (Step 4) Uncomment the transform code where it says /* Some bugs here. */. (Step 5) Use the setModelVisibility method in MainActivity.java. In transformModel: This way, I was able to see the cube appear when marker 17 was recognized. |
Hello @SoonBe Thanks for your interest. The main problem is not the rendering of the 3D model, it will work fine with your approach, but the problem is how to rotate/scale the 3D model to render it correctly above the marker. For example, if the marker is tilted vertically, how to render the model with this tilt but still above the marker Something like this Vuforia Android but with OpenCV vuforia-android.mp4 |
Hi @RivoLink!
Thank you very much for sharing this project.
Did you figure out how to properly make the 3D rendering?
I really appreciate any help you can provide :).
The text was updated successfully, but these errors were encountered: