I have a project where I need to be able to identify an ImageTarget as a specific type programmatically. i.e. I have a card that is to represent the number 4 and when the program sees this card I can show a 3D number 4 above it. I know the API can recognize non rectangular markers but, is there data to recognize the shape of the ImageTarget or some unique data I can use to correlate the ImageTarget to the required 3d model to display.
Thank you,
Matt
Don't think of each target as a type. Rather, you give each target a name when you create it using the online Target Management System. When the tracker finds that target you can query the name and respond accordingly.
The ImageTargets sample switches the teapot texture according to the target name. The FrameMarkers sample switches the model according to the marker id. See the renderFrame method in either sample (ImageTargets.cpp or FrameMarkers.cpp).
- Kim