x


Importing texture, problem with size - width and height get changed

I using Unity3D 3.0 ver now.But compare with Unity3D 2.6 ver this version import PNG files have some problem.

1.I want import a PNG file. This file size is 30*414 but when the Unity3D imported it,it will be show the size change to the 32*512 in the Preview in the Unity3D 3.0 ver. In the Widnows and in the Photoshop the size still 30*414.I don't know why the Unity3D to change the size.

2.Sometimes Unity3D 3.0 Load the PNG Alpha is incorrect. The PNG file is include the Alpha.We are use the same way to make the PNG files and same exports from http://Photoshop.In the Unity3D 2.6 ver these PNG files Alpha are correct. But in the Unity3D 3.0 ver are incorrect.

more ▼

asked Oct 09 '10 at 07:47 AM

Terry liu gravatar image

Terry liu
21 6 7 9

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

4 answers: sort voted first

Unity is automatically converting your textures to dimensions that are a power of two (i.ee 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, etc).

Unity 3.0 has slightly different behaviour for importing non-power-of-two (NPOT) textures compared with earlier versions, and its behaviour in this regard is described in detail on this page:

http://unity3d.com/support/documentation/Manual/Textures.html

As for the "incorrect" alpha channel import, you will have to give more detail about what in particular is incorrect. Just stating "incorrect" does not provide us with enough information to be able to help you.

more ▼

answered Oct 09 '10 at 07:54 AM

duck gravatar image

duck ♦♦
41k 92 148 415

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

most importantly make sure these are your texture settings

Texture Type : Advanced Non power of two: None

more ▼

answered May 19 at 09:02 AM

AndyB_1992 gravatar image

AndyB_1992
1

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

I fixed the PNG artifact problem by converting the textures to RGBA 32 bit. Crystal clear now.

more ▼

answered Oct 02 '12 at 02:44 PM

Andronikus gravatar image

Andronikus
31 4

Did you convert that in photoshop or under the import setting? I choose compressino as RGBA but no use for me

Apr 09 at 08:15 AM ryf9059
(comments are locked)
10|3000 characters needed characters left

We are developing iOS (iPad) game and on some textures that were exported as transparent png alphas (24bit from Photoshop), in game some button graphics have small lines and graphics errors placed at top or bottom of texture. When reimport the same gfx used in game, Photoshop does not show any graphics incorrections. Those parts of the graphics has nothing in it... I can show you snapshooted examples and original png image we used for the game.

more ▼

answered Nov 17 '11 at 06:26 PM

djnykk gravatar image

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

x2209
x973
x286
x95
x35

asked: Oct 09 '10 at 07:47 AM

Seen: 4430 times

Last Updated: 5 days ago