daemontus / VuforiaLibGDX

Example of Vuforia and LibGDX integration for 3D model rendering
MIT License
30 stars 9 forks source link

Model position doesn't fix #5

Closed topolyai5 closed 6 years ago

topolyai5 commented 7 years ago

Hi!

I just found your excellent lib and I tried it. But the model doesn't fix on the image target. Here is a gif: ezgif com-video-to-gif

Could you please take advice for fix it? Thanks

daemontus commented 7 years ago

Hmm...interesting - are you running directly the code from the repository, or some kind of modification? Because this seems like your camera matrix is not inverted correctly for some reason. (The model moves down when it should move up, etc.) If you are running directly the code from the repository, I would be interested in knowing these things: Do you have the same problem in portrait mode? Have you tried some other device? I would like to know, because some cameras can behave little weird under different device rotation conditions, which would mean there is probably some condition missing in my code to handle this. (I have seen some cheap tablets that didn't handle rotation at all. I have seen devices that rotated pictures correctly, but captured only landscape video, etc.)

topolyai5 commented 7 years ago

Thanks for your replay. It's working in portrait mode only.

topolyai5 commented 7 years ago

I didn't try on other devices. Just on a modern device

daemontus commented 7 years ago

Ok, I'll try to test it again over the weekend to see if I can replicate this :)

boulabiar commented 7 years ago

I have the same issue here. I am using Vuforia in Landscape mode using mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in initAR function inside AppSession.

The matrix is inverted. How to recalibrate it in landscape ?

daemontus commented 6 years ago

Closing due to deprecation (see readme)