Community

Topic: Xamarin component

2D Picture Mesh

halterstefan@gmail.com
Saturday, February 17, 2018

Ciao Amici, Im playing around with the Xamarin SDK and so far I can say I like it very much.
Just one simple thing does not seem to be straight forward to me: Is there a possibility to lay a 2D image over a marker? Instead of a 3D Figure, just a simple 2D image.
Thanks

user profile image
Support Team  (expert)
Thursday, February 22, 2018

Hi,
the tutorial about the VideoPlayer already has some images loaded on the marker, you can start from that and edit the VideoMesh to build your own mesh that will render only the images.
The functions of VideoMesh that may interest you are:

- InitMesh which defines three variables within it:
     mIconBusyTextureByteBuffer
     mIconPlayTextureByteBuffer
     mIconErrorTextureByteBuffer
  each uses 2d images contained in the assets that are rendered in the various video states

- private void DrawIcon (float [] mvpMatrix, PikkartVideoPlayer.VideoSate.VIDEO_STATE status)

you can show the images just as it is done with VideoMesh leaving out the rendering of the video but showing only the images.

Sign in to add a comment