x


Alternatives to using Texture2D apply to display color images from Kinect camera

Hi all, I am currently working to display live video images from Kinect camera to Unity. I have managed to do so using a Texture2D component attached to a plane object and then updating the Texture2D using Texture2D.Apply() in the Monobehavior.Update() method. The framerate is pretty poor at 15 to 18 fps.

void Update()
{
    tex.SetPixels32(KinectSensor.ColorImage);       
    tex.Apply(true);           
}

There are several posts that says Apply method is very slow and an alternative should be used to improve the framerate. However, I cannot find a definitive answer to this. Can anyone help me out with this?

more ▼

asked Apr 01, 2013 at 06:36 AM

fisyher84 gravatar image

fisyher84
63 26 24 26

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x608
x390
x181

asked: Apr 01, 2013 at 06:36 AM

Seen: 609 times

Last Updated: Apr 01, 2013 at 06:36 AM