Vuforia + jPCT-AE

Started by kelmer, January 17, 2013, 04:00:39 PM

Previous topic - Next topic

EgonOlsen

All objects from Primitives are lathe objects (except for the plane) which are created with the origin as center.

EgonOlsen

Quote from: kelmer on January 24, 2013, 12:55:16 PM
I've got a little question. I perfected the integration with QCAR's engine, but I am faced with a doubt.
BTW: If you have this working fine now, maybe you could add a page about it to the wiki? That would be great, because it seems to be a common problem and i personally can't cover it, because i've no experience with that particular topic. I can create a wiki account for you, if you want to contribute.

kelmer

Sorry for the delay, got stuck with other stuff.

I would gladly create that wiki page. PM with the details :)

EgonOlsen

You should have received an email from the wiki system with the account data.

kelmer

Got it, will get to it ASAP. I haven't got any experience editing wiki pages, though. Might need a little help.

EgonOlsen

It's pretty easy. Just open some of the other pages in edit-mode and you'll see.

kelmer

#21
It's done then:

http://www.jpct.net/wiki/index.php/Integrating_JPCT-AE_with_Vuforia#Setting_up_the_FOV

Please apply the pertinent corrections if I made any mistakes describing the process, I'm no expert myself!

EgonOlsen

#22
Looks great, many thanks for that. I'm sure that it will be helpful to others.

Edit: I've added a link it to the wiki's main page.

masonhsiung

Hi,
I've followed this wiki instruction.
3D object can be rendered successfully, but it seems that the object is kind of floating/rotating while moving the target, is not perfectly sticked on the target(not like the teapot sample).

I also followed the last part, to translate the object 30 units(I'm using HelloWorld sample, which is using a Cube.) along with the Z-axis, but it didn't help.

Image targets sample screenshot is attached. ( as you can see, the 3D object is not sticked on the center of target)

Any idea?

Thanks!

regards,
Mason Hsiung

[attachment deleted by admin]

kelmer

Try with a plane, with no translation (you might need to rotate it 90deg), and let us know the results.

masonhsiung

Hi, here are the plane screenshots(one is from front, another is from right, and it seems that I don't need to rotate 90 deg.).
I think the result is the same with the cube...

Any idea?

Thanks!

regards,
Mason Hsiung

[attachment deleted by admin]

kelmer

#26
It does seem like the objects are laying "behind" the marker.

Remove these lines from initialization, if you have them:

   cam.moveCamera(Camera.CAMERA_MOVEOUT, 50);
   cam.lookAt(cube.getTransformedCenter());

EDIT: Fixed the wiki to reflect this error

masonhsiung

Hi, thanks! After removing these two lines, it looks quite ok now.
Thanks!

BTW, since we do still need to translate by Z axis, according to the 3D object size.
If we load some existing models(eg. md2, obj.. etc), how do we get the size of the 3D object? so that we can place the 3D object exactly on the target.

Thanks again!

regards,
Mason Hsiung

kelmer

EgonOlsen already answered that question earlier on this very thread.

masonhsiung

Got it! thanks! I didn't notice that part :)
Thanks!