ARToolKit | Mailing List Archive |
![]() |
From: | Fotis Liarokapis <F.Liarokapis@s ...........> | Received: | Mar 27, 2002 |
To | artoolkit@h .................. | ||
Subject: | registration problems | ||
Hi ARToolkit users, I have ported a 3D Studio Max model into C code and I am trying to register it in a pattern I have created using the mk_patt sample code. My problem is that the virtual object is partially registered in the square. Depending on the angle I see the object it changes possition in the pattern instead of staying perfectly alligned with it. What do you thing causes this problem? Isn't it straightforward to port models into the scene and perform registration? Thanks. Best Regards Fotis Liarokapis __________________________________ Fotis Liarokapis - Research Student Centre for VLSI and Computer Graphics, School of Engineering and Information Technology, University of Sussex, Stage II, Room 4B4. Brighton, Falmer, BN1 9QT. Personal Site: http://www.sussex.ac.uk/Users/tapi8 Work Site : http://www.sussex.ac.uk/eit/ e-mail: fliarokapis@h .......... tel: +44 (0)1273 606755 ext 2622 fax: +44 (0)1273 690816 |
From: | Hirokazu Kato <kato@s ........................> | Received: | Mar 28, 2002 |
To | Fotis Liarokapis <F.Liarokapis@s ...........> | ||
Subject: | Re: registration problems | ||
Hi, >My problem is that the virtual object is partially registered in the square. >Depending on the angle I see the object it changes possition in the pattern >instead of staying perfectly alligned with it. What do you thing causes this >problem? I am not sure, but it sometimes happens when virtual objects are drawn at wrong position in marker coordinates. Marker coordinates locates on the marker and the origin is just on the marker. So negative values in Z-axis should not be used for virtual objects. Because it means that the virtual objects are under the marker. In this case, we can see the virtual objects as if it moves around the marker. If you want to put the virtual objects on the marker, minimum value in Z-axis of the virtual objects should be zero. -- ------------------------------------------------------------------ Hirokazu Kato Faculty of Information Sciences Hiroshima City University Phone: 082-830-1705 Email: kato@s ........................ Fax: 082-830-1435 URL: http://www.sys.im.hiroshima-cu.ac.jp/people/kato/ |