Frage

How can I retrieve the coordinates of a marker in ARToolKit and save like a 2D coordinates. So I can try to cut a jpg file using those coordinates.

War es hilfreich?

Lösung

The 2D positions of both the corners and center of a marker are easily retrievable. They are stored in the ARMarkerInfo structure. The corners are ARMarkerInfo.vertex[][] and the center is ARMarkerInfo.pos[].

The easiest place to retrieve this is in the main detection loop, e.g. mainLoop in the simple or simpleLite examples.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top