Log in or register to post comments

Having problem with camera and 3D object

July 23, 2012 - 3:21am #1

Hi , I am using NinvehGL AR sample code , to work both with OpenGL ES , and AR , everything works fine but I have a problem ! when camera scan my image and the object appears when I move the camera my object is not stable on the printed image or monitor , I mean the object moves a lillte when I move the camera !  is there any solution ?? 

Having problem with camera and 3D object

July 23, 2012 - 6:36am #6

Maybe , why I can not use multi orientation ???

Hard to say really, though again more than likely something to do with the framework you are using.

If you look at the samples and the way they are able to handle the orientation properly, you need to make sure that any framework you are using replicates this.

Specifically, you need to look at the handleARViewRotation() method in ARViewController.mm

HTH

N

Having problem with camera and 3D object

July 23, 2012 - 6:30am #5

Maybe , why I can not use multi orientation ??? when I change the orientation to return YES , the camera is going to be very awful  ! everything is stretch out !  I have to use only this code to everything work fine ! 

- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation

{

 

if (UIInterfaceOrientationLandscapeRight == toInterfaceOrientation)

{

[_camera adjustAspectRatioAnimated:NO];

    

return YES;

}

 

return NO;

}

 

 

Having problem with camera and 3D object

July 23, 2012 - 6:16am #4

Hi Momeks

The distance seems to be indicating that the pose/matrix is off by a few units in one direction.

This could be due to how the framework has been integrated.

My suggestion is to check this and also check it against the native Image Targets to see whether you get the same results.  You might also like yto check the dimensions in MyTrackables - presumably are square, and also ideally ought to be in millimetres.

N

Having problem with camera and 3D object

July 23, 2012 - 4:30am #3

NalinS wrote:

Hi Momeks

It could be the way that this framework integrates with Vuforia that means it may not be getting enough cycles to do what it needs to do.

.......

 

 

Thank you for your response here 

I am using the new iPad / iPhone 4S and iPhone 4

I uncomment this line and change it to 1 :

 QCAR::setHint(QCAR::HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS, 1);


but nothing changed ! check this image :

http://appersian.ir/upcenter/images/1-1343042785.jpg

as you can see there is a distance between the object and the image !!!

 

Having problem with camera and 3D object

July 23, 2012 - 4:10am #2

Hi Momeks

It could be the way that this framework integrates with Vuforia that means it may not be getting enough cycles to do what it needs to do.

You could try testing out the image within the Image Target application and compare the results with respect to tracking and stability.

The other possible cause might be that the image target may not have enough redundancy in the image (check the number of stars it got in mytrackables).

The only other thing is to reduce/keep the HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS to 1 

What device are you using, as the faster the better?

N

Log in or register to post comments