![]() Otherwise, the 3D content sitting on the frame marker would not properly occlude the 3D content sitting on the image target. ![]() If the printed frame marker is 1/4 the size of the printed image target, then the frame marker object should be created at 1/4 the size of the image target object. Assume that you want to track a frame marker on top of an image target. This is the case when multiple trackables will be tracked at the same time. If the application uses multiple trackables it may be important to size them relative to their real-world sizes. Of course, you can always adjust the near and far planes. A target with the width of 100 would be reasonable. A target of size 1 would be too small, while a target of size 2000 would be too big. Use a target size that would fall within the near plane at 2 and the far plane at 2000. ProjectionMatrix = Vuforia::Tool::getProjectionGL(cameraCalibration, 2.0f, 2000.0f) ![]() The units correspond to OpenGL scene units and thus need to work with the perspective frustum set up by the projection matrix.įor example, assume that you set up a projection matrix using the following code: (C++) The width is entered when you create a new target, while the height is automatically calculated from the aspect ratio of the image. The size of an ImageTarget is defined when the target is created in the TMS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |