x


Rendertexture in Android crashes app

I have a camera generating a rendertexture which is then displayed with

GUI.DrawTextureWithTexCoords(new Rect(8,-8, w, h), _rtCam.targetTexture as Texture, new Rect(sx, sy, tx, ty), false);

so that a selected portion of the render texture is actually shown. This approach works fine in stand alone deployments for Mac and Windows as well as in the web player. However, it fails in Android causing the app to crash on that line. The app was working just fine (as was the Graphics.DrawTexture alternative to GUI.DrawTextureWithTexCoords) when the app was deployed under an earlier version of Unity, 3.4 if I remember correctly.

I know there were some recent changes to ReadPixels and Apply, but I'm not using those directly. Are there any suggestions as how to remedy this issue?

-Thanks

more ▼

asked Aug 29 '12 at 12:02 AM

Kirkja gravatar image

Kirkja
26 5 6 10

(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:

x2498
x592
x194

asked: Aug 29 '12 at 12:02 AM

Seen: 339 times

Last Updated: Aug 29 '12 at 12:02 AM