x


Why do textures map upside-down?

Another noob question from yours truly...

When I import my sprite files and map them to quads or cubes, they are placed on the surface upside-down... I can fix this by simply rotating the image in http://Paint.Net before importing it, but it's a bit of a pain, as I often forget to do this.

Why does this happen?

more ▼

asked Aug 17 '11 at 07:39 AM

POLYGAMe gravatar image

POLYGAMe
434 37 46 53

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

1 answer: sort voted first

The orientation also depends on the orientation of the quads and the UV mapping. So rotate your quads or their UV coordinates.

more ▼

answered Aug 17 '11 at 08:17 AM

Waz gravatar image

Waz
6.5k 22 33 71

Rotate the plane or cube. See the Transform in the inspector.

Aug 17 '11 at 08:29 AM Waz

That's what I tried but then if I want to move the object, the orientation is all screwed...

Aug 17 '11 at 08:36 AM POLYGAMe

You could wrap them in an empty transform, but why not just make the trivial models in a modeling program?

Aug 17 '11 at 09:30 AM Waz

I have found with the custom plane script the textures map fine... strange... they are upside-down with Unity's inbuilt planes! Also I was trying to import models I'd made in Blender (just cubes and quads) but that didn't work, either... Still.. all working with the custom script for this game, so no worries.

Jan 27 '12 at 11:26 PM POLYGAMe
(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:

x2210
x258
x32
x24

asked: Aug 17 '11 at 07:39 AM

Seen: 2597 times

Last Updated: Jan 27 '12 at 11:26 PM