x


PackTexture doesn't work in flash platform?

I'm trying to port my project to flash. And I get an error "Texture atlas needs textures to have Readable flag set!" from this line of code.

rectUV = texture.PackTextures(inputTexture, padding, 1024, true);

This works perfectly fine in PC and iOS. I've already set read/write enable of every textures in inspector. Is this a bug or not?

more ▼

asked Dec 31 '11 at 07:31 AM

jjobby gravatar image

jjobby
417 27 34 46

I got the extact same problem here....still looking for solution too.

May 23 '12 at 08:19 AM Luckymouse
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Finally I figured it out how to make runtime PackTexture works in Flash:

The Unity default Texture Format of Flash is either RGB or RGBA JPG Compressed, I override for FlashPlayer for the Texture Format to RGB 24 or 32bit, then it has no problem in Flash.

more ▼

answered May 26 '12 at 09:48 PM

Luckymouse gravatar image

Luckymouse
0 1

(comments are locked)
10|3000 characters needed characters left
Your answer
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:

x269
x68
x14

asked: Dec 31 '11 at 07:31 AM

Seen: 781 times

Last Updated: May 26 '12 at 09:48 PM