ARToolKit | Mailing List Archive |
![]() |
From: | "BSS" <BegoSS@t ..........> | Received: | May 11, 2004 |
To | <artoolkit@h ..................> | ||
Subject: | getting position to a reference marker | ||
Hello, I'm trying to get the position of my camera using right now two differents markers. I consider one of them is the one at the 'origin' and the second one is just shifted from the fisrt one in x=a, y=b and z=c distances ( this is, a matrix 'Tr' with rows (1,0,0,a),(0,1,0,b) and (0,0,1,c)). If I'm visualizing only the second marker I want to get the camera position related to my first marker, I mean, once I get the matrix 'Tcm' referenced to the marker I'm watching (the 2nd one) I want to get the matrix as if I were watching the first one. I'm just multiplying the Tcm matrix, with the one I've defined in advanced 'Tr' for the second marker but it seems not to work....what am I missing? does anybody knows how to do it? thank you in advanced!! |
From: | <newbeen@s .......> | Received: | May 12, 2004 |
To | <artoolkit@h ..................>, "BSS" <BegoSS@t ..........> | ||
Subject: | Re:getting position to a reference marker | ||
Hi there, Is your matrix 'Tr'a 4*4 one with rows (1,0,0,a),(0,1,0,b),(0,0,1,c)and (0,0,0,1)? Good luck! ----- Original Message ----- From: BSS To: artoolkit@h .................. Subject: getting position to a reference marker Sent: Wed May 12 04:15:45 CST 2004 > Hello, > > I'm trying to get the position of my camera using right now two differents > markers. I consider one of them is the one at the 'origin' and the second > one is just shifted from the fisrt one in x=a, y=b and z=c distances ( this > is, a matrix 'Tr' with rows (1,0,0,a),(0,1,0,b) and (0,0,1,c)). If I'm > visualizing only the second marker I want to get the camera position related > to my first marker, I mean, once I get the matrix 'Tcm' referenced to the > marker I'm watching (the 2nd one) I want to get the matrix as if I were > watching the first one. I'm just multiplying the Tcm matrix, with the one > I've defined in advanced 'Tr' for the second marker but it seems not to > work....what am I missing? does anybody knows how to do it? > > thank you in advanced!! > |