|
byte array of image whether can make as the background of unity camera preview? if can,how to do that.please help me!!!
(comments are locked)
|
|
byte array of image whether can make as the background of unity camera preview? if can,how to do that.please help me!!!
(comments are locked)
|
Once you sign in you will be able to subscribe for any updates here
By RSS:The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
Topics:
asked: Oct 17 '11 at 01:16 AM
Seen: 1051 times
Last Updated: Oct 17 '11 at 02:58 AM
Well, Texture.SetPixels takes an array of Color values. Is that what you mean? As for the background thing, you'd have to set up some kind of culling thing- have a second camera which renders first, with nothing in front of it except this image, and then have your main camera set its clear flags to 'none' so that it doesn't wipe the previous image. As for the preview thing, you can't really do that, but why do you want to?
I want to change the backgroud of the unity camera preview to the images that HTC mobile Camera captured,can you tell me how to do?
Like I said, have a second camera which only shows an image. If you have a Texture2D which you have parsed from the camera, just use that!