object 3D registration in ARToolki

Discussion relating to the open-source GPL-licensed ARToolKit v2.x.

Moderator: ARToolKit developers

object 3D registration in ARToolki

Postby deduu » Tue Apr 24, 2012 2:56 pm

:D hai ...

I'm learning building AR with ARToolkit library. I conducted some observation from the sourcecode provided by this library, let's say simpletest. and then in draw function I changed the translation value of z axis from 25.0 to 0.0 (original: glTranslatef(0.0, 0.0, 25.0) to glTranslatef(0.0, 0.0, 0.0)). when I did this, I found out that the cube I rendered as if "running" as I rotated my marker along x axis. Meanwhile using the original, it does not "running" when I rotated the marker. Can anyone explain why it was that?

glTranslatef(0.0, 0.0, 0.0)) yields

http://i48.tinypic.com/2803f4.jpg

original: glTranslatef(0.0, 0.0, 25.0) yields

http://i50.tinypic.com/2hi8j1e.jpg

thanks
deduu
 
Posts: 2
Joined: Tue Apr 24, 2012 2:03 pm

Re: object 3D registration in ARToolki

Postby Brian Leung » Sun May 27, 2012 12:53 am

hi,

seems like the cube pose is not right above the marker in your first picture. I forgot why we need to offset the z-axis by 25.0 and I guess it's something
related to how the cube is drawn and the assumed size of marker (50mm x 50mm..half will be 25.0).

Brian
Brian Leung
 
Posts: 3
Joined: Thu May 17, 2012 9:41 am

Re: object 3D registration in ARToolki

Postby deduu » Mon May 28, 2012 1:25 am

hai, thanks Brian .
by the way do you know how artoolkit determine the marker position in world coordinate and how to get the transformation value after getting the marker position ?

Dedy
deduu
 
Posts: 2
Joined: Tue Apr 24, 2012 2:03 pm


Return to ARToolKit (v2.x)

Who is online

Users browsing this forum: No registered users and 2 guests

cron