byte array of image whether can make as the background of unity camera preview? if can,how to do that.please help me!!!
Oct 17 '11 at 01:16 AM
Feb 05 '12 at 07:16 PM
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!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
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.
asked: Oct 17 '11 at 01:16 AM
Seen: 1051 times
Last Updated: Oct 17 '11 at 02:58 AM
How can I display a flat background - 2D image, not a skybox - behind everything in my camera?
Dynamically instantiated game objects not showing in main camera (with background camera)
Why can't I see my objects in the scene view when adding a background image and a background camera?
Return an array of meshes displayed on screen
Camera Culling mask/ background color issue.
Changing camera background color in runtime
hey a quick question
screen background not clearing in standalone/web player build
Randomly Transition Camera Background Color?
Most efficient way to darken the screen?