Log in or register to post comments

can i get UDT texture in unity

November 21, 2017 - 12:18am #1

Can i get each UDT texture at the key frame for output, thank you!

can i get UDT texture in unity

November 21, 2017 - 6:01am #2

i can't get the camera texture. only a big "question mark" in my saving file :(

 

Vuforia.Image img = CameraDevice.Instance.GetCameraImage(Vuforia.Image.PIXEL_FORMAT.RGBA8888);

Texture2D t2d = new Texture2D(img.Width, img.Height);

t2d.LoadImage(img.Pixels);

t2d.Apply();

System.IO.File.WriteAllBytes("Assets/Hello.png", t2d.EncodeToPNG());

System.IO.File.WriteAllBytes("Assets/World.png", img.Pixels);

 

Log in or register to post comments