Hey,
it's me... again...  :D 
Since the osgART community seems to be pretty dead and I have found great 
support here, I thought I'd ask here again, since it is 50% OSG question ;)

I have attached an image from the osgart documentation which shows how OSGART 
is connected to OSG.
What I am wondering now is if OSG and osgart (or rather Artoolkit) use 
different or the same coordinate system?
As you can see the virtual camera is updated by a projection matrix from the 
artoolkit setup, does this set OSG coordinate system?
basically what I want to do is find the factor I have to multiply the x,y and z 
values of the one coordinate system to equal the x,y and z values of the other 
coordinate system, so that the tracked object stays on the marker no matter 
what transformations I do to it. Currently the artoolkit tracking is "slower" 
so if I move the marker the model can't keep up and "slips off" if you know 
what I mean.

My idea was to do this: take the distance of the largest X value / smallest X 
value (without moving the camera).
Likewise for the arToolkit coordinates (so the camera values) the division of 
those values (calculated with Euclidean distance) should be the factor for one 
axis that I have to update the translation Matrix with. (repeat for other Axis)

Does that idea make any sense? Do I even have two different coordinate systems? 
Whats the easiest way to get the largest and smallest x,y,z onscreen 
coordinates ?

If you need the source code I use to create my osgART scene, ask and I can 
upload it.

Thanks a lot for your help,
David

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17108#17108



<<attachment: osgart.JPG>>

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to