List
Background Texture
Posted Date: 2019-06-25 15:43     Edited Date: 2019-06-26 9:13     Writer: inchkiev

Hello, I want to make some environment lighting mapping through shader. How can i extract background texture rendered from camera?

Posted Date: 2019-06-26 9:09     Edited Date: 2019-06-26 9:13     Writer: inactive

Hello inchkiev.

The camera buffer can be obtained via GetImage as follows.

public void UpdateCameraBackgroundImage(TrackingState state)
{
..
TrackedImage image = state.GetImage(rg16TextureSupported);
..
}

However, we do not provide environment light mapping. You will have to create your own environment map using the functions we provide. 

Good luck to you.

 

Leo

Maxst Support Team