Currently I am attempting to take a capture element that is capturing the Camera. This runs just fine within the GamePage.xaml.cs but for some reason would not work within the Game1.CS. I found that the reason why is the StartPreviewAsync().
Any Ideas as to how you can go around how the XAML is printed before the graphics?
(This is mainly so I can do a simple augmented reality.)
I didn’t think about doing this. The only problem I had was with how the camera was being accessed. It was only accessed through the XAML. I will have to try an image stream.
So far, I am noticing a PhotoCapture method for Microfsoft.Devices may be a better method than what I have been trying. Now I would just need to convert to Texture or Texture2d.
Synchronizing the XAML should not need to be a factor as this would really only need to move the XAML behind the game graphics or implement some type of capture to texture method.
Changed from the MediaCapture in other words.
Just need to change PhotoCapture to Texture2d.